]> Pileus Git - ~andy/gtk/commitdiff
use GTK_IS_RADIO_MENU_ITEM instead of comparing the type directly. This
authorManish Singh <yosh@gimp.org>
Sat, 12 Oct 2002 22:45:08 +0000 (22:45 +0000)
committerManish Singh <yosh@src.gnome.org>
Sat, 12 Oct 2002 22:45:08 +0000 (22:45 +0000)
Sat Oct 12 15:44:29 2002  Manish Singh  <yosh@gimp.org>

        * gtk/gtkitemfactory.c: use GTK_IS_RADIO_MENU_ITEM instead
        of comparing the type directly. This handles possible subclasses
        too. (Recommended by Tim Janik)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkitemfactory.c

index ac53a9c6a249d7621bf04ea9ae3380491ba0d9b1..d5b30d2c4463eb50447c461ec86873025d53cc48 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sat Oct 12 15:44:29 2002  Manish Singh  <yosh@gimp.org>
+
+        * gtk/gtkitemfactory.c: use GTK_IS_RADIO_MENU_ITEM instead
+        of comparing the type directly. This handles possible subclasses
+        too. (Recommended by Tim Janik)
+
 Fri Oct 11 15:56:20 2002  Manish Singh  <yosh@gimp.org>
 
        * gtk/gtkaccellabel.[ch] gtk/gtkaccessible.[ch] gtk/gtkbutton.[ch]
index ac53a9c6a249d7621bf04ea9ae3380491ba0d9b1..d5b30d2c4463eb50447c461ec86873025d53cc48 100644 (file)
@@ -1,3 +1,9 @@
+Sat Oct 12 15:44:29 2002  Manish Singh  <yosh@gimp.org>
+
+        * gtk/gtkitemfactory.c: use GTK_IS_RADIO_MENU_ITEM instead
+        of comparing the type directly. This handles possible subclasses
+        too. (Recommended by Tim Janik)
+
 Fri Oct 11 15:56:20 2002  Manish Singh  <yosh@gimp.org>
 
        * gtk/gtkaccellabel.[ch] gtk/gtkaccessible.[ch] gtk/gtkbutton.[ch]
index ac53a9c6a249d7621bf04ea9ae3380491ba0d9b1..d5b30d2c4463eb50447c461ec86873025d53cc48 100644 (file)
@@ -1,3 +1,9 @@
+Sat Oct 12 15:44:29 2002  Manish Singh  <yosh@gimp.org>
+
+        * gtk/gtkitemfactory.c: use GTK_IS_RADIO_MENU_ITEM instead
+        of comparing the type directly. This handles possible subclasses
+        too. (Recommended by Tim Janik)
+
 Fri Oct 11 15:56:20 2002  Manish Singh  <yosh@gimp.org>
 
        * gtk/gtkaccellabel.[ch] gtk/gtkaccessible.[ch] gtk/gtkbutton.[ch]
index ac53a9c6a249d7621bf04ea9ae3380491ba0d9b1..d5b30d2c4463eb50447c461ec86873025d53cc48 100644 (file)
@@ -1,3 +1,9 @@
+Sat Oct 12 15:44:29 2002  Manish Singh  <yosh@gimp.org>
+
+        * gtk/gtkitemfactory.c: use GTK_IS_RADIO_MENU_ITEM instead
+        of comparing the type directly. This handles possible subclasses
+        too. (Recommended by Tim Janik)
+
 Fri Oct 11 15:56:20 2002  Manish Singh  <yosh@gimp.org>
 
        * gtk/gtkaccellabel.[ch] gtk/gtkaccessible.[ch] gtk/gtkbutton.[ch]
index ac53a9c6a249d7621bf04ea9ae3380491ba0d9b1..d5b30d2c4463eb50447c461ec86873025d53cc48 100644 (file)
@@ -1,3 +1,9 @@
+Sat Oct 12 15:44:29 2002  Manish Singh  <yosh@gimp.org>
+
+        * gtk/gtkitemfactory.c: use GTK_IS_RADIO_MENU_ITEM instead
+        of comparing the type directly. This handles possible subclasses
+        too. (Recommended by Tim Janik)
+
 Fri Oct 11 15:56:20 2002  Manish Singh  <yosh@gimp.org>
 
        * gtk/gtkaccellabel.[ch] gtk/gtkaccessible.[ch] gtk/gtkbutton.[ch]
index ac53a9c6a249d7621bf04ea9ae3380491ba0d9b1..d5b30d2c4463eb50447c461ec86873025d53cc48 100644 (file)
@@ -1,3 +1,9 @@
+Sat Oct 12 15:44:29 2002  Manish Singh  <yosh@gimp.org>
+
+        * gtk/gtkitemfactory.c: use GTK_IS_RADIO_MENU_ITEM instead
+        of comparing the type directly. This handles possible subclasses
+        too. (Recommended by Tim Janik)
+
 Fri Oct 11 15:56:20 2002  Manish Singh  <yosh@gimp.org>
 
        * gtk/gtkaccellabel.[ch] gtk/gtkaccessible.[ch] gtk/gtkbutton.[ch]
index a3abcc9f5bb3782a2a38ba7a4b81f09d54aa290d..5df097ae4f8e45890d08a86a1de74c311fb360a5 100644 (file)
@@ -1070,7 +1070,7 @@ gtk_item_factory_create_item (GtkItemFactory           *ifactory,
   if (option_menu && !option_menu->menu_item)
     gtk_option_menu_set_history (option_menu, 0);
 
-  if (type == GTK_TYPE_RADIO_MENU_ITEM)
+  if (GTK_IS_RADIO_MENU_ITEM (widget))
     gtk_radio_menu_item_set_group (GTK_RADIO_MENU_ITEM (widget), radio_group);
   if (GTK_IS_CHECK_MENU_ITEM (widget))
     gtk_check_menu_item_set_show_toggle (GTK_CHECK_MENU_ITEM (widget), TRUE);