summaryrefslogtreecommitdiff
path: root/src/caja-history-sidebar.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-09-05 14:44:07 +0200
committerStefano Karapetsas <[email protected]>2012-09-05 14:44:07 +0200
commitb10e30db918ff889bb06540e129b3f31b2815da2 (patch)
treed98d7640c4275e4d6496f54926b580e59b9253b7 /src/caja-history-sidebar.c
parentf82a305cde0842e53d7468ce37b4cd02161838c5 (diff)
downloadcaja-b10e30db918ff889bb06540e129b3f31b2815da2.tar.bz2
caja-b10e30db918ff889bb06540e129b3f31b2815da2.tar.xz
convert click-policy to gsettings
Diffstat (limited to 'src/caja-history-sidebar.c')
-rw-r--r--src/caja-history-sidebar.c15
1 files changed, 8 insertions, 7 deletions
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);
}