[gnome-taquin/arnaudb/wip/gtk4: 71/108] Configure event is gone.




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

    Configure event is gone.

 src/taquin-view.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/taquin-view.vala b/src/taquin-view.vala
index a881993..27259b4 100644
--- a/src/taquin-view.vala
+++ b/src/taquin-view.vala
@@ -65,8 +65,9 @@ private class TaquinView : Gtk.DrawingArea
 
     construct
     {
-        init_keyboard ();
         init_mouse ();
+        init_keyboard ();
+        size_allocate.connect (on_size_allocate);
     }
 
     internal TaquinView ()
@@ -120,10 +121,9 @@ private class TaquinView : Gtk.DrawingArea
         }
     }
 
-    protected override bool configure_event (Gdk.EventConfigure e)
+    private inline void on_size_allocate ()
     {
         configure ();
-        return true;
     }
 
     private void configure ()


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