diff options
author | rbuj <[email protected]> | 2020-11-23 09:58:57 +0100 |
---|---|---|
committer | Luke from DC <[email protected]> | 2020-11-29 06:43:17 +0000 |
commit | 844db921aeed3e987f3be0f4e7e0b3a9703612ac (patch) | |
tree | c36e1060130fbac5adce5dd488dc990919c1479b /capplets/appearance/appearance-ui.c | |
parent | f164a479add73845f3bc826c2cf04d097db4278e (diff) | |
download | mate-control-center-844db921aeed3e987f3be0f4e7e0b3a9703612ac.tar.bz2 mate-control-center-844db921aeed3e987f3be0f4e7e0b3a9703612ac.tar.xz |
appearance: Add file chooser settings
Diffstat (limited to 'capplets/appearance/appearance-ui.c')
-rw-r--r-- | capplets/appearance/appearance-ui.c | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/capplets/appearance/appearance-ui.c b/capplets/appearance/appearance-ui.c index 3a004af3..4ca5466e 100644 --- a/capplets/appearance/appearance-ui.c +++ b/capplets/appearance/appearance-ui.c @@ -73,21 +73,18 @@ menus_have_icons_cb (GSettings *settings, void ui_init (AppearanceData *data) { - GtkWidget* widget; - /* FIXME maybe just remove that stuff from .ui file */ GtkWidget* container = appearance_capplet_get_widget(data, "vbox24"); - // Remove menu accels and toolbar style toggles for new GTK versions + /* Remove menu accels and toolbar style toggles for new GTK versions */ gtk_container_remove((GtkContainer *) container, appearance_capplet_get_widget(data, "menu_accel_toggle")); gtk_container_remove((GtkContainer *) container, appearance_capplet_get_widget(data, "hbox11")); - widget = appearance_capplet_get_widget(data, "menu_icons_toggle"); g_settings_bind (data->interface_settings, MENU_ICONS_KEY, - G_OBJECT (widget), + gtk_builder_get_object (data->ui, "menu_icons_toggle"), "active", G_SETTINGS_BIND_DEFAULT); g_signal_connect (data->interface_settings, "changed::" MENU_ICONS_KEY, @@ -97,10 +94,33 @@ ui_init (AppearanceData *data) g_settings_get_boolean (data->interface_settings, MENU_ICONS_KEY)); - widget = appearance_capplet_get_widget(data, "button_icons_toggle"); g_settings_bind (data->interface_settings, BUTTON_ICONS_KEY, - G_OBJECT (widget), + gtk_builder_get_object (data->ui, "button_icons_toggle"), + "active", + G_SETTINGS_BIND_DEFAULT); + + g_settings_bind (data->filechooser_settings, + FILECHOOSER_HIDDEN_ITEMS_KEY, + gtk_builder_get_object (data->ui, "filechooser_hidden_items_toggle"), + "active", + G_SETTINGS_BIND_DEFAULT); + + g_settings_bind (data->filechooser_settings, + FILECHOOSER_SIZE_COL_KEY, + gtk_builder_get_object (data->ui, "filechooser_size_column_toggle"), + "active", + G_SETTINGS_BIND_DEFAULT); + + g_settings_bind (data->filechooser_settings, + FILECHOOSER_TYPE_COL_KEY, + gtk_builder_get_object (data->ui, "filechooser_type_column_toggle"), + "active", + G_SETTINGS_BIND_DEFAULT); + + g_settings_bind (data->filechooser_settings, + FILECHOOSER_DIR_FIRST_KEY, + gtk_builder_get_object (data->ui, "filechooser_sort_directories_first_toggle"), "active", G_SETTINGS_BIND_DEFAULT); } |