Zoom in steps of 10% instead of 25% by default

Related to: https://bugs.launchpad.net/midori/+bug/707026
This commit is contained in:
Christian Dywan 2011-07-09 21:43:02 +02:00
parent 142c8184ee
commit eb7245c30a
2 changed files with 4 additions and 4 deletions

View file

@ -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);
}

View file

@ -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