Zoom in steps of 10% instead of 25% by default
Related to: https://bugs.launchpad.net/midori/+bug/707026
This commit is contained in:
parent
142c8184ee
commit
eb7245c30a
2 changed files with 4 additions and 4 deletions
|
@ -3217,10 +3217,10 @@ _action_zoom_activate (GtkAction* action,
|
||||||
|
|
||||||
if (g_str_equal (gtk_action_get_name (action), "ZoomIn"))
|
if (g_str_equal (gtk_action_get_name (action), "ZoomIn"))
|
||||||
midori_view_set_zoom_level (MIDORI_VIEW (view),
|
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"))
|
else if (g_str_equal (gtk_action_get_name (action), "ZoomOut"))
|
||||||
midori_view_set_zoom_level (MIDORI_VIEW (view),
|
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
|
else
|
||||||
midori_view_set_zoom_level (MIDORI_VIEW (view), 1.0f);
|
midori_view_set_zoom_level (MIDORI_VIEW (view), 1.0f);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1875,10 +1875,10 @@ gtk_widget_scroll_event_cb (WebKitWebView* web_view,
|
||||||
{
|
{
|
||||||
if (event->direction == GDK_SCROLL_DOWN)
|
if (event->direction == GDK_SCROLL_DOWN)
|
||||||
midori_view_set_zoom_level (view,
|
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)
|
else if(event->direction == GDK_SCROLL_UP)
|
||||||
midori_view_set_zoom_level (view,
|
midori_view_set_zoom_level (view,
|
||||||
midori_view_get_zoom_level (view) + 0.25f);
|
midori_view_get_zoom_level (view) + 0.10f);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue