Jelajahi Sumber

tools: Gtk.Allocation.equal() requires GTK+ >= 3.20

Daniele Bartolini 4 tahun lalu
induk
melakukan
f1fa2ed306
1 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 5 1
      tools/level_editor/editor_view.vala

+ 5 - 1
tools/level_editor/editor_view.vala

@@ -294,7 +294,11 @@ public class EditorView : Gtk.EventBox
 
 	private void on_size_allocate(Gtk.Allocation ev)
 	{
-		if (_allocation.equal(ev))
+		if (_allocation.x == ev.x
+			&& _allocation.y == ev.y
+			&& _allocation.width == ev.width
+			&& _allocation.height == ev.height
+			)
 			return;
 
 		_allocation = ev;