[five-or-more/arnaudb/wip/gtk4: 14/29] No need to set events.



commit 42e9d178ec453b7e63e042c3e751a1b339402be8
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Mar 12 23:33:44 2020 +0100

    No need to set events.

 src/view.vala | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/src/view.vala b/src/view.vala
index f0e7708..c216a50 100644
--- a/src/view.vala
+++ b/src/view.vala
@@ -89,8 +89,6 @@ private class View : DrawingArea
         });
 
         game.board.grid_changed.connect (queue_draw);
-        add_events (Gdk.EventMask.BUTTON_PRESS_MASK | Gdk.EventMask.BUTTON_RELEASE_MASK);
-        add_events (Gdk.EventMask.KEY_PRESS_MASK | Gdk.EventMask.KEY_RELEASE_MASK);
 
         set_can_focus (true);
         grab_focus ();


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