summaryrefslogtreecommitdiff
path: root/src/caja-sidebar-title.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-09-05 16:55:12 +0200
committerStefano Karapetsas <[email protected]>2012-09-05 16:55:12 +0200
commit562875c2ed80bd7501fb161564ab88c731ac497c (patch)
treece4641b88d670ada980feee9a0b109ee79660924 /src/caja-sidebar-title.c
parent46925062b04255e723ff931ac82aefda9cfc516d (diff)
downloadcaja-562875c2ed80bd7501fb161564ab88c731ac497c.tar.bz2
caja-562875c2ed80bd7501fb161564ab88c731ac497c.tar.xz
convert show-directory-item-counts to gsettings
Diffstat (limited to 'src/caja-sidebar-title.c')
-rw-r--r--src/caja-sidebar-title.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/caja-sidebar-title.c b/src/caja-sidebar-title.c
index 1e334677..15a761be 100644
--- a/src/caja-sidebar-title.c
+++ b/src/caja-sidebar-title.c
@@ -165,10 +165,10 @@ caja_sidebar_title_init (CajaSidebarTitle *sidebar_title)
/* initialize the label colors & fonts */
style_set (GTK_WIDGET (sidebar_title), NULL);
- eel_preferences_add_callback_while_alive (
- CAJA_PREFERENCES_SHOW_DIRECTORY_ITEM_COUNTS,
- (EelPreferencesCallback) update_more_info,
- sidebar_title, G_OBJECT (sidebar_title));
+ g_signal_connect_swapped (caja_preferences,
+ "changed::" CAJA_PREFERENCES_SHOW_DIRECTORY_ITEM_COUNTS,
+ G_CALLBACK(update_more_info),
+ sidebar_title);
}
/* destroy by throwing away private storage */
@@ -206,6 +206,9 @@ caja_sidebar_title_destroy (GtkObject *object)
sidebar_title->details = NULL;
}
+ g_signal_handlers_disconnect_by_func (caja_preferences,
+ update_more_info, sidebar_title);
+
EEL_CALL_PARENT (GTK_OBJECT_CLASS, destroy, (object));
}