2006-08-06 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkstyle.c (option_menu_get_props): Only get the
+ indicator-size and indicator-spacing style properties
+ for GtkOptionMenu. (#349859, Benjamin Otte)
+
* gtk/gtktreeview.c (gtk_tree_view_set_grid_lines)
(gtk_tree_view_set_enable_tree_lines): Be more careful
when creating gcs, also emit change notification.
2006-08-06 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkstyle.c (option_menu_get_props): Only get the
+ indicator-size and indicator-spacing style properties
+ for GtkOptionMenu. (#349859, Benjamin Otte)
+
* gtk/gtktreeview.c (gtk_tree_view_set_grid_lines)
(gtk_tree_view_set_enable_tree_lines): Be more careful
when creating gcs, also emit change notification.
#include <string.h>
#include "gtkgc.h"
#include "gtkmarshalers.h"
+#undef GTK_DISABLE_DEPRECATED
+#include "gtkoptionmenu.h"
+#define GTK_DISABLE_DEPRECATED
#include "gtkrc.h"
#include "gtkspinbutton.h"
#include "gtkstyle.h"
GtkRequisition *tmp_size = NULL;
GtkBorder *tmp_spacing = NULL;
- if (widget)
+ if (GTK_IS_OPTION_MENU (widget))
gtk_widget_style_get (widget,
"indicator-size", &tmp_size,
"indicator-spacing", &tmp_spacing,