Răsfoiți Sursa

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

Daniele Bartolini 4 ani în urmă
părinte
comite
f1fa2ed306
1 a modificat fișierele cu 5 adăugiri și 1 ștergeri
  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)
 	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;
 			return;
 
 
 		_allocation = ev;
 		_allocation = ev;