From c39021ae1dbdfbb2702fb5ab35fa5e3c3ae1c900 Mon Sep 17 00:00:00 2001 From: Mark Thomas Date: Sat, 25 Jan 2014 20:38:35 +0000 Subject: [PATCH] Add blink preference --- src/extra-strings.c | 7 ++++ src/profile-editor.c | 1 + src/profile-preferences.ui | 72 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+) diff --git a/src/extra-strings.c b/src/extra-strings.c index 0a24c60..88af00c 100644 --- a/src/extra-strings.c +++ b/src/extra-strings.c @@ -38,6 +38,13 @@ N_("I-Beam") /* Translators: Cursor shape: ... */ N_("Underline") +/* Translators: Cursor blink: ... */ +N_("Use system settings") +/* Translators: Cursor blink: ... */ +N_("Always blink") +/* Translators: Cursor blink: ... */ +N_("Never blink") + /* Translators: When command exits: ... */ N_("Exit the terminal") /* Translators: When command exits: ... */ diff --git a/src/profile-editor.c b/src/profile-editor.c index f3eb4e1..442ce3b 100644 --- a/src/profile-editor.c +++ b/src/profile-editor.c @@ -913,6 +913,7 @@ terminal_profile_edit (TerminalProfile *profile, CONNECT ("bold-color-same-as-fg-checkbox", TERMINAL_PROFILE_BOLD_COLOR_SAME_AS_FG); CONNECT ("bold-colorpicker", TERMINAL_PROFILE_BOLD_COLOR); CONNECT ("cursor-shape-combobox", TERMINAL_PROFILE_CURSOR_SHAPE); + CONNECT ("cursor-blink-combobox", TERMINAL_PROFILE_CURSOR_BLINK_MODE); CONNECT ("custom-command-entry", TERMINAL_PROFILE_CUSTOM_COMMAND); CONNECT ("darken-background-scale", TERMINAL_PROFILE_BACKGROUND_DARKNESS); CONNECT ("default-size-columns-spinbutton", TERMINAL_PROFILE_DEFAULT_SIZE_COLUMNS); diff --git a/src/profile-preferences.ui b/src/profile-preferences.ui index 3d673f5..0ea429e 100644 --- a/src/profile-preferences.ui +++ b/src/profile-preferences.ui @@ -176,6 +176,22 @@ + + + + + + + Use system settings + + + Always blink + + + Never blink + + + 5 True @@ -442,6 +458,62 @@ False + + + True + False + 12 + + + True + Cursor blin_k: + True + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + cursor-blink-combobox + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + + + + True + False + True + model9 + + + + 0 + + + + + 0 + False + True + + + + + 0 + False + True + + True