]> spindle.queued.net Git - midori/commitdiff
Don't advertise zooming when having an image open
authorChristian Dywan <christian@twotoasts.de>
Mon, 12 Oct 2009 11:17:53 +0000 (13:17 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 12 Oct 2009 11:17:53 +0000 (13:17 +0200)
Images cannot be zoomed.

midori/midori-view.c

index 5918293bd4f87b44ff21b1705d511b0d2e9bd176..75a01e4072a34ab9da4f6ae1ce083cf74a165fd3 100644 (file)
@@ -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