[arch-commits] Commit in terminal/trunk (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Thu May 12 17:42:28 UTC 2011
Date: Thursday, May 12, 2011 @ 13:42:28
Author: foutrelis
Revision: 123714
Add local copy of bug-7595-go-menu-single-tab-sensitivity.patch to SVN.
Added:
terminal/trunk/bug-7595-go-menu-single-tab-sensitivity.patch
Modified:
terminal/trunk/PKGBUILD
-----------------------------------------------+
PKGBUILD | 2 +-
bug-7595-go-menu-single-tab-sensitivity.patch | 22 ++++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2011-05-12 17:07:45 UTC (rev 123713)
+++ PKGBUILD 2011-05-12 17:42:28 UTC (rev 123714)
@@ -17,7 +17,7 @@
options=('!libtool')
install=terminal.install
source=(http://archive.xfce.org/src/apps/${pkgname}/0.4/Terminal-${pkgver}.tar.bz2
- bug-7595-go-menu-single-tab-sensitivity.patch::http://git.xfce.org/apps/terminal/patch/?id=be9fca9ea8cedcf879c8e0c8cea96dd256a3591c)
+ bug-7595-go-menu-single-tab-sensitivity.patch)
md5sums=('34daa0090e1bc9014a5b9849103a129f'
'043774c11e2f8c1c424510847dc82fae')
Added: bug-7595-go-menu-single-tab-sensitivity.patch
===================================================================
--- bug-7595-go-menu-single-tab-sensitivity.patch (rev 0)
+++ bug-7595-go-menu-single-tab-sensitivity.patch 2011-05-12 17:42:28 UTC (rev 123714)
@@ -0,0 +1,22 @@
+From be9fca9ea8cedcf879c8e0c8cea96dd256a3591c Mon Sep 17 00:00:00 2001
+From: Nick Schermer <nick at xfce.org>
+Date: Thu, 12 May 2011 16:08:20 +0000
+Subject: 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.
+---
+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);
+--
+cgit
More information about the arch-commits
mailing list