summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/caja-file-management-properties.c8
-rw-r--r--src/caja-history-sidebar.c15
-rw-r--r--src/file-manager/fm-directory-view.c10
-rw-r--r--src/file-manager/fm-icon-view.c2
-rw-r--r--src/file-manager/fm-list-view.c5
5 files changed, 22 insertions, 18 deletions
diff --git a/src/caja-file-management-properties.c b/src/caja-file-management-properties.c
index 5dd9181d..fca7a149 100644
--- a/src/caja-file-management-properties.c
+++ b/src/caja-file-management-properties.c
@@ -948,10 +948,10 @@ caja_file_management_properties_dialog_setup (GtkBuilder *builder, GtkWindow *wi
CAJA_PREFERENCES_DATE_FORMAT,
(const char **) date_format_values);
- eel_preferences_builder_connect_string_enum_radio_button (builder,
- (const char **) click_behavior_components,
- CAJA_PREFERENCES_CLICK_POLICY,
- (const char **) click_behavior_values);
+ bind_builder_radio (builder, caja_preferences,
+ (const char **) click_behavior_components,
+ CAJA_PREFERENCES_CLICK_POLICY,
+ (const char **) click_behavior_values);
bind_builder_radio (builder, caja_preferences,
(const char **) executable_text_components,
CAJA_PREFERENCES_EXECUTABLE_TEXT_ACTIVATION,
diff --git a/src/caja-history-sidebar.c b/src/caja-history-sidebar.c
index 897d836e..bdcb7c33 100644
--- a/src/caja-history-sidebar.c
+++ b/src/caja-history-sidebar.c
@@ -219,7 +219,7 @@ update_click_policy (CajaHistorySidebar *sidebar)
{
int policy;
- policy = eel_preferences_get_enum (CAJA_PREFERENCES_CLICK_POLICY);
+ policy = g_settings_get_enum (caja_preferences, CAJA_PREFERENCES_CLICK_POLICY);
eel_gtk_tree_view_set_activate_on_single_click
(sidebar->tree_view, policy == CAJA_CLICK_POLICY_SINGLE);
@@ -298,9 +298,10 @@ caja_history_sidebar_init (CajaHistorySidebar *sidebar)
g_signal_connect (tree_view, "button-press-event",
G_CALLBACK (button_press_event_callback), sidebar);
- eel_preferences_add_callback (CAJA_PREFERENCES_CLICK_POLICY,
- click_policy_changed_callback,
- sidebar);
+ g_signal_connect_swapped (caja_preferences,
+ "changed::" CAJA_PREFERENCES_CLICK_POLICY,
+ G_CALLBACK(click_policy_changed_callback),
+ sidebar);
update_click_policy (sidebar);
}
@@ -311,9 +312,9 @@ caja_history_sidebar_finalize (GObject *object)
sidebar = CAJA_HISTORY_SIDEBAR (object);
- eel_preferences_remove_callback (CAJA_PREFERENCES_CLICK_POLICY,
- click_policy_changed_callback,
- sidebar);
+ g_signal_handlers_disconnect_by_func (caja_preferences,
+ click_policy_changed_callback,
+ sidebar);
G_OBJECT_CLASS (caja_history_sidebar_parent_class)->finalize (object);
}
diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c
index 5b304f13..db03d79d 100644
--- a/src/file-manager/fm-directory-view.c
+++ b/src/file-manager/fm-directory-view.c
@@ -2045,8 +2045,10 @@ fm_directory_view_init (FMDirectoryView *view)
text_attribute_names_changed_callback, view);
eel_preferences_add_callback (CAJA_PREFERENCES_SHOW_IMAGE_FILE_THUMBNAILS,
image_display_policy_changed_callback, view);
- eel_preferences_add_callback (CAJA_PREFERENCES_CLICK_POLICY,
- click_policy_changed_callback, view);
+ g_signal_connect_swapped (caja_preferences,
+ "changed::" CAJA_PREFERENCES_CLICK_POLICY,
+ G_CALLBACK(click_policy_changed_callback),
+ view);
eel_preferences_add_callback (CAJA_PREFERENCES_SORT_DIRECTORIES_FIRST,
sort_directories_first_changed_callback, view);
eel_preferences_add_callback (CAJA_PREFERENCES_LOCKDOWN_COMMAND_LINE,
@@ -2174,8 +2176,8 @@ fm_directory_view_finalize (GObject *object)
text_attribute_names_changed_callback, view);
eel_preferences_remove_callback (CAJA_PREFERENCES_SHOW_IMAGE_FILE_THUMBNAILS,
image_display_policy_changed_callback, view);
- eel_preferences_remove_callback (CAJA_PREFERENCES_CLICK_POLICY,
- click_policy_changed_callback, view);
+ g_signal_handlers_disconnect_by_func (caja_preferences,
+ click_policy_changed_callback, view);
eel_preferences_remove_callback (CAJA_PREFERENCES_SORT_DIRECTORIES_FIRST,
sort_directories_first_changed_callback, view);
eel_preferences_remove_callback (CAJA_PREFERENCES_LOCKDOWN_COMMAND_LINE,
diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c
index 3bd24bd3..5ecf6e8c 100644
--- a/src/file-manager/fm-icon-view.c
+++ b/src/file-manager/fm-icon-view.c
@@ -2890,7 +2890,7 @@ fm_icon_view_update_click_mode (FMIconView *icon_view)
icon_container = get_icon_container (icon_view);
g_assert (icon_container != NULL);
- click_mode = eel_preferences_get_enum (CAJA_PREFERENCES_CLICK_POLICY);
+ click_mode = g_settings_get_enum (caja_preferences, CAJA_PREFERENCES_CLICK_POLICY);
caja_icon_container_set_single_click_mode (icon_container,
click_mode == CAJA_CLICK_POLICY_SINGLE);
diff --git a/src/file-manager/fm-list-view.c b/src/file-manager/fm-list-view.c
index 487f3023..2a0aa693 100644
--- a/src/file-manager/fm-list-view.c
+++ b/src/file-manager/fm-list-view.c
@@ -3288,8 +3288,9 @@ fm_list_view_class_init (FMListViewClass *class)
fm_directory_view_class->using_manual_layout = fm_list_view_using_manual_layout;
fm_directory_view_class->set_is_active = real_set_is_active;
- eel_preferences_add_auto_enum (CAJA_PREFERENCES_CLICK_POLICY,
- &click_policy_auto_value);
+ eel_g_settings_add_auto_enum (caja_preferences,
+ CAJA_PREFERENCES_CLICK_POLICY,
+ &click_policy_auto_value);
eel_preferences_add_auto_string (CAJA_PREFERENCES_LIST_VIEW_DEFAULT_SORT_ORDER,
(const char **) &default_sort_order_auto_value);
eel_preferences_add_auto_boolean (CAJA_PREFERENCES_LIST_VIEW_DEFAULT_SORT_IN_REVERSE_ORDER,