[gnome-terminal/gnome-3-30] window: Fix zoom-out sensitivity
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal/gnome-3-30] window: Fix zoom-out sensitivity
- Date: Sat, 3 Nov 2018 20:09:20 +0000 (UTC)
commit 9143c23baec5eb361fbc01199fa8e62997dc14d2
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 4ed36474..f968c8be 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -1514,12 +1514,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]