[gcr/wip/smcv/mnemonics] gcr-prompt-dialog: Allow the use of mnemonics in the choice label
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr/wip/smcv/mnemonics] gcr-prompt-dialog: Allow the use of mnemonics in the choice label
- Date: Wed, 25 Sep 2019 09:28:34 +0000 (UTC)
commit 68850084182bd9396878305816fa654be3b80220
Author: Iain Lane <iain orangesquash org uk>
Date: Mon Jul 13 14:16:03 2015 +0100
gcr-prompt-dialog: Allow the use of mnemonics in the choice label
pinentry-gnome3 tries to use this, but gets an ugly "_Save in password
manager" instead.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=752328
ui/gcr-prompt-dialog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/ui/gcr-prompt-dialog.c b/ui/gcr-prompt-dialog.c
index e77f219..606620e 100644
--- a/ui/gcr-prompt-dialog.c
+++ b/ui/gcr-prompt-dialog.c
@@ -610,7 +610,7 @@ gcr_prompt_dialog_constructed (GObject *obj)
gtk_widget_show (widget);
/* The checkbox */
- widget = gtk_check_button_new ();
+ widget = g_object_new (GTK_TYPE_CHECK_BUTTON, "use-underline", TRUE, NULL);
g_object_bind_property (self, "choice-label", widget, "label", G_BINDING_DEFAULT);
g_object_bind_property (self, "choice-visible", widget, "visible", G_BINDING_DEFAULT);
g_object_bind_property (self, "choice-chosen", widget, "active", G_BINDING_BIDIRECTIONAL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]