diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-02-18 23:08:45 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-02-18 23:08:45 +0000 |
commit | b337db3a54b1a5d887ec7d1c53dcfd0ea40a25d3 (patch) | |
tree | 0e4ce89d4489f8dc43db508e98315cc8376397d2 /gtk/gtkradiomenuitem.h | |
parent | d91e1cdd36e9a50e9a84cead6c0ebce856439ff1 (diff) | |
download | gtk+-b337db3a54b1a5d887ec7d1c53dcfd0ea40a25d3.tar.gz |
New convenience functions analogous to similar API on GtkRadioButton.
Thu Feb 19 00:09:35 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkradiomenuitem.h:
* gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_from_widget):
(gtk_radio_menu_item_new_with_label_from_widget):
(gtk_radio_menu_item_new_with_mnemonic_from_widget): New
convenience functions analogous to similar API on GtkRadioButton.
(#51700, Vitaly Tishkov, patch by Soeren Sandmann)
Diffstat (limited to 'gtk/gtkradiomenuitem.h')
-rw-r--r-- | gtk/gtkradiomenuitem.h | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/gtk/gtkradiomenuitem.h b/gtk/gtkradiomenuitem.h index d33d6a8dd0..5dff292d84 100644 --- a/gtk/gtkradiomenuitem.h +++ b/gtk/gtkradiomenuitem.h @@ -31,11 +31,7 @@ #include <gdk/gdk.h> #include <gtk/gtkcheckmenuitem.h> - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - +G_BEGIN_DECLS #define GTK_TYPE_RADIO_MENU_ITEM (gtk_radio_menu_item_get_type ()) #define GTK_RADIO_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItem)) @@ -58,7 +54,7 @@ struct _GtkRadioMenuItem struct _GtkRadioMenuItemClass { GtkCheckMenuItemClass parent_class; - + /* Padding for future expansion */ void (*_gtk_reserved1) (void); void (*_gtk_reserved2) (void); @@ -68,22 +64,25 @@ struct _GtkRadioMenuItemClass GType gtk_radio_menu_item_get_type (void) G_GNUC_CONST; -GtkWidget* gtk_radio_menu_item_new (GSList *group); -GtkWidget* gtk_radio_menu_item_new_with_label (GSList *group, - const gchar *label); -GtkWidget* gtk_radio_menu_item_new_with_mnemonic (GSList *group, - const gchar *label); -GSList* gtk_radio_menu_item_get_group (GtkRadioMenuItem *radio_menu_item); -void gtk_radio_menu_item_set_group (GtkRadioMenuItem *radio_menu_item, - GSList *group); + +GtkWidget* gtk_radio_menu_item_new (GSList *group); +GtkWidget* gtk_radio_menu_item_new_with_label (GSList *group, + const gchar *label); +GtkWidget* gtk_radio_menu_item_new_with_mnemonic (GSList *group, + const gchar *label); +GtkWidget* gtk_radio_menu_item_new_from_widget (GtkRadioMenuItem *group); +GtkWidget *gtk_radio_menu_item_new_with_mnemonic_from_widget (GtkRadioMenuItem *group, + const gchar *label); +GtkWidget *gtk_radio_menu_item_new_with_label_from_widget (GtkRadioMenuItem *group, + const gchar *label); +GSList* gtk_radio_menu_item_get_group (GtkRadioMenuItem *radio_menu_item); +void gtk_radio_menu_item_set_group (GtkRadioMenuItem *radio_menu_item, + GSList *group); #ifndef GTK_DISABLE_DEPRECATED #define gtk_radio_menu_item_group gtk_radio_menu_item_get_group #endif -#ifdef __cplusplus -} -#endif /* __cplusplus */ - +G_END_DECLS #endif /* __GTK_RADIO_MENU_ITEM_H__ */ |