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




commit 316c7bc02b497454a74c2d24568f8d69c94d5ac6
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 f40af7d..9e9a0b8 100644
--- a/src/view.vala
+++ b/src/view.vala
@@ -107,8 +107,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]