gnome-terminal r3162 - trunk/src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-terminal r3162 - trunk/src
- Date: Mon, 13 Oct 2008 18:43:40 +0000 (UTC)
Author: chpe
Date: Mon Oct 13 18:43:40 2008
New Revision: 3162
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=3162&view=rev
Log:
Hide the Tabs menu in single-tab windows.
Modified:
trunk/src/terminal-window.c
Modified: trunk/src/terminal-window.c
==============================================================================
--- trunk/src/terminal-window.c (original)
+++ trunk/src/terminal-window.c Mon Oct 13 18:43:40 2008
@@ -990,6 +990,10 @@
not_first = page_num > 0;
not_last = page_num + 1 < num_pages;
+ /* Hide the tabs menu in single-tab windows */
+ action = gtk_action_group_get_action (action_group, "Tabs");
+ gtk_action_set_visible (action, num_pages > 1);
+
#if 1
/* NOTE: We always make next/prev actions sensitive except in
* single-tab windows, so the corresponding shortcut key escape code
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]