[gnome-disk-utility] Fix up mnemonics for toolbar label



commit 8ec90165b03b371e7f4b7459a4703708be3b6055
Author: David Zeuthen <zeuthen gmail com>
Date:   Wed Oct 10 15:00:23 2012 -0400

    Fix up mnemonics for toolbar label
    
    Signed-off-by: David Zeuthen <zeuthen gmail com>

 data/ui/disks.ui      |    5 ++++-
 src/disks/gduwindow.c |    8 ++++----
 2 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/data/ui/disks.ui b/data/ui/disks.ui
index 9d7f923..82e7fbd 100644
--- a/data/ui/disks.ui
+++ b/data/ui/disks.ui
@@ -151,6 +151,7 @@
                             <property name="can_focus">False</property>
                             <property name="label" translatable="yes">_Devices</property>
                             <property name="use_underline">True</property>
+                            <property name="mnemonic_widget">device-tree-treeview</property>
                             <attributes>
                               <attribute name="weight" value="bold"/>
                             </attributes>
@@ -163,7 +164,9 @@
                           <object class="GtkLabel" id="device-tree-selection-toolbar-label">
                             <property name="visible">True</property>
                             <property name="can_focus">False</property>
-                            <property name="label" translatable="yes">(Select Items Above)</property>
+                            <property name="label">No _Devices Selected</property>
+                            <property name="use_underline">True</property>
+                            <property name="mnemonic_widget">device-tree-treeview</property>
                           </object>
                           <packing>
                             <property name="position">1</property>
diff --git a/src/disks/gduwindow.c b/src/disks/gduwindow.c
index ebe40a9..cca8f8d 100644
--- a/src/disks/gduwindow.c
+++ b/src/disks/gduwindow.c
@@ -4388,7 +4388,7 @@ update_for_multi_selection (GduWindow *window, ShowFlags *show_flags)
     {
       /* Translators: Shown when no devices are selected but multiple selection is active.
        */
-      s = g_strdup (C_("multi-disk-menu", "No Devices Selected"));
+      s = g_strdup (C_("multi-disk-menu", "No _Devices Selected"));
     }
   else
     {
@@ -4398,13 +4398,13 @@ update_for_multi_selection (GduWindow *window, ShowFlags *show_flags)
        *              The %s is a string with the combined size (e.g. '42.0 GB').
        */
       s = g_strdup_printf (g_dngettext (GETTEXT_PACKAGE,
-                                        "%d Device Selected (%s)",
-                                        "%d Devices Selected (%s)",
+                                        "%d _Device Selected (%s)",
+                                        "%d _Devices Selected (%s)",
                                         num_disks),
                               num_disks, s2);
       g_free (s2);
     }
-  gtk_label_set_text (GTK_LABEL (window->device_tree_selection_toolbar_label), s);
+  gtk_label_set_markup_with_mnemonic (GTK_LABEL (window->device_tree_selection_toolbar_label), s);
   g_free (s);
 
   /* visibility - TODO: use ShowFlags instead */



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