[california] Bind non-keypad +/-/* to font adjustments: Bug #731244



commit 540c64894e2c381c39f0e5e6bd720f609eddd901
Author: Jim Nelson <jim yorba org>
Date:   Tue Sep 23 17:17:18 2014 -0700

    Bind non-keypad +/-/* to font adjustments: Bug #731244

 src/host/host-main-window.vala |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/host/host-main-window.vala b/src/host/host-main-window.vala
index dcbfb84..04a829f 100644
--- a/src/host/host-main-window.vala
+++ b/src/host/host-main-window.vala
@@ -61,15 +61,15 @@ public class MainWindow : Gtk.ApplicationWindow {
     
     private const string DETAILED_ACTION_INCREASE_FONT = "win.increase-font";
     private const string ACTION_INCREASE_FONT = "increase-font";
-    private const string ACCEL_INCREASE_FONT = "KP_Add";
+    private const string[] ACCELS_INCREASE_FONT = { "KP_Add", "plus", "equal", null };
     
     private const string DETAILED_ACTION_DECREASE_FONT = "win.decrease-font";
     private const string ACTION_DECREASE_FONT = "decrease-font";
-    private const string ACCEL_DECREASE_FONT = "KP_Subtract";
+    private const string[] ACCELS_DECREASE_FONT = { "KP_Subtract", "minus", null };
     
     private const string DETAILED_ACTION_RESET_FONT = "win.reset-font";
     private const string ACTION_RESET_FONT = "reset-font";
-    private const string ACCEL_RESET_FONT = "KP_Multiply";
+    private const string[] ACCELS_RESET_FONT = { "KP_Multiply", "asterisk", null };
     
     private static const ActionEntry[] action_entries = {
         { ACTION_QUICK_CREATE_EVENT, on_quick_create_event },
@@ -124,9 +124,10 @@ public class MainWindow : Gtk.ApplicationWindow {
             null);
         Application.instance.add_accelerator(ACCEL_MONTH, DETAILED_ACTION_MONTH, null);
         Application.instance.add_accelerator(ACCEL_WEEK, DETAILED_ACTION_WEEK, null);
-        Application.instance.add_accelerator(ACCEL_INCREASE_FONT, DETAILED_ACTION_INCREASE_FONT, null);
-        Application.instance.add_accelerator(ACCEL_DECREASE_FONT, DETAILED_ACTION_DECREASE_FONT, null);
-        Application.instance.add_accelerator(ACCEL_RESET_FONT, DETAILED_ACTION_RESET_FONT, null);
+        
+        Application.instance.set_accels_for_action(DETAILED_ACTION_INCREASE_FONT, ACCELS_INCREASE_FONT);
+        Application.instance.set_accels_for_action(DETAILED_ACTION_DECREASE_FONT, ACCELS_DECREASE_FONT);
+        Application.instance.set_accels_for_action(DETAILED_ACTION_RESET_FONT, ACCELS_RESET_FONT);
         
         // view stack settings
         view_stack.homogeneous = true;


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