From eb7245c30a1f2133266db28a7bc4d4c43f5e75c8 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 9 Jul 2011 21:43:02 +0200 Subject: [PATCH] Zoom in steps of 10% instead of 25% by default Related to: https://bugs.launchpad.net/midori/+bug/707026 --- midori/midori-browser.c | 4 ++-- midori/midori-view.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 2dff0706..13463b5e 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -3217,10 +3217,10 @@ _action_zoom_activate (GtkAction* action, if (g_str_equal (gtk_action_get_name (action), "ZoomIn")) midori_view_set_zoom_level (MIDORI_VIEW (view), - midori_view_get_zoom_level (MIDORI_VIEW (view)) + 0.25f); + midori_view_get_zoom_level (MIDORI_VIEW (view)) + 0.10f); else if (g_str_equal (gtk_action_get_name (action), "ZoomOut")) midori_view_set_zoom_level (MIDORI_VIEW (view), - midori_view_get_zoom_level (MIDORI_VIEW (view)) - 0.25f); + midori_view_get_zoom_level (MIDORI_VIEW (view)) - 0.10f); else midori_view_set_zoom_level (MIDORI_VIEW (view), 1.0f); } diff --git a/midori/midori-view.c b/midori/midori-view.c index e5edf1cd..cdc6883b 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -1875,10 +1875,10 @@ gtk_widget_scroll_event_cb (WebKitWebView* web_view, { if (event->direction == GDK_SCROLL_DOWN) midori_view_set_zoom_level (view, - midori_view_get_zoom_level (view) - 0.25f); + midori_view_get_zoom_level (view) - 0.10f); else if(event->direction == GDK_SCROLL_UP) midori_view_set_zoom_level (view, - midori_view_get_zoom_level (view) + 0.25f); + midori_view_get_zoom_level (view) + 0.10f); return TRUE; } else