]> Pileus Git - ~andy/gtk/commitdiff
Only get the indicator-size and indicator-spacing style properties for
authorMatthias Clasen <mclasen@redhat.com>
Sun, 6 Aug 2006 05:58:19 +0000 (05:58 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 6 Aug 2006 05:58:19 +0000 (05:58 +0000)
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)

ChangeLog
ChangeLog.pre-2-10
gtk/gtkstyle.c

index a60e2b88bee9e4d35d2f5ec51e2c4d6865fc6cf8..af5cc8a62985ba3805967fce332a4a48cbbd2175 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 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.
index a60e2b88bee9e4d35d2f5ec51e2c4d6865fc6cf8..af5cc8a62985ba3805967fce332a4a48cbbd2175 100644 (file)
@@ -1,5 +1,9 @@
 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.
index ff7c99f3f8cba9454197d6bbbe6482c91d327dbd..1d10533a067fdaa7025e3d12bb3ef8fc0d742b91 100644 (file)
@@ -30,6 +30,9 @@
 #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"
@@ -3221,7 +3224,7 @@ option_menu_get_props (GtkWidget      *widget,
   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,