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



commit 71a8c5dee3d5a1b3aec4fe5c56e4bd1f7f7a84d5
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]