[swell-foop/arnaudb/wip/gtk4: 19/37] No need to set events anymore.



commit b09f4257ef53c802fd172097879e420b495e2ea7
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue May 12 21:31:49 2020 +0200

    No need to set events anymore.

 src/window.vala | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/src/window.vala b/src/window.vala
index 1d9c886..50f1ee0 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -97,8 +97,6 @@ private class SwellFoopWindow : ApplicationWindow
         SimpleAction colors_action = (SimpleAction) lookup_action ("change-colors");
         colors_action.set_state (new Variant.@string (colors.to_string ()));
 
-        add_events (Gdk.EventMask.KEY_PRESS_MASK | Gdk.EventMask.KEY_RELEASE_MASK);
-
         init_scores ();
 
         /* show the current score */


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