[gnote] Add a shortcut for the Fixed Width and make mnemonic consistent.



commit 06ee1f16ec39c92e984712cae825e072adf5fdd3
Author: Hubert Figuiere <hub figuiere net>
Date:   Thu Jul 16 22:38:50 2009 -0400

    Add a shortcut for the Fixed Width and make mnemonic consistent.
    (Tomboy bug #418964 and Tomboy bug #357426) (tb-backport)

 src/addins/fixedwidth/fixedwidthmenuitem.cpp  |    8 +++++++-
 src/addins/fixedwidth/fixedwidthnoteaddin.cpp |    2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/addins/fixedwidth/fixedwidthmenuitem.cpp b/src/addins/fixedwidth/fixedwidthmenuitem.cpp
index 81ca48b..79929da 100644
--- a/src/addins/fixedwidth/fixedwidthmenuitem.cpp
+++ b/src/addins/fixedwidth/fixedwidthmenuitem.cpp
@@ -31,7 +31,7 @@ namespace fixedwidth {
 
   FixedWidthMenuItem::FixedWidthMenuItem(gnote::NoteAddin *addin)
     : Gtk::CheckMenuItem(Glib::ustring("<span font_family=\"monospace\">")
-                         + _("_Fixed Width") + "</span>", true)
+                         + _("Fixed Wid_th") + "</span>", true)
     , m_note_addin(addin)
     , m_event_freeze(false)
   {
@@ -39,6 +39,12 @@ namespace fixedwidth {
     m_note_addin->get_window()->text_menu()->signal_show().connect(
       sigc::mem_fun(*this, &FixedWidthMenuItem::menu_shown));
 
+    add_accelerator ("activate",
+                     addin->get_window()->get_accel_group(),
+                     GDK_T,
+                     Gdk::CONTROL_MASK,
+                     Gtk::ACCEL_VISIBLE);
+
     show_all();
   }
 
diff --git a/src/addins/fixedwidth/fixedwidthnoteaddin.cpp b/src/addins/fixedwidth/fixedwidthnoteaddin.cpp
index b55cd67..57b9824 100644
--- a/src/addins/fixedwidth/fixedwidthnoteaddin.cpp
+++ b/src/addins/fixedwidth/fixedwidthnoteaddin.cpp
@@ -61,7 +61,7 @@ namespace fixedwidth {
   }
   const char * FixedWidthModule::version() const
   {
-    return "0.1";
+    return "0.2";
   }
 
 



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