diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-02-10 09:56:17 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-02-24 11:15:02 +0100 |
commit | fd21c947cce5f9140aee4ae4abb9ac6914bdc0d2 (patch) | |
tree | 2c487b509875de7d9adc715716d228bdfd002705 /src/nautilus-canvas-view.c | |
parent | e4b0601b6f5d51a9633580f80dd67ea8b28ad8c0 (diff) | |
download | nautilus-fd21c947cce5f9140aee4ae4abb9ac6914bdc0d2.tar.gz |
general: add another zoom level
In icon view, add a smaller zoom level to be able for dense views,
and increase the default padding to allow the labels enough space.
Now levels are 48px, 64px, 96px and 128px for icon view, instead of
only 64px, 96px and 128px, but with the increased padding the 64px and
48px are useful.
List view also gains a bigger level, and they become 16px, 32px, 48px,
64px.
Also, adjust the label max width to be larger, but inside the icon
itself. This fixes the label not taking advantage of all the width the
icon provides, and also a few cases where icons were misaligned.
Diffstat (limited to 'src/nautilus-canvas-view.c')
-rw-r--r-- | src/nautilus-canvas-view.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nautilus-canvas-view.c b/src/nautilus-canvas-view.c index a5de12a6a..da33aa8d4 100644 --- a/src/nautilus-canvas-view.c +++ b/src/nautilus-canvas-view.c @@ -690,7 +690,7 @@ get_default_zoom_level (NautilusCanvasView *canvas_view) default_zoom_level = g_settings_get_enum (nautilus_icon_view_preferences, NAUTILUS_PREFERENCES_ICON_VIEW_DEFAULT_ZOOM_LEVEL); - return CLAMP (default_zoom_level, NAUTILUS_CANVAS_ZOOM_LEVEL_SMALL, NAUTILUS_CANVAS_ZOOM_LEVEL_LARGE); + return CLAMP (default_zoom_level, NAUTILUS_CANVAS_ZOOM_LEVEL_SMALL, NAUTILUS_CANVAS_ZOOM_LEVEL_LARGER); } static void @@ -794,7 +794,7 @@ nautilus_canvas_view_zoom_to_level (NautilusFilesView *view, g_return_if_fail (NAUTILUS_IS_CANVAS_VIEW (view)); g_return_if_fail (new_level >= NAUTILUS_CANVAS_ZOOM_LEVEL_SMALL && - new_level <= NAUTILUS_CANVAS_ZOOM_LEVEL_LARGE); + new_level <= NAUTILUS_CANVAS_ZOOM_LEVEL_LARGER); canvas_view = NAUTILUS_CANVAS_VIEW (view); canvas_container = get_canvas_container (canvas_view); @@ -821,7 +821,7 @@ nautilus_canvas_view_bump_zoom_level (NautilusFilesView *view, int zoom_incremen new_level = nautilus_canvas_view_get_zoom_level (view) + zoom_increment; if (new_level >= NAUTILUS_CANVAS_ZOOM_LEVEL_SMALL && - new_level <= NAUTILUS_CANVAS_ZOOM_LEVEL_LARGE) { + new_level <= NAUTILUS_CANVAS_ZOOM_LEVEL_LARGER) { nautilus_canvas_view_zoom_to_level (view, new_level); } } @@ -844,7 +844,7 @@ nautilus_canvas_view_can_zoom_in (NautilusFilesView *view) g_return_val_if_fail (NAUTILUS_IS_CANVAS_VIEW (view), FALSE); return nautilus_canvas_view_get_zoom_level (view) - < NAUTILUS_CANVAS_ZOOM_LEVEL_LARGE; + < NAUTILUS_CANVAS_ZOOM_LEVEL_LARGER; } static gboolean |