diff options
author | António Fernandes <antoniof@gnome.org> | 2021-02-07 00:06:21 +0000 |
---|---|---|
committer | António Fernandes <antoniojpfernandes@gmail.com> | 2021-02-08 11:46:02 +0000 |
commit | e12fff1077e6306093e2e394e8e03e6bb4250a21 (patch) | |
tree | d07df703ea18aa909a7485b9ec24b93dd4f494d7 /src | |
parent | 5717c59ce8c58ff72b59e945c4c0e6bd82fd8550 (diff) | |
download | nautilus-e12fff1077e6306093e2e394e8e03e6bb4250a21.tar.gz |
preferences-window: Drop sidebar visibility checkbox
When preparing to drop the Application Menu, this was added to the
Preferences window.[1]
Later when actually dropping the Application Menu, the action was
added to the primary window menu.[2]
So, it ended up in 2 places, which it not necessary.
The sidebar is essential for navigation, so hiding is only tempoary,
not a long-lasting preference. So, it doesn't make sense to have here.
[1] commit f2061e94093a33072e792181433b0618bf68d1b2
[2] commit 99324771868ca7fad75889418ecd08765d8b4629
Diffstat (limited to 'src')
-rw-r--r-- | src/nautilus-preferences-window.c | 5 | ||||
-rw-r--r-- | src/resources/ui/nautilus-preferences-window.ui | 51 |
2 files changed, 0 insertions, 56 deletions
diff --git a/src/nautilus-preferences-window.c b/src/nautilus-preferences-window.c index 156d994b2..cbcf2aca6 100644 --- a/src/nautilus-preferences-window.c +++ b/src/nautilus-preferences-window.c @@ -51,8 +51,6 @@ /* bool preferences */ #define NAUTILUS_PREFERENCES_DIALOG_FOLDERS_FIRST_WIDGET \ "sort_folders_first_checkbutton" -#define NAUTILUS_PREFERENCS_DIALOG_START_WITH_SIDEBAR \ - "show_sidebar_checkbutton" #define NAUTILUS_PREFERENCES_DIALOG_DELETE_PERMANENTLY_WIDGET \ "show_delete_permanently_checkbutton" #define NAUTILUS_PREFERENCES_DIALOG_CREATE_LINK_WIDGET \ @@ -413,9 +411,6 @@ static void nautilus_preferences_window_setup(GtkBuilder *builder, bind_builder_bool (builder, gtk_filechooser_preferences, NAUTILUS_PREFERENCES_DIALOG_FOLDERS_FIRST_WIDGET, NAUTILUS_PREFERENCES_SORT_DIRECTORIES_FIRST); - bind_builder_bool (builder, nautilus_window_state, - NAUTILUS_PREFERENCS_DIALOG_START_WITH_SIDEBAR, - NAUTILUS_WINDOW_STATE_START_WITH_SIDEBAR); bind_builder_bool (builder, nautilus_list_view_preferences, NAUTILUS_PREFERENCES_DIALOG_LIST_VIEW_USE_TREE_WIDGET, NAUTILUS_PREFERENCES_LIST_VIEW_USE_TREE); diff --git a/src/resources/ui/nautilus-preferences-window.ui b/src/resources/ui/nautilus-preferences-window.ui index a85408d8f..c1ba7b603 100644 --- a/src/resources/ui/nautilus-preferences-window.ui +++ b/src/resources/ui/nautilus-preferences-window.ui @@ -36,57 +36,6 @@ <property name="orientation">vertical</property> <property name="spacing">18</property> <child> - <object class="GtkBox" id="vbox2"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="orientation">vertical</property> - <property name="spacing">6</property> - <child> - <object class="GtkLabel" id="label_general"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes">General</property> - <property name="xalign">0</property> - <attributes> - <attribute name="weight" value="bold"/> - </attributes> - <accessibility> - <relation type="label-for" target="vbox2"/> - </accessibility> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkCheckButton" id="show_sidebar_checkbutton"> - <property name="label" translatable="yes">_Show sidebar</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">False</property> - <property name="halign">start</property> - <property name="use_underline">True</property> - <property name="draw_indicator">True</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> - <accessibility> - <relation type="labelled-by" target="label_general"/> - </accessibility> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> <object class="GtkBox" id="vbox12"> <property name="visible">True</property> <property name="can_focus">False</property> |