[Xfce4-commits] <postler:master> Implement mnemonics for search options

Christian Dywan noreply at xfce.org
Sun Nov 28 23:26:03 CET 2010


Updating branch refs/heads/master
         to 8592c77422688e8b36e34febb1c19570c757f382 (commit)
       from 91fe040dd67eaddd4cbcc5be6b2962a1b3119d3a (commit)

commit 8592c77422688e8b36e34febb1c19570c757f382
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Nov 27 16:41:48 2010 +0100

    Implement mnemonics for search options

 postler/postler-bureau.vala |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/postler/postler-bureau.vala b/postler/postler-bureau.vala
index afa3cf3..eb0f999 100644
--- a/postler/postler-bureau.vala
+++ b/postler/postler-bureau.vala
@@ -373,7 +373,7 @@ public class Postler.Bureau : Gtk.Window {
         { "Edit", null, N_("_Edit") },
         { "Search", Gtk.STOCK_FIND, null, "<Ctrl>s",
           N_("Search the selected folder"), action_search },
-        { "SaveSearch", null, N_("Save Search"), "<Ctrl><Shift>s",
+        { "SaveSearch", null, N_("S_ave Search"), "<Ctrl><Shift>s",
           N_("Save the current search"), action_save_search },
         { "View", Gtk.STOCK_PROPERTIES, N_("_View"), "",
           null, action_view },
@@ -395,11 +395,11 @@ public class Postler.Bureau : Gtk.Window {
     };
 
     const Gtk.RadioActionEntry[] radio_entries = {
-        { "SearchSubject", null, N_("Subject"), "",
+        { "SearchSubject", null, N_("_Subject"), "",
           N_("Search messages by subject"), 0 },
-        { "SearchSender", null, N_("Sender"), "",
+        { "SearchSender", null, N_("S_ender"), "",
           N_("Search messages by sender"), 1 },
-        { "SearchRecipient", null, N_("Recipient"), "",
+        { "SearchRecipient", null, N_("_Recipient"), "",
           N_("Search messages by recipient"), 2 },
         { "SearchFulltext", null, N_("_Fulltext"), "",
           N_("Search the full message text"), 3}
@@ -514,6 +514,14 @@ public class Postler.Bureau : Gtk.Window {
         actions.get_action ("SearchRecipient").is_important = true;
         actions.get_action ("SearchFulltext").is_important = true;
         actions.get_action ("SaveSearch").is_important = true;
+        /* Implement mnemonics for search buttons */
+        foreach (var button in search_options.get_children ()) {
+            if (button is Gtk.ToolButton) {
+                var toolbutton = button as Gtk.ToolButton;
+                var label = new Gtk.Label.with_mnemonic (toolbutton.label);
+                toolbutton.label_widget = label;
+            }
+        }
         messages_box.pack_start (search_options, false, false, 0);
 
         messages = new Postler.Messages (accounts);



More information about the Xfce4-commits mailing list