aboutsummaryrefslogtreecommitdiff
path: root/deskutils/elementary-calendar/files/patch-src_MainWindow.vala
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/elementary-calendar/files/patch-src_MainWindow.vala')
-rw-r--r--deskutils/elementary-calendar/files/patch-src_MainWindow.vala14
1 files changed, 14 insertions, 0 deletions
diff --git a/deskutils/elementary-calendar/files/patch-src_MainWindow.vala b/deskutils/elementary-calendar/files/patch-src_MainWindow.vala
new file mode 100644
index 000000000000..d4e3fbe3422b
--- /dev/null
+++ b/deskutils/elementary-calendar/files/patch-src_MainWindow.vala
@@ -0,0 +1,14 @@
+--- src/MainWindow.vala.orig 2021-01-18 04:30:35 UTC
++++ src/MainWindow.vala
+@@ -51,8 +51,9 @@ public class Maya.MainWindow : Gtk.ApplicationWindow {
+ construct {
+ add_action_entries (ACTION_ENTRIES, this);
+
+- foreach (var action in action_accelerators.get_keys ()) {
+- ((Gtk.Application) GLib.Application.get_default ()).set_accels_for_action (ACTION_PREFIX + action, action_accelerators[action].to_array ());
++ var iter = action_accelerators.map_iterator ();
++ while (iter.next ()) {
++ ((Gtk.Application) GLib.Application.get_default ()).set_accels_for_action (ACTION_PREFIX + iter.get_key (), { iter.get_value () });
+ }
+
+ weak Gtk.IconTheme default_theme = Gtk.IconTheme.get_default ();