[gcr/gnome-3-38] ui: Set "use-underline" for GcrImportButton



commit dc0a52675ade375ad2c9450a752a1ee2e572fc61
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
    (cherry picked from commit 0dbc1de20232bc1253c5beaad0099b667deeaf49)

 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]