<Swing Dev> [PATCH] fix GTKLookAndFeel crash on recent versions of GTK
Thomas Fitzsimmons
fitzsim at redhat.com
Thu Nov 22 20:32:02 UTC 2007
Hi,
With OpenJDK build b23, on recent GTK versions, showing a JComboBox when
GTKLookAndFeel is active causes this assertion failure:
(<unknown>:11755): Gtk-WARNING **: Attempting to add a widget with type
GtkButton to a GtkComboBoxEntry (need an instance of GtkEntry or of a subclass)
The assertion was added in this commit:
http://svn.gnome.org/viewcvs/gtk+?view=revision&revision=17657
Attached is a test case demonstrating the failure and a patch to fix it. The
patch eliminates theme engines' ability to special-case the arrow button/text
field combination but given the new assertion this appears to be the best
option. Visually, JComboBox still looks fine under the theme engines shipped
with Fedora 8.
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GTKLookAndFeelComboBoxTest.java
Type: text/x-java
Size: 741 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20071122/b0fd8f31/GTKLookAndFeelComboBoxTest.java>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icedtea-gtkplaf.patch
Type: text/x-patch
Size: 1175 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20071122/b0fd8f31/icedtea-gtkplaf.patch>
More information about the swing-dev
mailing list