diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c index 3875aecc1..cd0cb368e 100644 --- a/src/nautilus-toolbar.c +++ b/src/nautilus-toolbar.c @@ -67,7 +67,6 @@ struct _NautilusToolbar GtkWidget *location_entry_container; GtkWidget *search_container; GtkWidget *toolbar_switcher; - GtkWidget *toolbar_switcher_container; GtkWidget *path_bar; GtkWidget *location_entry; @@ -891,18 +890,8 @@ on_location_entry_focus_changed (GObject *object, static void nautilus_toolbar_constructed (GObject *object) { - g_autoptr (GtkBuilder) builder = NULL; NautilusToolbar *self = NAUTILUS_TOOLBAR (object); - builder = gtk_builder_new_from_resource ("/org/gnome/nautilus/ui/nautilus-toolbar-switcher.ui"); - self->toolbar_switcher = GTK_WIDGET (gtk_builder_get_object (builder, "toolbar_switcher")); - self->search_container = GTK_WIDGET (gtk_builder_get_object (builder, "search_container")); - self->path_bar_container = GTK_WIDGET (gtk_builder_get_object (builder, "path_bar_container")); - self->location_entry_container = GTK_WIDGET (gtk_builder_get_object (builder, "location_entry_container")); - - gtk_container_add (GTK_CONTAINER (self->toolbar_switcher_container), - self->toolbar_switcher); - self->path_bar = g_object_new (NAUTILUS_TYPE_PATH_BAR, NULL); gtk_container_add (GTK_CONTAINER (self->path_bar_container), self->path_bar); @@ -1231,7 +1220,10 @@ nautilus_toolbar_class_init (NautilusToolbarClass *klass) gtk_widget_class_bind_template_child (widget_class, NautilusToolbar, app_menu); gtk_widget_class_bind_template_child (widget_class, NautilusToolbar, back_button); gtk_widget_class_bind_template_child (widget_class, NautilusToolbar, forward_button); - gtk_widget_class_bind_template_child (widget_class, NautilusToolbar, toolbar_switcher_container); + gtk_widget_class_bind_template_child (widget_class, NautilusToolbar, toolbar_switcher); + gtk_widget_class_bind_template_child (widget_class, NautilusToolbar, search_container); + gtk_widget_class_bind_template_child (widget_class, NautilusToolbar, path_bar_container); + gtk_widget_class_bind_template_child (widget_class, NautilusToolbar, location_entry_container); gtk_widget_class_bind_template_child (widget_class, NautilusToolbar, view_menu_zoom_section); gtk_widget_class_bind_template_child (widget_class, NautilusToolbar, view_menu_undo_redo_section); diff --git a/src/resources/nautilus.gresource.xml b/src/resources/nautilus.gresource.xml index bb0cf3ea1..a0cd28876 100644 --- a/src/resources/nautilus.gresource.xml +++ b/src/resources/nautilus.gresource.xml @@ -5,7 +5,6 @@ ui/nautilus-search-popover.ui ui/nautilus-pathbar-context-menu.ui ui/nautilus-toolbar.ui - ui/nautilus-toolbar-switcher.ui ui/nautilus-toolbar-view-menu.ui ui/nautilus-column-chooser.ui ui/nautilus-list-view-column-editor.ui diff --git a/src/resources/ui/nautilus-toolbar-switcher.ui b/src/resources/ui/nautilus-toolbar-switcher.ui deleted file mode 100644 index 3b13c9214..000000000 --- a/src/resources/ui/nautilus-toolbar-switcher.ui +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - True - False - False - crossfade - - - False - center - - - - - - - - - - - - - pathbar - - - - - False - - - - - - - - - - - - - location - 1 - - - - - True - False - vertical - - - - - - - - - - - - search - 2 - - - - \ No newline at end of file diff --git a/src/resources/ui/nautilus-toolbar.ui b/src/resources/ui/nautilus-toolbar.ui index d012fa827..a1e6fccec 100644 --- a/src/resources/ui/nautilus-toolbar.ui +++ b/src/resources/ui/nautilus-toolbar.ui @@ -439,17 +439,48 @@ False 6 - + True False center + False + crossfade - + + False + center + + + + pathbar + + + + + False + + + + location + 1 + + + + + True + False + vertical + + + search + 2 + - - 0 - @@ -477,9 +508,6 @@ - - end -