summaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2013-01-04 10:48:19 -0500
committerChris Lumens <clumens@redhat.com>2013-01-07 09:06:25 -0500
commit395527c0f0017454299e654551812ff00d00cb34 (patch)
tree5aaf86eedadd3997eb052f5c3a25023bd51776ee /widgets
parent719a95878444db600aadb93f0bc98a44e0495a1e (diff)
downloadanaconda-395527c0f0017454299e654551812ff00d00cb34.tar.gz
anaconda-395527c0f0017454299e654551812ff00d00cb34.tar.xz
anaconda-395527c0f0017454299e654551812ff00d00cb34.zip
Add keyboard mnemonics to the spoke selectors, too.
Diffstat (limited to 'widgets')
-rw-r--r--widgets/src/SpokeSelector.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/widgets/src/SpokeSelector.c b/widgets/src/SpokeSelector.c
index 94966c259..25d7cd99a 100644
--- a/widgets/src/SpokeSelector.c
+++ b/widgets/src/SpokeSelector.c
@@ -210,7 +210,8 @@ static void anaconda_spoke_selector_init(AnacondaSpokeSelector *spoke) {
spoke->priv->title_label = gtk_label_new(NULL);
markup = g_markup_printf_escaped("<span weight='bold' size='large'>%s</span>", _(DEFAULT_TITLE));
gtk_label_set_justify(GTK_LABEL(spoke->priv->title_label), GTK_JUSTIFY_LEFT);
- gtk_label_set_markup(GTK_LABEL(spoke->priv->title_label), markup);
+ gtk_label_set_markup_with_mnemonic(GTK_LABEL(spoke->priv->title_label), markup);
+ gtk_label_set_mnemonic_widget(GTK_LABEL(spoke->priv->title_label), GTK_WIDGET(spoke));
gtk_misc_set_alignment(GTK_MISC(spoke->priv->title_label), 0, 1);
gtk_widget_set_hexpand(GTK_WIDGET(spoke->priv->title_label), FALSE);
g_free(markup);
@@ -284,7 +285,7 @@ static void anaconda_spoke_selector_set_property(GObject *object, guint prop_id,
case PROP_TITLE: {
char *markup = g_markup_printf_escaped("<span weight='bold' size='large'>%s</span>", g_value_get_string(value));
- gtk_label_set_markup(GTK_LABEL(priv->title_label), markup);
+ gtk_label_set_markup_with_mnemonic(GTK_LABEL(priv->title_label), markup);
g_free(markup);
break;
}