[gnome-tetravex/arnaudb/wip/gtk4: 5/21] Configure event is gone.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tetravex/arnaudb/wip/gtk4: 5/21] Configure event is gone.
- Date: Fri, 27 Mar 2020 16:52:25 +0000 (UTC)
commit 9755f11e768666c18af70400015e3fb71e27ee87
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 006af71..1352b06 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]