From 066c5a11c78fbbba30ca9ae294c7901b4286f8c9 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 8 Jun 2008 17:49:59 +0200 Subject: [PATCH] Enable mouse wheel zoom bindings. --- midori/midori-webview.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/midori/midori-webview.c b/midori/midori-webview.c index 0c68b26b..827c601c 100644 --- a/midori/midori-webview.c +++ b/midori/midori-webview.c @@ -373,7 +373,7 @@ gtk_widget_button_press_event (MidoriWebView* web_view, case 2: if (state & GDK_CONTROL_MASK) { - // FIXME: Reset font multiplier or zoom level + webkit_web_view_set_zoom_level (WEBKIT_WEB_VIEW (web_view), 1.0); return FALSE; // Allow Ctrl + Middle click } else @@ -424,11 +424,10 @@ gtk_widget_scroll_event (MidoriWebView* web_view, gdk_window_get_pointer (NULL, &x, &y, &state); if (state & GDK_CONTROL_MASK) { - // FIXME: Increase or decrease the font multiplier or zoom level if (event->direction == GDK_SCROLL_DOWN) - ; + webkit_web_view_zoom_out (WEBKIT_WEB_VIEW (web_view)); else if(event->direction == GDK_SCROLL_UP) - ; + webkit_web_view_zoom_in (WEBKIT_WEB_VIEW (web_view)); return TRUE; } else