summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-file.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-09-05 16:48:07 +0200
committerStefano Karapetsas <[email protected]>2012-09-05 16:48:07 +0200
commit46925062b04255e723ff931ac82aefda9cfc516d (patch)
treefa84d02512e584fdbf73f34d5d1ea999cefa169f /libcaja-private/caja-file.c
parentf0ca3e5a0329fa0c4a2fe5b6b941e660b547e113 (diff)
downloadcaja-46925062b04255e723ff931ac82aefda9cfc516d.tar.bz2
caja-46925062b04255e723ff931ac82aefda9cfc516d.tar.xz
convert show-text-in-icons to gsettings
Diffstat (limited to 'libcaja-private/caja-file.c')
-rw-r--r--libcaja-private/caja-file.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c
index 988ff2e7..e923e895 100644
--- a/libcaja-private/caja-file.c
+++ b/libcaja-private/caja-file.c
@@ -4694,7 +4694,7 @@ static CajaSpeedTradeoffValue show_text_in_icons;
static void
show_text_in_icons_changed_callback (gpointer callback_data)
{
- show_text_in_icons = eel_preferences_get_enum (CAJA_PREFERENCES_SHOW_TEXT_IN_ICONS);
+ show_text_in_icons = g_settings_get_enum (caja_preferences, CAJA_PREFERENCES_SHOW_TEXT_IN_ICONS);
}
static void
@@ -4790,9 +4790,10 @@ caja_file_should_get_top_left_text (CajaFile *file)
/* Add the callback once for the life of our process */
if (!show_text_in_icons_callback_added) {
- eel_preferences_add_callback (CAJA_PREFERENCES_SHOW_TEXT_IN_ICONS,
- show_text_in_icons_changed_callback,
- NULL);
+ g_signal_connect_swapped (caja_preferences,
+ "changed::" CAJA_PREFERENCES_SHOW_TEXT_IN_ICONS,
+ G_CALLBACK (show_text_in_icons_changed_callback),
+ NULL);
show_text_in_icons_callback_added = TRUE;
/* Peek for the first time */