diff options
author | Felipe Borges <felipeborges@gnome.org> | 2016-11-07 16:01:01 +0100 |
---|---|---|
committer | Felipe Borges <felipeborges@gnome.org> | 2016-11-07 16:13:43 +0100 |
commit | e1443f8d5cc438ab96e2ee2433b34de300d533d3 (patch) | |
tree | de48bef3e18930044b122587153beb5067da4747 /src/nautilus-preferences-window.c | |
parent | 0366338cf471809729b2d00de6134e38cf29d7f9 (diff) | |
download | nautilus-e1443f8d5cc438ab96e2ee2433b34de300d533d3.tar.gz |
files-view, preferences: sync sort-directories-first with Gtk+
The sort-directories-first gsetting should be consistent
system-wise.
https://bugzilla.gnome.org/show_bug.cgi?id=750996
Diffstat (limited to 'src/nautilus-preferences-window.c')
-rw-r--r-- | src/nautilus-preferences-window.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/nautilus-preferences-window.c b/src/nautilus-preferences-window.c index 2df9e4afe..77cf27355 100644 --- a/src/nautilus-preferences-window.c +++ b/src/nautilus-preferences-window.c @@ -477,28 +477,15 @@ static void bind_builder_radio(GtkBuilder *builder, } } -static void set_gtk_filechooser_sort_first(GObject *object, - GParamSpec *pspec) -{ - g_settings_set_boolean ( - gtk_filechooser_preferences, NAUTILUS_PREFERENCES_SORT_DIRECTORIES_FIRST, - gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (object))); -} - static void nautilus_preferences_window_setup(GtkBuilder *builder, GtkWindow *parent_window) { GtkWidget *window; /* setup preferences */ - bind_builder_bool (builder, nautilus_preferences, + bind_builder_bool (builder, gtk_filechooser_preferences, NAUTILUS_PREFERENCES_DIALOG_FOLDERS_FIRST_WIDGET, NAUTILUS_PREFERENCES_SORT_DIRECTORIES_FIRST); - g_signal_connect ( - gtk_builder_get_object (builder, - NAUTILUS_PREFERENCES_DIALOG_FOLDERS_FIRST_WIDGET), - "notify::active", G_CALLBACK (set_gtk_filechooser_sort_first), NULL); - bind_builder_bool (builder, nautilus_preferences, NAUTILUS_PREFERENCES_DIALOG_TRASH_CONFIRM_WIDGET, NAUTILUS_PREFERENCES_CONFIRM_TRASH); |