[gnome-software] Use a mnemonic in the details panel



commit 74ddd7b4349c2e83d2e6c049e6835a12d2cef434
Author: Richard Hughes <richard hughsie com>
Date:   Mon Dec 9 16:42:40 2013 +0000

    Use a mnemonic in the details panel
    
    Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=719869

 src/gnome-software.ui  |    1 +
 src/gs-shell-details.c |   12 ++++++------
 2 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/gnome-software.ui b/src/gnome-software.ui
index 40295ea..5e7f4b5 100644
--- a/src/gnome-software.ui
+++ b/src/gnome-software.ui
@@ -276,6 +276,7 @@
             </child>
             <child>
               <object class="GtkButton" id="button_install">
+                <property name="use_underline">True</property>
                 <property name="label" translatable="yes">Install</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 6502397..c1e1bed 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -90,7 +90,7 @@ gs_shell_details_refresh (GsShellDetails *shell_details)
        switch (state) {
        case GS_APP_STATE_QUEUED:
                gtk_widget_set_visible (widget, TRUE);
-               gtk_label_set_label (GTK_LABEL (widget), _("Pending"));
+               gtk_label_set_label (GTK_LABEL (widget), _("_Pending"));
                break;
        default:
                gtk_widget_set_visible (widget, FALSE);
@@ -106,7 +106,7 @@ gs_shell_details_refresh (GsShellDetails *shell_details)
                gtk_style_context_add_class (gtk_widget_get_style_context (widget), "suggested-action");
                /* TRANSLATORS: button text in the header when an application
                 * can be installed */
-               gtk_button_set_label (GTK_BUTTON (widget), _("Install"));
+               gtk_button_set_label (GTK_BUTTON (widget), _("_Install"));
                break;
        case GS_APP_STATE_QUEUED:
                gtk_widget_set_visible (widget, FALSE);
@@ -117,7 +117,7 @@ gs_shell_details_refresh (GsShellDetails *shell_details)
                gtk_style_context_remove_class (gtk_widget_get_style_context (widget), "suggested-action");
                /* TRANSLATORS: button text in the header when an application
                 * is in the process of being installed */
-               gtk_button_set_label (GTK_BUTTON (widget), _("Installing"));
+               gtk_button_set_label (GTK_BUTTON (widget), _("_Installing"));
                break;
        case GS_APP_STATE_UNKNOWN:
        case GS_APP_STATE_INSTALLED:
@@ -144,20 +144,20 @@ gs_shell_details_refresh (GsShellDetails *shell_details)
                        gtk_widget_set_sensitive (widget, TRUE);
                        gtk_style_context_add_class (gtk_widget_get_style_context (widget), 
"destructive-action");
                        /* TRANSLATORS: button text in the header when an application can be erased */
-                       gtk_button_set_label (GTK_BUTTON (widget), _("Remove"));
+                       gtk_button_set_label (GTK_BUTTON (widget), _("_Remove"));
                        break;
                case GS_APP_STATE_REMOVING:
                        gtk_widget_set_visible (widget, TRUE);
                        gtk_widget_set_sensitive (widget, FALSE);
                        gtk_style_context_remove_class (gtk_widget_get_style_context (widget), 
"destructive-action");
                        /* TRANSLATORS: button text in the header when an application can be installed */
-                       gtk_button_set_label (GTK_BUTTON (widget), _("Removing"));
+                       gtk_button_set_label (GTK_BUTTON (widget), _("_Removing"));
                        break;
                case GS_APP_STATE_QUEUED:
                        gtk_widget_set_visible (widget, TRUE);
                        gtk_widget_set_sensitive (widget, TRUE);
                        gtk_style_context_remove_class (gtk_widget_get_style_context (widget), 
"destructive-action");
-                       gtk_button_set_label (GTK_BUTTON (widget), _("Cancel"));
+                       gtk_button_set_label (GTK_BUTTON (widget), _("_Cancel"));
                        break;
                case GS_APP_STATE_AVAILABLE:
                case GS_APP_STATE_INSTALLING:


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