summaryrefslogtreecommitdiff
path: root/src/file-manager/fm-desktop-icon-view.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-09-05 19:14:13 +0200
committerStefano Karapetsas <[email protected]>2012-09-05 19:14:13 +0200
commita114197e7fd0a8dba9fbafccac03c795d3819a9b (patch)
tree0efe66edc69f19b2056df60eec2e3c213e0693a1 /src/file-manager/fm-desktop-icon-view.c
parent12e085081592626b01721bebd07c22b69d1b4262 (diff)
downloadcaja-a114197e7fd0a8dba9fbafccac03c795d3819a9b.tar.bz2
caja-a114197e7fd0a8dba9fbafccac03c795d3819a9b.tar.xz
fix desktop-font gsettings conversion
Diffstat (limited to 'src/file-manager/fm-desktop-icon-view.c')
-rw-r--r--src/file-manager/fm-desktop-icon-view.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/file-manager/fm-desktop-icon-view.c b/src/file-manager/fm-desktop-icon-view.c
index ca9de561..fe339316 100644
--- a/src/file-manager/fm-desktop-icon-view.c
+++ b/src/file-manager/fm-desktop-icon-view.c
@@ -91,6 +91,7 @@ static void real_merge_menus (FMDirectoryVi
static void real_update_menus (FMDirectoryView *view);
static gboolean real_supports_zooming (FMDirectoryView *view);
static void fm_desktop_icon_view_update_icon_container_fonts (FMDesktopIconView *view);
+static void font_changed_callback (gpointer callback_data);
EEL_CLASS_BOILERPLATE (FMDesktopIconView,
fm_desktop_icon_view,
@@ -303,6 +304,9 @@ fm_desktop_icon_view_finalize (GObject *object)
g_signal_handlers_disconnect_by_func (caja_icon_view_preferences,
default_zoom_level_changed,
icon_view);
+ g_signal_handlers_disconnect_by_func (caja_preferences,
+ font_changed_callback,
+ icon_view);
eel_preferences_remove_callback (CAJA_PREFERENCES_LOCKDOWN_COMMAND_LINE,
lockdown_disable_command_line_changed_callback,
@@ -621,9 +625,10 @@ fm_desktop_icon_view_init (FMDesktopIconView *desktop_icon_view)
G_CALLBACK (default_zoom_level_changed),
desktop_icon_view);
- eel_preferences_add_callback_while_alive (CAJA_PREFERENCES_DESKTOP_FONT,
- font_changed_callback,
- desktop_icon_view, G_OBJECT (desktop_icon_view));
+ g_signal_connect_swapped (caja_preferences,
+ "changed::" CAJA_PREFERENCES_DESKTOP_FONT,
+ G_CALLBACK (font_changed_callback),
+ desktop_icon_view);
default_zoom_level_changed (desktop_icon_view);
fm_desktop_icon_view_update_icon_container_fonts (desktop_icon_view);