[gnome-calendar] window: Fix GcalWindow's change-view accelerators



commit 4c5153916832a4e6fbdccfe3753f94355e600be6
Author: Johannes Maibaum <jmaibaum gmail com>
Date:   Sat Apr 10 19:07:15 2021 +0200

    window: Fix GcalWindow's change-view accelerators
    
    Commit 2d5b1aa9d15a61c82519bd7f5cd6608999679a15 removed the
    GCAL_WINDOW_VIEW_DAY variant of the GcalWindowView enum. Since then, the
    change-view accelerators to switch to GCAL_WINDOW_VIEW_{WEEK,MONTH,YEAR}
    were broken, as the accelerator setup was assuming
    GCAL_WINDOW_VIEW_WEEK==1, which isn't true anymore with
    GCAL_WINDOW_VIEW_DAY being gone.
    
    This change fixes the enum values in the accelerator setup.

 src/gui/gcal-window.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/gcal-window.c b/src/gui/gcal-window.c
index 06163d5b..b1c4a5e9 100644
--- a/src/gui/gcal-window.c
+++ b/src/gui/gcal-window.c
@@ -1104,9 +1104,9 @@ gcal_window_init (GcalWindow *self)
   app = g_application_get_default ();
   gcal_window_add_accelerator (app, "win.change-view(-1)",   "<Ctrl>Page_Down");
   gcal_window_add_accelerator (app, "win.change-view(-2)",   "<Ctrl>Page_Up");
-  gcal_window_add_accelerator (app, "win.change-view(1)",    "<Ctrl>1")
-  gcal_window_add_accelerator (app, "win.change-view(2)",    "<Ctrl>2");
-  gcal_window_add_accelerator (app, "win.change-view(3)",    "<Ctrl>3");
+  gcal_window_add_accelerator (app, "win.change-view(0)",    "<Ctrl>1");
+  gcal_window_add_accelerator (app, "win.change-view(1)",    "<Ctrl>2");
+  gcal_window_add_accelerator (app, "win.change-view(2)",    "<Ctrl>3");
   gcal_window_add_accelerator (app, "app.quit", "<Ctrl>q");
   gcal_window_add_accelerator (app, "win.new-event", "<Ctrl>n");
 }


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