diff options
author | Stefano Karapetsas <[email protected]> | 2012-09-05 16:55:12 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-09-05 16:55:12 +0200 |
commit | 562875c2ed80bd7501fb161564ab88c731ac497c (patch) | |
tree | ce4641b88d670ada980feee9a0b109ee79660924 /libcaja-private/caja-file.c | |
parent | 46925062b04255e723ff931ac82aefda9cfc516d (diff) | |
download | caja-562875c2ed80bd7501fb161564ab88c731ac497c.tar.bz2 caja-562875c2ed80bd7501fb161564ab88c731ac497c.tar.xz |
convert show-directory-item-counts to gsettings
Diffstat (limited to 'libcaja-private/caja-file.c')
-rw-r--r-- | libcaja-private/caja-file.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c index e923e895..52bfaa50 100644 --- a/libcaja-private/caja-file.c +++ b/libcaja-private/caja-file.c @@ -4700,7 +4700,7 @@ show_text_in_icons_changed_callback (gpointer callback_data) static void show_directory_item_count_changed_callback (gpointer callback_data) { - show_directory_item_count = eel_preferences_get_enum (CAJA_PREFERENCES_SHOW_DIRECTORY_ITEM_COUNTS); + show_directory_item_count = g_settings_get_enum (caja_preferences, CAJA_PREFERENCES_SHOW_DIRECTORY_ITEM_COUNTS); } static gboolean @@ -4752,9 +4752,10 @@ caja_file_should_show_directory_item_count (CajaFile *file) /* Add the callback once for the life of our process */ if (!show_directory_item_count_callback_added) { - eel_preferences_add_callback (CAJA_PREFERENCES_SHOW_DIRECTORY_ITEM_COUNTS, - show_directory_item_count_changed_callback, - NULL); + g_signal_connect_swapped (caja_preferences, + "changed::" CAJA_PREFERENCES_SHOW_DIRECTORY_ITEM_COUNTS, + G_CALLBACK(show_directory_item_count_changed_callback), + NULL); show_directory_item_count_callback_added = TRUE; /* Peek for the first time */ |