summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author高群凯 <[email protected]>2014-12-29 17:29:07 +0800
committerinfirit <[email protected]>2014-12-29 11:28:08 +0100
commita823778ec6c091cada6f4473413f220d6732ed7a (patch)
treea8299fc97501268428d8e8cda7b0f11aaf0ae63a /src
parent8116b5a43e11493d6e81a0a1e1ba67fa0d6289a4 (diff)
downloadcaja-a823778ec6c091cada6f4473413f220d6732ed7a.tar.bz2
caja-a823778ec6c091cada6f4473413f220d6732ed7a.tar.xz
fixed: Adjust Default _zoom level always get the last "old" value
The callback function update_auto_enum should be connected before the default_zoom_level_changed, otherwise the new_level always get the last "old" value in default_zoom_level_changed and the desktop-view display strange.
Diffstat (limited to 'src')
-rw-r--r--src/file-manager/fm-desktop-icon-view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/file-manager/fm-desktop-icon-view.c b/src/file-manager/fm-desktop-icon-view.c
index 06fdc930..7f02efb5 100644
--- a/src/file-manager/fm-desktop-icon-view.c
+++ b/src/file-manager/fm-desktop-icon-view.c
@@ -600,6 +600,8 @@ fm_desktop_icon_view_init (FMDesktopIconView *desktop_icon_view)
g_signal_connect_object (desktop_icon_view, "unrealize",
G_CALLBACK (unrealized_callback), desktop_icon_view, 0);
+ default_zoom_level_changed (desktop_icon_view);
+
g_signal_connect_swapped (caja_icon_view_preferences,
"changed::" CAJA_PREFERENCES_ICON_VIEW_DEFAULT_ZOOM_LEVEL,
G_CALLBACK (default_zoom_level_changed),
@@ -610,7 +612,6 @@ fm_desktop_icon_view_init (FMDesktopIconView *desktop_icon_view)
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);
g_signal_connect_swapped (mate_lockdown_preferences,