diff options
Diffstat (limited to 'src/nautilus-toolbar.c')
-rw-r--r-- | src/nautilus-toolbar.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c index 03dd73588..4664ae54a 100644 --- a/src/nautilus-toolbar.c +++ b/src/nautilus-toolbar.c @@ -1234,6 +1234,24 @@ container_remove_all_children (GtkContainer *container) } static void +slot_on_extensions_background_menu_changed (NautilusToolbar *self, + GParamSpec *param, + NautilusWindowSlot *slot) +{ + nautilus_path_bar_set_extensions_background_menu (NAUTILUS_PATH_BAR (self->path_bar), + nautilus_window_slot_get_extensions_background_menu (slot)); +} + +static void +slot_on_templates_menu_changed (NautilusToolbar *self, + GParamSpec *param, + NautilusWindowSlot *slot) +{ + nautilus_path_bar_set_templates_menu (NAUTILUS_PATH_BAR (self->path_bar), + nautilus_window_slot_get_templates_menu (slot)); +} + +static void on_slot_toolbar_menu_sections_changed (NautilusToolbar *self, GParamSpec *param, NautilusWindowSlot *slot) @@ -1344,7 +1362,10 @@ nautilus_toolbar_set_window_slot (NautilusToolbar *self, on_slot_toolbar_menu_sections_changed (self, NULL, self->window_slot); g_signal_connect_swapped (self->window_slot, "notify::toolbar-menu-sections", G_CALLBACK (on_slot_toolbar_menu_sections_changed), self); - + g_signal_connect_swapped (self->window_slot, "notify::extensions-background-menu", + G_CALLBACK (slot_on_extensions_background_menu_changed), self); + g_signal_connect_swapped (self->window_slot, "notify::templates-menu", + G_CALLBACK (slot_on_templates_menu_changed), self); g_signal_connect_swapped (window_slot, "notify::searching", G_CALLBACK (toolbar_update_appearance), self); |