GNOME Bugzilla – Bug 305432
smooth theme queries GtkButton style properties for all kind of widgets
Last modified: 2005-07-09 13:24:02 UTC
engines/smooth/src/engine/smooth_gtk2_misc.c::gtk_button_get_props() is also called for non GtkButton widgets (e.g. from smooth_gtk2_drawing.c::smooth_draw_box() This breaks apps. It can be tested by building gtk+extra2 and run src/testgtksheet in there. The GtkSheet widget is derived from a GtkContainer.
Created attachment 46872 [details] [review] adds checks that widget is a button The patch adds two GST_IS_BUTTON checks. This of cource renders the method name questionable. If would be better named gtk_widget_get_props instead of gtk_button_get_props.
Patch applied to CVS