[evolution/wip-webkit2] Swap level manipulation between zoom_in and zoom_out



commit eb1d052175609e6a68ad65e02b7dea41d2f1e883
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Oct 18 14:07:27 2013 +0200

    Swap level manipulation between zoom_in and zoom_out

 e-util/e-web-view.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c
index f66adc0..1a1a762 100644
--- a/e-util/e-web-view.c
+++ b/e-util/e-web-view.c
@@ -2654,9 +2654,8 @@ e_web_view_zoom_in (EWebView *web_view)
        /* There is no webkit_web_view_zoom_in function in WK2, so emulate it */
        zoom_level = webkit_web_view_get_zoom_level (WEBKIT_WEB_VIEW (web_view));
        /* zoom-step in WK1 was 0.1 */
-       zoom_level -= 0.1;
-       if (zoom_level >= 0)
-               webkit_web_view_set_zoom_level (WEBKIT_WEB_VIEW (web_view), zoom_level);
+       zoom_level += 0.1;
+       webkit_web_view_set_zoom_level (WEBKIT_WEB_VIEW (web_view), zoom_level);
 /* FIXME XXX
        webkit_web_view_zoom_in (WEBKIT_WEB_VIEW (web_view));*/
 }
@@ -2671,8 +2670,9 @@ e_web_view_zoom_out (EWebView *web_view)
        /* There is no webkit_web_view_zoom_out function in WK2, so emulate it */
        zoom_level = webkit_web_view_get_zoom_level (WEBKIT_WEB_VIEW (web_view));
        /* zoom-step in WK1 was 0.1 */
-       zoom_level += 0.1;
-       webkit_web_view_set_zoom_level (WEBKIT_WEB_VIEW (web_view), zoom_level);
+       zoom_level -= 0.1;
+       if (zoom_level >= 0)
+               webkit_web_view_set_zoom_level (WEBKIT_WEB_VIEW (web_view), zoom_level);
 /* FIXME XXX
        webkit_web_view_zoom_out (WEBKIT_WEB_VIEW (web_view));*/
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]