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



commit 472abbbd5d76598b99ba0e116409df0653e74446
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 c130ccf..dd4591d 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]