diff options
author | Neil Herald <neil.herald@gmail.com> | 2016-04-24 10:20:04 +0100 |
---|---|---|
committer | Neil Herald <neil.herald@gmail.com> | 2016-06-22 23:38:22 +0100 |
commit | 6ab063d474c4535821bf7065e844d2a87a45ed4d (patch) | |
tree | c08e9b418493c5ebe343400df198fe64238b8e1c /src/nautilus-ui-utilities.c | |
parent | 64c0a08ee150fa3930c1a26884978f33901ad895 (diff) | |
download | nautilus-6ab063d474c4535821bf7065e844d2a87a45ed4d.tar.gz |
toolbar: convert action menu from GMenu into GtkPopoverMenu
This is in preparation for merging the view menu into the action menu.
The action menu is currently a GMenu, which doesn't support the controls
we have on the view menu, e.g. the zoom slider and the button rows.
Converting to a GtkPopoverMenu will allow us to merge the menus.
This is part of the toolbar menu redesign to improve the usability of
the menus.
https://bugzilla.gnome.org/show_bug.cgi?id=764632
Diffstat (limited to 'src/nautilus-ui-utilities.c')
-rw-r--r-- | src/nautilus-ui-utilities.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/nautilus-ui-utilities.c b/src/nautilus-ui-utilities.c index 67acdf580..837178bc0 100644 --- a/src/nautilus-ui-utilities.c +++ b/src/nautilus-ui-utilities.c @@ -145,29 +145,6 @@ nautilus_gmenu_add_item_in_submodel (GMenu *menu, } void -nautilus_gmenu_replace_section (GMenu *menu, - const gchar *section_id, - GMenuModel *section) -{ - GMenuModel *orig_section; - GMenuItem *item; - gint idx; - - orig_section = find_gmenu_model (G_MENU_MODEL (menu), section_id); - g_return_if_fail (orig_section != NULL); - - g_menu_remove_all (G_MENU (orig_section)); - - for (idx = 0; idx < g_menu_model_get_n_items (section); idx++) { - item = g_menu_item_new_from_model (section, idx); - g_menu_append_item (G_MENU (orig_section), item); - g_object_unref (item); - } - - g_object_unref (orig_section); -} - -void nautilus_pop_up_context_menu (GtkWidget *parent, GMenu *menu, GdkEventButton *event) |