[gnome-terminal] Add VTE_TTY_ERASE to the delete/backspace binding options
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] Add VTE_TTY_ERASE to the delete/backspace binding options
- Date: Thu, 18 Mar 2010 13:42:09 +0000 (UTC)
commit a5b365030dbf737ffd641063fae747f0a6cd42f5
Author: Christian Persch <chpe gnome org>
Date: Thu Mar 18 14:40:39 2010 +0100
Add VTE_TTY_ERASE to the delete/backspace binding options
Bug #584313.
src/extra-strings.c | 2 ++
src/profile-preferences.glade | 18 ++++++++++--------
src/terminal-profile.c | 5 +++--
3 files changed, 15 insertions(+), 10 deletions(-)
---
diff --git a/src/extra-strings.c b/src/extra-strings.c
index 360933a..4b6b708 100644
--- a/src/extra-strings.c
+++ b/src/extra-strings.c
@@ -28,6 +28,8 @@ N_("Control-H")
N_("ASCII DEL")
/* Translators: This refers to the Delete keybinding option */
N_("Escape sequence")
+/* Translators: This refers to the Delete keybinding option */
+N_("TTY Erase")
/* Translators: Cursor shape: ... */
N_("Block")
diff --git a/src/profile-preferences.glade b/src/profile-preferences.glade
index cae040a..833a6e2 100644
--- a/src/profile-preferences.glade
+++ b/src/profile-preferences.glade
@@ -325,7 +325,7 @@
<child>
<widget class="GtkComboBox" id="cursor-shape-combobox">
<property name="visible">True</property>
- <property name="items" translatable="yes">Block
+ <property name="items" translatable="no">Block
I-Beam
Underline</property>
<property name="add_tearoffs">False</property>
@@ -764,7 +764,7 @@ Underline</property>
<child>
<widget class="GtkComboBox" id="title-mode-combobox">
<property name="visible">True</property>
- <property name="items" translatable="yes">Replace initial title
+ <property name="items" translatable="no">Replace initial title
Append initial title
Prepend initial title
Keep initial title</property>
@@ -1019,7 +1019,7 @@ Keep initial title</property>
<child>
<widget class="GtkComboBox" id="exit-action-combobox">
<property name="visible">True</property>
- <property name="items" translatable="yes">Exit the terminal
+ <property name="items" translatable="no">Exit the terminal
Restart the command
Hold the terminal open</property>
<property name="add_tearoffs">False</property>
@@ -1858,7 +1858,7 @@ Hold the terminal open</property>
<child>
<widget class="GtkComboBox" id="palette-combobox">
<property name="visible">True</property>
- <property name="items" translatable="yes">Tango
+ <property name="items" translatable="no">Tango
Linux console
XTerm
Rxvt
@@ -2633,10 +2633,11 @@ Disabled</property>
<child>
<widget class="GtkComboBox" id="backspace-binding-combobox">
<property name="visible">True</property>
- <property name="items" translatable="yes">Automatic
+ <property name="items" translatable="no">Automatic
Control-H
ASCII DEL
-Escape sequence</property>
+Escape sequence
+TTY Erase</property>
<property name="add_tearoffs">False</property>
<property name="focus_on_click">True</property>
</widget>
@@ -2653,10 +2654,11 @@ Escape sequence</property>
<child>
<widget class="GtkComboBox" id="delete-binding-combobox">
<property name="visible">True</property>
- <property name="items" translatable="yes">Automatic
+ <property name="items" translatable="no">Automatic
Control-H
ASCII DEL
-Escape sequence</property>
+Escape sequence
+TTY Erase</property>
<property name="add_tearoffs">False</property>
<property name="focus_on_click">True</property>
</widget>
diff --git a/src/terminal-profile.c b/src/terminal-profile.c
index 326c18d..3481d5e 100644
--- a/src/terminal-profile.c
+++ b/src/terminal-profile.c
@@ -194,6 +194,7 @@ static const GConfEnumStringPair erase_bindings[] = {
{ VTE_ERASE_ASCII_BACKSPACE, "control-h" },
{ VTE_ERASE_ASCII_DELETE, "ascii-del" },
{ VTE_ERASE_DELETE_SEQUENCE, "escape-sequence" },
+ { VTE_ERASE_TTY, "tty" },
{ -1, NULL }
};
@@ -1318,10 +1319,10 @@ terminal_profile_class_init (TerminalProfileClass *klass)
TERMINAL_PROFILE_PROPERTY_DOUBLE (BACKGROUND_DARKNESS, 0.0, 1.0, DEFAULT_BACKGROUND_DARKNESS, KEY_BACKGROUND_DARKNESS);
TERMINAL_PROFILE_PROPERTY_ENUM (BACKGROUND_TYPE, TERMINAL_TYPE_BACKGROUND_TYPE, DEFAULT_BACKGROUND_TYPE, KEY_BACKGROUND_TYPE);
- TERMINAL_PROFILE_PROPERTY_ENUM (BACKSPACE_BINDING, vte_terminal_erase_binding_get_type (), DEFAULT_BACKSPACE_BINDING, KEY_BACKSPACE_BINDING);
+ TERMINAL_PROFILE_PROPERTY_ENUM (BACKSPACE_BINDING, VTE_TYPE_TERMINAL_ERASE_BINDING, DEFAULT_BACKSPACE_BINDING, KEY_BACKSPACE_BINDING);
TERMINAL_PROFILE_PROPERTY_ENUM (CURSOR_BLINK_MODE, VTE_TYPE_TERMINAL_CURSOR_BLINK_MODE, DEFAULT_CURSOR_BLINK_MODE, KEY_CURSOR_BLINK_MODE);
TERMINAL_PROFILE_PROPERTY_ENUM (CURSOR_SHAPE, VTE_TYPE_TERMINAL_CURSOR_SHAPE, DEFAULT_CURSOR_SHAPE, KEY_CURSOR_SHAPE);
- TERMINAL_PROFILE_PROPERTY_ENUM (DELETE_BINDING, vte_terminal_erase_binding_get_type (), DEFAULT_DELETE_BINDING, KEY_DELETE_BINDING);
+ TERMINAL_PROFILE_PROPERTY_ENUM (DELETE_BINDING, VTE_TYPE_TERMINAL_ERASE_BINDING, DEFAULT_DELETE_BINDING, KEY_DELETE_BINDING);
TERMINAL_PROFILE_PROPERTY_ENUM (EXIT_ACTION, TERMINAL_TYPE_EXIT_ACTION, DEFAULT_EXIT_ACTION, KEY_EXIT_ACTION);
TERMINAL_PROFILE_PROPERTY_ENUM (SCROLLBAR_POSITION, TERMINAL_TYPE_SCROLLBAR_POSITION, DEFAULT_SCROLLBAR_POSITION, KEY_SCROLLBAR_POSITION);
TERMINAL_PROFILE_PROPERTY_ENUM (TITLE_MODE, TERMINAL_TYPE_TITLE_MODE, DEFAULT_TITLE_MODE, KEY_TITLE_MODE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]