[banshee] Added missing mnemonics (bgo#554672)



commit 25d9e04108fed43bc0d1e14a35f893f497d81e5b
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date:   Tue May 12 09:57:03 2009 +1000

    Added missing mnemonics (bgo#554672)
    
    Added mnemonics to the "Import Media Source" button on the "Import 	Media to
    Library" dialog box and to the "Import" button on the "Import Playlist"
    dialog box.
---
 .../Banshee.Gui/GlobalActions.cs                   |    4 ++--
 .../Banshee.Library.Gui/ImportDialog.cs            |    7 +++++--
 .../Resources/banshee-dialogs.glade                |    7 ++++---
 3 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/GlobalActions.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/GlobalActions.cs
index 93354b6..92e0338 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/GlobalActions.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/GlobalActions.cs
@@ -54,7 +54,7 @@ namespace Banshee.Gui
                     Catalog.GetString ("Import media from a variety of sources"), OnImport),
 
                 new ActionEntry ("ImportPlaylistAction", null,
-                    Catalog.GetString ("Import Playlist..."), null,
+                    Catalog.GetString ("Import _Playlist..."), null,
                     Catalog.GetString ("Import a playlist"), OnImportPlaylist),
 
                 new ActionEntry ("RescanAction", null,
@@ -175,7 +175,7 @@ namespace Banshee.Gui
 
             chooser.AddButton (Stock.Cancel, ResponseType.Cancel);
             // Translators: verb
-            chooser.AddButton (Catalog.GetString("Import"), ResponseType.Ok);
+            chooser.AddButton (Catalog.GetString("I_mport"), ResponseType.Ok);
             
             int response = chooser.Run();            
 
diff --git a/src/Core/Banshee.ThickClient/Banshee.Library.Gui/ImportDialog.cs b/src/Core/Banshee.ThickClient/Banshee.Library.Gui/ImportDialog.cs
index 5e42591..3a05602 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Library.Gui/ImportDialog.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Library.Gui/ImportDialog.cs
@@ -43,7 +43,9 @@ namespace Banshee.Library.Gui
         private ComboBox source_combo_box;
         private ListStore source_model;
         private AccelGroup accel_group;
-        
+
+        [Widget] private Gtk.Label choose_label;
+
         public ImportDialog () : this (false)
         {
         }
@@ -59,7 +61,7 @@ namespace Banshee.Library.Gui
             Dialog.WindowPosition = WindowPosition.CenterOnParent;
             Dialog.AddAccelGroup (accel_group);
             Dialog.DefaultResponse = ResponseType.Ok;
-		    
+
             DoNotShowAgainVisible = doNotShowAgainVisible;
             
             PopulateSourceList ();
@@ -84,6 +86,7 @@ namespace Banshee.Library.Gui
             
             source_combo_box = new ComboBox ();
             source_combo_box.Model = source_model;
+            choose_label.MnemonicWidget = source_combo_box;
             
             CellRendererPixbuf pixbuf_cr = new CellRendererPixbuf ();
             CellRendererText text_cr = new CellRendererText ();
diff --git a/src/Core/Banshee.ThickClient/Resources/banshee-dialogs.glade b/src/Core/Banshee.ThickClient/Resources/banshee-dialogs.glade
index 5807853..c1ebf94 100644
--- a/src/Core/Banshee.ThickClient/Resources/banshee-dialogs.glade
+++ b/src/Core/Banshee.ThickClient/Resources/banshee-dialogs.glade
@@ -54,10 +54,11 @@
                 <property name="visible">True</property>
                 <property name="spacing">4</property>
                 <child>
-                  <widget class="GtkLabel" id="label66">
+                  <widget class="GtkLabel" id="choose_label">
                     <property name="visible">True</property>
                     <property name="xalign">0</property>
-                    <property name="label" translatable="yes">Choose an import source:</property>
+                    <property name="label" translatable="yes">Choose an import _source:</property>
+                    <property name="use_underline">True</property>
                   </widget>
                   <packing>
                     <property name="expand">False</property>
@@ -130,7 +131,7 @@
                 <property name="can_focus">True</property>
                 <property name="can_default">True</property>
                 <property name="has_default">True</property>
-                <property name="label" translatable="yes">Import Media Source</property>
+                <property name="label" translatable="yes">I_mport Media Source</property>
                 <property name="use_underline">True</property>
                 <property name="response_id">-5</property>
               </widget>



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