[seahorse/wip/nielsdg/import-mnemonic: 2/2] a11y: Make sure Import buttons have a mnemonic



commit 2766e102cbaea673b554772979d92c55f7e2647e
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Sat Feb 1 09:38:08 2020 +0100

    a11y: Make sure Import buttons have a mnemonic
    
    Fixes https://gitlab.gnome.org/GNOME/seahorse/issues/253

 pgp/seahorse-keyserver-results.c | 2 +-
 src/import-dialog.vala           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pgp/seahorse-keyserver-results.c b/pgp/seahorse-keyserver-results.c
index a6e6d7e7..74b6d627 100644
--- a/pgp/seahorse-keyserver-results.c
+++ b/pgp/seahorse-keyserver-results.c
@@ -151,7 +151,7 @@ seahorse_keyserver_results_row_new (GObject *item)
     gtk_style_context_add_class (gtk_widget_get_style_context (import_button),
                                  "flat");
     if (item_exportable)
-        gtk_widget_set_tooltip_text (import_button, _("Import"));
+        gtk_widget_set_tooltip_text (import_button, _("_Import"));
     else
         gtk_widget_set_tooltip_text (import_button, _("Can’t import key"));
     gtk_grid_attach (GTK_GRID (grid), g_steal_pointer (&import_button), 1, 0, 1, 1);
diff --git a/src/import-dialog.vala b/src/import-dialog.vala
index a99dd191..983b7e46 100644
--- a/src/import-dialog.vala
+++ b/src/import-dialog.vala
@@ -35,7 +35,7 @@ public class Seahorse.ImportDialog : Gtk.Dialog {
         button.show();
         add_action_widget(button, Gtk.ResponseType.CANCEL);
 
-        this.import = new Gcr.ImportButton(_("Import"));
+        this.import = new Gcr.ImportButton(_("_Import"));
         this.import.halign = Gtk.Align.END;
         this.import.visible = true;
         this.import.get_style_context().add_class("suggested-action");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]