[gnome-tetravex/arnaudb/wip/gtk4: 36/60] Configure event is gone.




commit 47cda10cdf8eeddb1c5211718411c318e76200f4
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Feb 21 03:48:13 2020 +0100

    Configure event is gone.

 src/puzzle-view.vala | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/puzzle-view.vala b/src/puzzle-view.vala
index 46ff3c8..38272cf 100644
--- a/src/puzzle-view.vala
+++ b/src/puzzle-view.vala
@@ -195,6 +195,7 @@ private class PuzzleView : Gtk.DrawingArea
     {
         init_mouse ();
         init_keyboard ();
+        size_allocate.connect (on_size_allocate);
 
         set_events (Gdk.EventMask.EXPOSURE_MASK
                   | Gdk.EventMask.BUTTON_PRESS_MASK
@@ -335,7 +336,7 @@ private class PuzzleView : Gtk.DrawingArea
     }
 
     internal const double gap_factor = 0.5;
-    protected override bool configure_event (Gdk.EventConfigure event)
+    private inline void on_size_allocate ()
     {
         if (puzzle_init_done)
         {
@@ -390,8 +391,6 @@ private class PuzzleView : Gtk.DrawingArea
             ((!) selected_tile).snap_to_cursor = true;
         selected_tile = null;
         tile_selected = false;
-
-        return false;
     }
 
     private inline void init_patterns (Cairo.Context context)


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