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
This commit is contained in:
Georges Basile Stavracas Neto 2016-08-30 10:38:24 -03:00 committed by Bastien Nocera
parent 199ba17258
commit 5637d573a6

View file

@ -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);