Don't advertise zooming when having an image open
Images cannot be zoomed.
This commit is contained in:
parent
406572c4fb
commit
123475d6ea
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue