diff options
author | Ryan Lortie <desrt@desrt.ca> | 2014-04-28 14:20:08 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-04-28 14:14:42 -0400 |
commit | d930716daf0b04d01832658b21ba96898686c70e (patch) | |
tree | 355024ddfcb6514b2bcc6b8064cf4bdb296f2a05 /gtk/gtkmenushell.c | |
parent | f6ee00769a9190ed95857dab9fc78f935b6645db (diff) | |
download | gtk+-d930716daf0b04d01832658b21ba96898686c70e.tar.gz |
GtkMenuTracker: add 'merge_sections' flag
Add the possibility of a GtkMenuTracker that performs no section
merging. Instead, it will report an item in the form of a separator for
subsections. It is then possible to get a separate tracker for the
subsection contents by using gtk_menu_tracker_new_for_item_link().
Diffstat (limited to 'gtk/gtkmenushell.c')
-rw-r--r-- | gtk/gtkmenushell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c index 6626a0e6fe..3c669a6cf7 100644 --- a/gtk/gtkmenushell.c +++ b/gtk/gtkmenushell.c @@ -2071,7 +2071,7 @@ gtk_menu_shell_tracker_insert_func (GtkMenuTrackerItem *item, * lazy... */ submenu->priv->tracker = gtk_menu_tracker_new_for_item_link (item, - G_MENU_LINK_SUBMENU, + G_MENU_LINK_SUBMENU, TRUE, gtk_menu_shell_tracker_insert_func, gtk_menu_shell_tracker_remove_func, submenu); @@ -2186,7 +2186,7 @@ gtk_menu_shell_bind_model (GtkMenuShell *menu_shell, if (model) menu_shell->priv->tracker = gtk_menu_tracker_new (GTK_ACTION_OBSERVABLE (muxer), - model, with_separators, action_namespace, + model, with_separators, FALSE, action_namespace, gtk_menu_shell_tracker_insert_func, gtk_menu_shell_tracker_remove_func, menu_shell); |