[Xfce4-commits] [apps/xfce4-terminal] 01/01: Disable Zoom-In/Out actions on reaching zoom limits

noreply at xfce.org noreply at xfce.org
Fri Sep 2 14:18:35 CEST 2016


This is an automated email from the git hooks/post-receive script.

f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.

commit 40ea25a8651662c60337b67958ffa806cecbbf21
Author: Igor <f2404 at yandex.ru>
Date:   Fri Sep 2 15:18:30 2016 +0300

    Disable Zoom-In/Out actions on reaching zoom limits
---
 terminal/terminal-window.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index 8da3efa..9f53522 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -1680,6 +1680,9 @@ terminal_window_action_zoom_in (GtkAction     *action,
     {
       ++window->zoom;
       terminal_window_zoom_update_screens (window);
+      if (window->zoom == TERMINAL_ZOOM_LEVEL_MAXIMUM)
+        gtk_action_set_sensitive (gtk_action_group_get_action (window->action_group, "zoom-in"),
+                                  FALSE);
     }
 }
 
@@ -1695,6 +1698,9 @@ terminal_window_action_zoom_out (GtkAction      *action,
     {
       --window->zoom;
       terminal_window_zoom_update_screens (window);
+      if (window->zoom == TERMINAL_ZOOM_LEVEL_MINIMUM)
+        gtk_action_set_sensitive (gtk_action_group_get_action (window->action_group, "zoom-out"),
+                                  FALSE);
     }
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list