[gcr/wip/nielsdg/gcr-importer-label] ui: Set "use-underline" for GcrImportButton
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr/wip/nielsdg/gcr-importer-label] ui: Set "use-underline" for GcrImportButton
- Date: Sat, 2 Jan 2021 16:39:36 +0000 (UTC)
commit 9fd9b00b60837cbb7f19e3d53e6d4a9631c632f7
Author: Niels De Graef <nielsdegraef gmail com>
Date: Sat Jan 2 17:38:02 2021 +0100
ui: Set "use-underline" for GcrImportButton
This allows applications to set mnemonics, which is needed for
accessibility purposes.
https://gitlab.gnome.org/GNOME/seahorse/-/issues/296
ui/gcr-import-button.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/ui/gcr-import-button.c b/ui/gcr-import-button.c
index b03ecf4a..f2ba6dc5 100644
--- a/ui/gcr-import-button.c
+++ b/ui/gcr-import-button.c
@@ -98,7 +98,9 @@ gcr_import_button_init (GcrImportButton *self)
{
self->pv = gcr_import_button_get_instance_private (self);
self->pv->cancellable = g_cancellable_new ();
+
self->pv->label = gtk_label_new ("");
+ gtk_label_set_use_underline (GTK_LABEL (self->pv->label), TRUE);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]