[gnome-builder] buildui: Add mnemonics to buttons
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] buildui: Add mnemonics to buttons
- Date: Fri, 20 Sep 2019 17:10:09 +0000 (UTC)
commit 057c287f047f1aeb41ba8299da548c5b5441b228
Author: Philip Withnall <withnall endlessm com>
Date: Thu Aug 22 12:20:12 2019 +0300
buildui: Add mnemonics to buttons
This makes keyboard navigation a little simpler.
Signed-off-by: Philip Withnall <withnall endlessm com>
src/plugins/buildui/gbp-buildui-config-view-addin.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/buildui/gbp-buildui-config-view-addin.c
b/src/plugins/buildui/gbp-buildui-config-view-addin.c
index 65baae50c..6367b675a 100644
--- a/src/plugins/buildui/gbp-buildui-config-view-addin.c
+++ b/src/plugins/buildui/gbp-buildui-config-view-addin.c
@@ -402,9 +402,9 @@ gbp_buildui_config_view_addin_load (IdeConfigViewAddin *addin,
const gchar *tooltip;
const gchar *style_class;
} actions[] = {
- { N_("Make Active"), "config-manager.current", N_("Select this configuration as the active
configuration.") },
- { N_("Duplicate"), "config-manager.duplicate", N_("Duplicating the configuration allows making changes
without modifying this configuration.") },
- { N_("Remove"), "config-manager.delete", N_("Removes the configuration and cannot be undone."),
"destructive-action" },
+ { N_("Make _Active"), "config-manager.current", N_("Select this configuration as the active
configuration.") },
+ { N_("_Duplicate"), "config-manager.duplicate", N_("Duplicating the configuration allows making changes
without modifying this configuration.") },
+ { N_("_Remove"), "config-manager.delete", N_("Removes the configuration and cannot be undone."),
"destructive-action" },
};
g_assert (IDE_IS_MAIN_THREAD ());
@@ -444,6 +444,7 @@ gbp_buildui_config_view_addin_load (IdeConfigViewAddin *addin,
"action-target", g_variant_new_string (ide_config_get_id (config)),
"label", g_dgettext (GETTEXT_PACKAGE, actions[i].label),
"tooltip-text", g_dgettext (GETTEXT_PACKAGE, actions[i].tooltip),
+ "use-underline", TRUE,
NULL);
if (actions[i].style_class)
dzl_gtk_widget_add_style_class (button, actions[i].style_class);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]