[gnome-control-center/wip/gbsneto/keyboard-improvements: 57/67] shortcut-editor: update header title message



commit 26a214a215e7a6245d32363bc7ef10e09f992f39
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Aug 30 10:38:24 2016 -0300

    shortcut-editor: update header title message
    
    Instead of showing the shortcut description, show an
    action-oriented title, according to the mockups. Precisely,
    "Set Shortcut" for standard shortcuts and "Set Custom
    Shortcut" for custom shortcuts.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=769314

 panels/keyboard/cc-keyboard-shortcut-editor.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/keyboard/cc-keyboard-shortcut-editor.c b/panels/keyboard/cc-keyboard-shortcut-editor.c
index 8354041..37e4eed 100644
--- a/panels/keyboard/cc-keyboard-shortcut-editor.c
+++ b/panels/keyboard/cc-keyboard-shortcut-editor.c
@@ -435,7 +435,8 @@ setup_keyboard_item (CcKeyboardShortcutEditor *self,
   accel = gtk_accelerator_name (item->keyval, item->mask);
 
   /* Headerbar */
-  gtk_header_bar_set_title (GTK_HEADER_BAR (self->headerbar), item->description);
+  gtk_header_bar_set_title (GTK_HEADER_BAR (self->headerbar),
+                            is_custom ? _("Set Custom Shortcut") : _("Set Shortcut"));
   gtk_header_bar_set_show_close_button (GTK_HEADER_BAR (self->headerbar), TRUE);
 
   gtk_widget_hide (self->add_button);


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