summaryrefslogtreecommitdiff
path: root/src/nautilus-canvas-view.c
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2015-04-22 16:21:07 +0200
committerCarlos Soriano <csoriano@gnome.org>2015-04-22 20:56:40 +0200
commit986eafd989bdaf8ad003a61e2ed0fa8d21dab87b (patch)
treea748671749462ff2d455f92cb0c4c84db7de2e71 /src/nautilus-canvas-view.c
parent9f92f73e555c733bc7c5234a29b1ee58828aa9b1 (diff)
downloadnautilus-986eafd989bdaf8ad003a61e2ed0fa8d21dab87b.tar.gz
view: Make the zoom slider the preference itself
With the recent changes of the zoom, some people wanted to have by default the smaller zoom level. They changed the slider and expected to set the setting as well, so further applications openings had that zoom level. But changed on the zoom were intended only for the current view and not altering the preference. And instead, if you wanted to make it permanent you needed to go to Preferences and change it there. Seems that was confusing for the users, so instead use the slider as the permanent preference and remove the zoom preferences from the Preferences dialog.
Diffstat (limited to 'src/nautilus-canvas-view.c')
-rw-r--r--src/nautilus-canvas-view.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nautilus-canvas-view.c b/src/nautilus-canvas-view.c
index b71753ad9..b7f4edbd1 100644
--- a/src/nautilus-canvas-view.c
+++ b/src/nautilus-canvas-view.c
@@ -968,6 +968,9 @@ action_zoom_to_level (GSimpleAction *action,
nautilus_canvas_view_zoom_to_level (view, zoom_level);
g_simple_action_set_state (G_SIMPLE_ACTION (action), state);
+ g_settings_set_enum (nautilus_icon_view_preferences,
+ NAUTILUS_PREFERENCES_ICON_VIEW_DEFAULT_ZOOM_LEVEL,
+ zoom_level);
}
static void