[gnome-taquin/arnaudb/wip/gtk4: 8/43] No need anymore to set events.



commit c873c60727aec5b757da607465dec8f0a4069ac3
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Wed Feb 19 20:59:43 2020 +0100

    No need anymore to set events.

 src/taquin-view.vala | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/taquin-view.vala b/src/taquin-view.vala
index 27259b4..4b565a9 100644
--- a/src/taquin-view.vala
+++ b/src/taquin-view.vala
@@ -65,17 +65,12 @@ private class TaquinView : Gtk.DrawingArea
 
     construct
     {
+        can_focus = true;
         init_mouse ();
         init_keyboard ();
         size_allocate.connect (on_size_allocate);
     }
 
-    internal TaquinView ()
-    {
-        can_focus = true;
-        set_events (EventMask.EXPOSURE_MASK | EventMask.BUTTON_PRESS_MASK | EventMask.BUTTON_RELEASE_MASK | 
EventMask.KEY_PRESS_MASK);
-    }
-
     private Game? _game = null;
     [CCode (notify = false)] internal Game game
     {


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