From be0f488a2d2525deab363ebf98ce548395e60d90 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Sun, 25 Jan 2015 17:12:09 +0000 Subject: toolbar: rework how Undo/Redo actions are added to the menu Currently we always reload the menu from scratch and reset the menu button; the intent of the code here is to modify the menu in-place. --- src/nautilus-toolbar.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nautilus-toolbar.h') diff --git a/src/nautilus-toolbar.h b/src/nautilus-toolbar.h index bfec6233e..a2caf496e 100644 --- a/src/nautilus-toolbar.h +++ b/src/nautilus-toolbar.h @@ -67,12 +67,10 @@ GtkWidget *nautilus_toolbar_new (NautilusWindow *window); GtkWidget *nautilus_toolbar_get_path_bar (NautilusToolbar *self); GtkWidget *nautilus_toolbar_get_location_entry (NautilusToolbar *self); +GMenu *nautilus_toolbar_get_action_menu (NautilusToolbar *self); void nautilus_toolbar_set_show_location_entry (NautilusToolbar *self, gboolean show_location_entry); -void nautilus_toolbar_action_menu_add_item (NautilusToolbar *self, - GMenuItem *item, - const gchar *section_name); void nautilus_toolbar_reset_menus (NautilusToolbar *self); void nautilus_toolbar_view_menu_widget_set_zoom_level (NautilusToolbar *self, -- cgit v1.2.1