[tomboy] Added an accelerator for "Fixed Width" and changed the visible shortcut to "t" accordingly
- From: Sanford Armstrong <sharm src gnome org>
- To: svn-commits-list gnome org
- Subject: [tomboy] Added an accelerator for "Fixed Width" and changed the visible shortcut to "t" accordingly
- Date: Mon, 4 May 2009 14:15:38 -0400 (EDT)
commit 6057e4f249f45c0f451ee164aea7fa3b4170d5bc
Author: Benjamin Podszun <benjamin podszun gmail com>
Date: Mon May 4 18:20:58 2009 +0200
Added an accelerator for "Fixed Width" and changed the visible shortcut to "t" accordingly
Fixed bug #357426 which wanted to have a visible shortcut for "Fixed Width" and suggested
ctrl + t. Fixed #418964 as well which complains about the inconsistently underlined "F"
although ctrl + f is not the right shortcut. Now ctrl + t toggles fixed width formatting
and is underlined accordingly.
---
Tomboy/Addins/FixedWidth/FixedWidthMenuItem.cs | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/Tomboy/Addins/FixedWidth/FixedWidthMenuItem.cs b/Tomboy/Addins/FixedWidth/FixedWidthMenuItem.cs
index 2ee8991..ae6ba26 100644
--- a/Tomboy/Addins/FixedWidth/FixedWidthMenuItem.cs
+++ b/Tomboy/Addins/FixedWidth/FixedWidthMenuItem.cs
@@ -1,24 +1,26 @@
using System;
-using Gtk;
using Mono.Unix;
namespace Tomboy.FixedWidth
{
- class FixedWidthMenuItem : CheckMenuItem
+ class FixedWidthMenuItem : Gtk.CheckMenuItem
{
NoteAddin Addin;
bool event_freeze;
public FixedWidthMenuItem (NoteAddin addin)
: base ("<span font_family='monospace'>" +
- Catalog.GetString ("_Fixed Width") +
+ Catalog.GetString ("Fixed Wid_th") +
"</span>")
{
- ((Label) Child).UseUnderline = true;
- ((Label) Child).UseMarkup = true;
+ ((Gtk.Label) Child).UseUnderline = true;
+ ((Gtk.Label) Child).UseMarkup = true;
Addin = addin;
Addin.Window.TextMenu.Shown += MenuShown;
+ AddAccelerator ("activate", Addin.Window.AccelGroup,
+ (uint) Gdk.Key.t, Gdk.ModifierType.ControlMask,
+ Gtk.AccelFlags.Visible);
ShowAll();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]