[Xfce4-commits] [apps/xfce4-terminal] 01/01: Simplify code

noreply at xfce.org noreply at xfce.org
Fri Sep 2 14:20:58 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 e2f08751dcc8a737fc54f4d2d1488d73904bc66a
Author: Igor <f2404 at yandex.ru>
Date:   Fri Sep 2 15:20:53 2016 +0300

    Simplify code
---
 terminal/terminal-window.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index 9f53522..f1c815a 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -1681,8 +1681,7 @@ 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);
+        gtk_action_set_sensitive (action, FALSE);
     }
 }
 
@@ -1699,8 +1698,7 @@ 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);
+        gtk_action_set_sensitive (action, FALSE);
     }
 }
 

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


More information about the Xfce4-commits mailing list