[Xfce4-commits] [apps/xfce4-terminal] 01/01: Allow closing the tab shortcut even with if a single tab is open

noreply at xfce.org noreply at xfce.org
Thu Jun 16 17:35:22 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 356c4881796a5edc0d01b2827af7211c74e64a8e
Author: Igor <f2404 at yandex.ru>
Date:   Thu Jun 16 18:34:22 2016 +0300

    Allow closing the tab shortcut even with if a single tab is open
    
    This will close the terminal window.
    Fixes bug #12490
---
 terminal/terminal-window.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index 4f87d55..82e298c 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -665,8 +665,8 @@ terminal_window_update_actions (TerminalWindow *window)
   /* "Detach Tab" is only sensitive if we have atleast two pages */
   gtk_action_set_sensitive (window->action_detah_tab, (n_pages > 1));
 
-  /* ... same for the "Close Tab" action */
-  gtk_action_set_sensitive (window->action_close_tab, (n_pages > 1));
+  /* always allow "Close Tab" action (bug 12490) */
+  gtk_action_set_sensitive (window->action_close_tab, TRUE);
 
   /* update the actions for the current terminal screen */
  if (G_LIKELY (window->active != NULL))

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


More information about the Xfce4-commits mailing list