[gnome-terminal] window: Fix zoom-out sensitivity



commit 7a57e7d3ca5468ebab92a080abf8159bf96e23e1
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

 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 dc653fc0..2f53e0fb 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -1515,12 +1515,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]