[gnome-terminal] accels: Add more accel-able tabs



commit 10cc2f63014648c099be276feaf0a14fc045f288
Author: Christian Persch <chpe gnome org>
Date:   Wed Mar 20 20:21:28 2013 +0100

    accels: Add more accel-able tabs
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696123

 src/org.gnome.Terminal.gschema.xml.in |   92 +++++++++++++++++++++++++++++++++
 src/terminal-accels.c                 |   23 ++++++++
 src/terminal-tabs-menu.c              |    2 +-
 3 files changed, 116 insertions(+), 1 deletions(-)
---
diff --git a/src/org.gnome.Terminal.gschema.xml.in b/src/org.gnome.Terminal.gschema.xml.in
index 6b515c7..40da6cf 100644
--- a/src/org.gnome.Terminal.gschema.xml.in
+++ b/src/org.gnome.Terminal.gschema.xml.in
@@ -454,6 +454,98 @@
       <default>'disabled'</default>
       <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
     </key>
+    <key name="switch-to-tab-13" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-14" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-15" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-16" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-17" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-18" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-19" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-20" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-21" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-22" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-23" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-24" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-25" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-26" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-27" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-28" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-29" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-30" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-31" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-32" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-33" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-34" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
+    <key name="switch-to-tab-35" type="s">
+      <default>'disabled'</default>
+      <_summary>Keyboard shortcut to switch to the numbered tab</_summary>
+    </key>
     <key name="help" type="s">
       <default>'F1'</default>
       <_summary>Keyboard shortcut to launch help</_summary>
diff --git a/src/terminal-accels.c b/src/terminal-accels.c
index 063240d..643fb1a 100644
--- a/src/terminal-accels.c
+++ b/src/terminal-accels.c
@@ -220,6 +220,29 @@ static KeyEntry tabs_entries[] =
   SWITCH_TAB_ACCEL (10, GDK_MOD1_MASK, GDK_KEY_0),
   SWITCH_TAB_ACCEL_NO_DEFAULT (11),
   SWITCH_TAB_ACCEL_NO_DEFAULT (12),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (13),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (14),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (15),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (16),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (17),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (18),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (19),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (20),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (21),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (22),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (23),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (24),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (25),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (26),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (27),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (28),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (29),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (30),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (31),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (32),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (33),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (34),
+  SWITCH_TAB_ACCEL_NO_DEFAULT (35)
 };
 
 #undef SWITCH_TAB_ACCEL
diff --git a/src/terminal-tabs-menu.c b/src/terminal-tabs-menu.c
index 5536c8a..c2a85fe 100644
--- a/src/terminal-tabs-menu.c
+++ b/src/terminal-tabs-menu.c
@@ -31,7 +31,7 @@
 #include "terminal-screen-container.h"
 #include "terminal-intl.h"
 
-#define TERMINAL_ACCELS_N_TABS_SWITCH (12)
+#define TERMINAL_ACCELS_N_TABS_SWITCH (35) /* keep in sync with terminal-accels.c */
 
 #define LABEL_WIDTH_CHARS 32
 #define ACTION_VERB_FORMAT_PREFIX       "JmpTab"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]