[gnome-terminal/gnome-3-28] window: Fix zoom-out sensitivity



commit 50243a2a6e866f2ba65618dfb29274473a1792e1
Author: Christian Persch <chpe src gnome org>
Date:   Sat Nov 3 21:07:02 2018 +0100

    window: Fix zoom-out sensitivity
    
    https://gitlab.gnome.org/GNOME/gnome-terminal/issues/47
    (cherry picked from commit 7a57e7d3ca5468ebab92a080abf8159bf96e23e1)

 src/terminal-window.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/terminal-window.c b/src/terminal-window.c
index a348a803..0ff7844b 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -1522,12 +1522,14 @@ terminal_window_update_zoom_sensitivity (TerminalWindow *window)
   if (screen == NULL)
     return;
 
-  double zoom = vte_terminal_get_font_scale (VTE_TERMINAL (screen));
-
+  double v;
+  double zoom = v = vte_terminal_get_font_scale (VTE_TERMINAL (screen));
   g_simple_action_set_enabled (lookup_action (window, "zoom-in"),
-                               find_larger_zoom_factor (&zoom));
+                               find_larger_zoom_factor (&v));
+
+  v = zoom;
   g_simple_action_set_enabled (lookup_action (window, "zoom-out"),
-                               find_smaller_zoom_factor (&zoom));
+                               find_smaller_zoom_factor (&v));
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]