YangXiangGcc / sunpinyin

Automatically exported from code.google.com/p/sunpinyin
0 stars 0 forks source link

[补丁]xsunpinyin gtk_widget_set_colormap assertion failed #242

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
gtk+-2.24.1
sunpinyin-all-in-one-2.0.3.tar.gz

运行xsunpinyin出现:

(xsunpinyin:21823): Gtk-CRITICAL **: IA__gtk_widget_set_colormap: assertion 
`!gtk_widget_get_realized (widget)' failed

原因见:
 http://library.gnome.org/devel/gtk/2.24/GtkWidget.html#gtk-widget-set-colormap

gtk_widget_set_colormap 传入的 widget 不能是已经realized 的, 
附件补丁消除该问题

Original issue reported on code.google.com by bblU...@gmail.com on 25 Feb 2011 at 5:18

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the patch.

I'll apply this patch to upstream, but I do want to mark an note here: this 
patch, will always turn rgba on (when possible) even if the opacity is 1.0.

AFAIK, this will cause some differences under xcompmgr. Nethertheless, it's a 
good patch. :)

Original comment by mikeandm...@gmail.com on 26 Feb 2011 at 3:27