[Xfce4-commits] <terminal:master> Only make go menu action sensitive if tabs > 1 (bug #7595).
Nick Schermer
noreply at xfce.org
Thu May 12 18:10:01 CEST 2011
Updating branch refs/heads/master
to be9fca9ea8cedcf879c8e0c8cea96dd256a3591c (commit)
from 89317ea3db27632cf3d8ad681ecc5e526d463c47 (commit)
commit be9fca9ea8cedcf879c8e0c8cea96dd256a3591c
Author: Nick Schermer <nick at xfce.org>
Date: Thu May 12 18:08:20 2011 +0200
Only make go menu action sensitive if tabs > 1 (bug #7595).
This way the (default) Alt+1 keybinding is usable when
only a single tab is opened in the terminal window.
terminal/terminal-window.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index f580a39..0d461a4 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -748,6 +748,7 @@ terminal_window_rebuild_gomenu (TerminalWindow *window)
/* create action */
radio_action = gtk_radio_action_new (name, NULL, NULL, NULL, n);
+ gtk_action_set_sensitive (GTK_ACTION (radio_action), npages > 1);
exo_binding_new (G_OBJECT (page), "title", G_OBJECT (radio_action), "label");
gtk_radio_action_set_group (radio_action, group);
group = gtk_radio_action_get_group (radio_action);
More information about the Xfce4-commits
mailing list