summaryrefslogtreecommitdiff
path: root/src/nautilus-preferences-window.c
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@redhat.com>2018-07-26 13:14:23 +0200
committerCarlos Soriano <csoriano1618@gmail.com>2018-07-26 11:59:53 +0000
commitf2061e94093a33072e792181433b0618bf68d1b2 (patch)
tree558b2cca849b51c70e73eb322021be1d4ee0751f /src/nautilus-preferences-window.c
parent09b093291801fdf02ec5f0d76f1d7abb9363e7ba (diff)
downloadnautilus-f2061e94093a33072e792181433b0618bf68d1b2.tar.gz
preferences-window: Expose show sidebar setting
Since we want to replicate inside Nautilus what's in the app menu.
Diffstat (limited to 'src/nautilus-preferences-window.c')
-rw-r--r--src/nautilus-preferences-window.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nautilus-preferences-window.c b/src/nautilus-preferences-window.c
index 48861cfb4..509057a27 100644
--- a/src/nautilus-preferences-window.c
+++ b/src/nautilus-preferences-window.c
@@ -51,6 +51,8 @@
/* 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 \
@@ -460,6 +462,9 @@ 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_preferences,
NAUTILUS_PREFERENCES_DIALOG_TRASH_CONFIRM_WIDGET,
NAUTILUS_PREFERENCES_CONFIRM_TRASH);