Allow image zoom if text and images can be zoomed
This commit is contained in:
parent
c712758ed3
commit
7e00e760ba
1 changed files with 6 additions and 2 deletions
|
@ -4703,7 +4703,9 @@ midori_view_can_zoom_in (MidoriView* view)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (MIDORI_IS_VIEW (view), FALSE);
|
g_return_val_if_fail (MIDORI_IS_VIEW (view), FALSE);
|
||||||
|
|
||||||
return view->web_view != NULL && !g_str_has_prefix (view->mime_type, "image/");
|
return view->web_view != NULL
|
||||||
|
&& (katze_object_get_boolean (view->settings, "zoom-text-and-images")
|
||||||
|
|| !g_str_has_prefix (view->mime_type, "image/"));
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
|
@ -4711,7 +4713,9 @@ midori_view_can_zoom_out (MidoriView* view)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (MIDORI_IS_VIEW (view), FALSE);
|
g_return_val_if_fail (MIDORI_IS_VIEW (view), FALSE);
|
||||||
|
|
||||||
return view->web_view != NULL && !g_str_has_prefix (view->mime_type, "image/");
|
return view->web_view != NULL
|
||||||
|
&& (katze_object_get_boolean (view->settings, "zoom-text-and-images")
|
||||||
|
|| !g_str_has_prefix (view->mime_type, "image/"));
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
|
|
Loading…
Reference in a new issue