[tomboy] Keyboard shortcuts for changing font size
- From: Stefan Schweizer <sschweiz src gnome org>
- To: svn-commits-list gnome org
- Subject: [tomboy] Keyboard shortcuts for changing font size
- Date: Fri, 24 Jul 2009 17:55:53 +0000 (UTC)
commit 148202478b87fc938aa1ec2554747ad1baa64dd3
Author: Stefan Schweizer <steve schweizer gmail com>
Date: Fri Jul 24 18:40:48 2009 +0200
Keyboard shortcuts for changing font size
Make Ctrl++ and Ctrl+- work on the numpad. Add Ctrl+0 to reset the font
size to normal and Ctrl+= to increase font size. Closes: bgo#488822
Tomboy/NoteWindow.cs | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/Tomboy/NoteWindow.cs b/Tomboy/NoteWindow.cs
index 0231da9..c8f5886 100644
--- a/Tomboy/NoteWindow.cs
+++ b/Tomboy/NoteWindow.cs
@@ -1310,6 +1310,16 @@ namespace Tomboy
normal = new Gtk.RadioMenuItem (Catalog.GetString ("_Normal"));
MarkupLabel (normal);
normal.Active = true;
+ normal.AddAccelerator ("activate",
+ accel_group,
+ (uint) Gdk.Key.Key_0,
+ Gdk.ModifierType.ControlMask,
+ Gtk.AccelFlags.Visible);
+ normal.AddAccelerator ("activate",
+ accel_group,
+ (uint) Gdk.Key.KP_0,
+ Gdk.ModifierType.ControlMask,
+ Gtk.AccelFlags.Visible);
normal.Activated += FontSizeActivated;
huge = new Gtk.RadioMenuItem (normal.Group,
@@ -1345,6 +1355,16 @@ namespace Tomboy
(uint) Gdk.Key.plus,
Gdk.ModifierType.ControlMask,
Gtk.AccelFlags.Visible);
+ increase_font.AddAccelerator ("activate",
+ accel_group,
+ (uint) Gdk.Key.KP_Add,
+ Gdk.ModifierType.ControlMask,
+ Gtk.AccelFlags.Visible);
+ increase_font.AddAccelerator ("activate",
+ accel_group,
+ (uint) Gdk.Key.equal,
+ Gdk.ModifierType.ControlMask,
+ Gtk.AccelFlags.Visible);
increase_font.Activated += IncreaseFontClicked;
decrease_font = new Gtk.MenuItem (Catalog.GetString ("Decrease Font Size"));
@@ -1353,6 +1373,11 @@ namespace Tomboy
(uint) Gdk.Key.minus,
Gdk.ModifierType.ControlMask,
Gtk.AccelFlags.Visible);
+ decrease_font.AddAccelerator ("activate",
+ accel_group,
+ (uint) Gdk.Key.KP_Subtract,
+ Gdk.ModifierType.ControlMask,
+ Gtk.AccelFlags.Visible);
decrease_font.Activated += DecreaseFontClicked;
Gtk.SeparatorMenuItem spacer2 = new Gtk.SeparatorMenuItem ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]