Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Thu, 16 Feb 2023 21:42:37 UTC
Commit: 981f9e22be58d5da9a8f27457fc2472a689e5fa8
https://github.com/geany/geany-plugins/commit/981f9e22be58d5da9a8f27457fc24…
Log Message:
-----------
webhelper: Fix state of the Full-content zoom menu item
The initial state was incorrect, and although the state was properly
updated upon toggling, WebKit doesn't actually use the value itself but
tracks toggle operations on its own, so it would not fix itself for
subsequent changes either.
Modified Paths:
--------------
webhelper/src/gwh-browser.c
Modified: webhelper/src/gwh-browser.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -440,7 +440,7 @@ on_web_view_context_menu (WebKitWebView *view,
webkit_context_menu_append (submenu,
webkit_context_menu_item_new_separator ());
action_state = g_variant_new_boolean (
- webkit_settings_get_zoom_text_only (webkit_web_view_get_settings (view)));
+ !webkit_settings_get_zoom_text_only (webkit_web_view_get_settings (view)));
action = g_simple_action_new_stateful (
"full-content-zoom",
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).