diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-01-08 23:37:34 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-01-08 23:37:34 +0000 |
commit | f2bb20cc15438e6b8d1d7c979681de3cbefac4f6 (patch) | |
tree | 2215b4d866071dabb083aeb8b5647d96a0fcc356 /gtk/gtkuimanager.h | |
parent | ecceb20a8b13df9af33a052b75fab4fa3ae189ea (diff) | |
download | gtk+-f2bb20cc15438e6b8d1d7c979681de3cbefac4f6.tar.gz |
New function to obtain a list of toplevel widgets constructed by the ui
Fri Jan 9 00:34:57 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.h:
* gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): New function to
obtain a list of toplevel widgets constructed by the ui manager.
* gtk/gtkuimanager.h (GtkUIManagerItemType): Change to flags, so that
the values can be combined for gtk_ui_manager_get_toplevels().
* tests/testmerge.c: Add a "Dump toplevels" button to test
gtk_ui_manager_get_toplevels().
Diffstat (limited to 'gtk/gtkuimanager.h')
-rw-r--r-- | gtk/gtkuimanager.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/gtk/gtkuimanager.h b/gtk/gtkuimanager.h index d6f2c6a6e3..edf043a200 100644 --- a/gtk/gtkuimanager.h +++ b/gtk/gtkuimanager.h @@ -75,16 +75,16 @@ struct _GtkUIManagerClass { }; typedef enum { - GTK_UI_MANAGER_AUTO, - GTK_UI_MANAGER_MENUBAR, - GTK_UI_MANAGER_MENU, - GTK_UI_MANAGER_TOOLBAR, - GTK_UI_MANAGER_PLACEHOLDER, - GTK_UI_MANAGER_POPUP, - GTK_UI_MANAGER_MENUITEM, - GTK_UI_MANAGER_TOOLITEM, - GTK_UI_MANAGER_SEPARATOR, - GTK_UI_MANAGER_ACCELERATOR + GTK_UI_MANAGER_AUTO = 0, + GTK_UI_MANAGER_MENUBAR = 1 << 0, + GTK_UI_MANAGER_MENU = 1 << 1, + GTK_UI_MANAGER_TOOLBAR = 1 << 2, + GTK_UI_MANAGER_PLACEHOLDER = 1 << 3, + GTK_UI_MANAGER_POPUP = 1 << 4, + GTK_UI_MANAGER_MENUITEM = 1 << 5, + GTK_UI_MANAGER_TOOLITEM = 1 << 6, + GTK_UI_MANAGER_SEPARATOR = 1 << 7, + GTK_UI_MANAGER_ACCELERATOR = 1 << 8 } GtkUIManagerItemType; GType gtk_ui_manager_get_type (void); @@ -101,6 +101,8 @@ GList *gtk_ui_manager_get_action_groups (GtkUIManager *self); GtkAccelGroup *gtk_ui_manager_get_accel_group (GtkUIManager *self); GtkWidget *gtk_ui_manager_get_widget (GtkUIManager *self, const gchar *path); +GSList *gtk_ui_manager_get_toplevels (GtkUIManager *self, + GtkUIManagerItemType types); GtkAction *gtk_ui_manager_get_action (GtkUIManager *self, const gchar *path); guint gtk_ui_manager_add_ui_from_string (GtkUIManager *self, |