[Xfce4-commits] <midori:master> Don't advertise zooming when having an image open

Christian Dywan noreply at xfce.org
Mon Oct 12 14:20:01 CEST 2009


Updating branch refs/heads/master
         to 123475d6ea571208b7b9b0cada9426192d2dcbad (commit)
       from 406572c4fb53100d29c964a98e1a078746cf305e (commit)

commit 123475d6ea571208b7b9b0cada9426192d2dcbad
Author: Christian Dywan <christian at twotoasts.de>
Date:   Mon Oct 12 13:17:53 2009 +0200

    Don't advertise zooming when having an image open
    
    Images cannot be zoomed.

 midori/midori-view.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index 5918293..75a01e4 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -3575,7 +3575,7 @@ midori_view_can_zoom_in (MidoriView* view)
 {
     g_return_val_if_fail (MIDORI_IS_VIEW (view), FALSE);
 
-    return view->web_view != NULL;
+    return view->web_view != NULL && !g_str_has_prefix (view->mime_type, "image/");
 }
 
 gboolean
@@ -3583,7 +3583,7 @@ midori_view_can_zoom_out (MidoriView* view)
 {
     g_return_val_if_fail (MIDORI_IS_VIEW (view), FALSE);
 
-    return view->web_view != NULL;
+    return view->web_view != NULL && !g_str_has_prefix (view->mime_type, "image/");
 }
 
 gboolean



More information about the Xfce4-commits mailing list