diff options
author | Ryan Lortie <desrt@desrt.ca> | 2012-09-11 11:38:06 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2012-09-17 12:31:22 -0400 |
commit | dd143479fe85f16e4ea010a7b03d4365d9d9234e (patch) | |
tree | 6101e20075598591dcfa355c5c12f9c73b250937 /gtk/gtkmenushell.h | |
parent | 778aa7ade0107fa645ab1427132551d138c7334a (diff) | |
download | gtk+-dd143479fe85f16e4ea010a7b03d4365d9d9234e.tar.gz |
gtkmodelmenu: simplify logic, expose bind API
Make the main (and only) entry-point to gtkmodelmenu.c the now-public
gtk_menu_shell_bind_model().
Move the convenience constructors (gtk_menu_new_from_model() and
gtk_menu_bar_new_from_model()) to their proper files.
Remove the private header file.
Simplify the code a bit by making the initial populate part of the
bind() call.
https://bugzilla.gnome.org/show_bug.cgi?id=682831
Diffstat (limited to 'gtk/gtkmenushell.h')
-rw-r--r-- | gtk/gtkmenushell.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkmenushell.h b/gtk/gtkmenushell.h index 6e15ffc671..c0479e8ab3 100644 --- a/gtk/gtkmenushell.h +++ b/gtk/gtkmenushell.h @@ -112,6 +112,12 @@ void gtk_menu_shell_set_take_focus (GtkMenuShell *menu_shell, GtkWidget *gtk_menu_shell_get_selected_item (GtkMenuShell *menu_shell); GtkWidget *gtk_menu_shell_get_parent_shell (GtkMenuShell *menu_shell); +GDK_AVAILABLE_IN_3_6 +void gtk_menu_shell_bind_model (GtkMenuShell *menu_shell, + GMenuModel *model, + const gchar *action_namespace, + gboolean with_separators); + G_END_DECLS #endif /* __GTK_MENU_SHELL_H__ */ |