From d344c0a46528b63928a87b7b1bed707967f248a1 Mon Sep 17 00:00:00 2001 From: Carlos Soriano Date: Wed, 7 Jan 2015 16:48:24 +0100 Subject: general: Rework menus of nautilus Refresh the nautilus menus in the view (context menus) and the menus in the toolbar, changin as well in the path the UI of the toolbar to match mockups. In the way, port to GAction and GMenu every action and menu of nautilus and some clean ups thanks to this port. --- src/nautilus-toolbar.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'src/nautilus-toolbar.h') diff --git a/src/nautilus-toolbar.h b/src/nautilus-toolbar.h index 2a8d2ddb3..d9c111fd9 100644 --- a/src/nautilus-toolbar.h +++ b/src/nautilus-toolbar.h @@ -42,7 +42,7 @@ (G_TYPE_INSTANCE_GET_CLASS ((obj), NAUTILUS_TYPE_TOOLBAR, NautilusToolbarClass)) typedef struct _NautilusToolbar NautilusToolbar; -typedef struct _NautilusToolbarPriv NautilusToolbarPriv; +typedef struct _NautilusToolbarPrivate NautilusToolbarPrivate; typedef struct _NautilusToolbarClass NautilusToolbarClass; typedef enum { @@ -54,7 +54,7 @@ struct _NautilusToolbar { GtkHeaderBar parent; /* private */ - NautilusToolbarPriv *priv; + NautilusToolbarPrivate *priv; }; struct _NautilusToolbarClass { @@ -72,5 +72,19 @@ void nautilus_toolbar_set_show_main_bar (NautilusToolbar *self, gboolean show_main_bar); 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_sync_navigation_buttons (NautilusToolbar *self); +void nautilus_toolbar_view_menu_widget_show_element (NautilusToolbar *self, + gchar *id); +void nautilus_toolbar_view_menu_widget_hide_element (NautilusToolbar *self, + gchar *id); +void nautilus_toolbar_view_menu_widget_set_zoom_level (NautilusToolbar *self, + gdouble level); +void nautilus_toolbar_update_view_mode (NautilusToolbar *self, + const gchar *view_mode); #endif /* __NAUTILUS_TOOLBAR_H__ */ -- cgit v1.2.1