mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
use GTK_IS_RADIO_MENU_ITEM instead of comparing the type directly. This
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)
This commit is contained in:
parent
f18d5d3510
commit
4cd4889e11
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user