]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
goocanvas: Several data type fixes.
authorRafael Monica <monraaf@gmail.com>
Wed, 4 Aug 2010 18:45:57 +0000 (11:45 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Wed, 4 Aug 2010 18:45:57 +0000 (11:45 -0700)
Fixes bug 625268.

vapi/goocanvas.vapi
vapi/packages/goocanvas/goocanvas-custom.vala
vapi/packages/goocanvas/goocanvas.metadata

index 8c8b051d910599033f48b4ca3be0a62f8366d7aa..4bd8af272be07ff2907480f4fcbc5ba7278285fa 100644 (file)
@@ -29,12 +29,12 @@ namespace Goo {
                public unowned Cairo.Context create_cairo_context ();
                public virtual unowned Goo.CanvasItem create_item (Goo.CanvasItemModel model);
                public static void create_path (GLib.Array<Goo.CanvasPathCommand> commands, Cairo.Context cr);
-               public void get_bounds (ref unowned double? left, ref unowned double? top, ref unowned double? right, ref unowned double? bottom);
+               public void get_bounds (out unowned double? left, out unowned double? top, out unowned double? right, out unowned double? bottom);
                public double get_default_line_width ();
                public unowned Goo.CanvasItem? get_item (Goo.CanvasItemModel model);
                public unowned Goo.CanvasItem? get_item_at (double x, double y, bool is_pointer_event);
-               public unowned GLib.List<Goo.CanvasItem> get_items_at (double x, double y, bool is_pointer_event);
-               public unowned GLib.List<Goo.CanvasItem> get_items_in_area (Goo.CanvasBounds area, bool inside_area, bool allow_overlaps, bool include_containers);
+               public GLib.List<weak Goo.CanvasItem>? get_items_at (double x, double y, bool is_pointer_event);
+               public GLib.List<weak Goo.CanvasItem>? get_items_in_area (Goo.CanvasBounds area, bool inside_area, bool allow_overlaps, bool include_containers);
                public unowned Goo.CanvasItem? get_root_item ();
                public unowned Goo.CanvasItemModel? get_root_item_model ();
                public double get_scale ();
index e7e4b29137c539036aec609f58e1d1acece4940d..e40de41abd376c51d34052da6446cff851e375a4 100644 (file)
@@ -43,8 +43,8 @@ namespace Goo
                public Canvas();
                public static void create_path(GLib.Array<CanvasPathCommand> commands, Cairo.Context cr);
                public static GLib.Array<CanvasPathCommand> parse_path_data (string path_data);
-               public unowned GLib.List<CanvasItem> get_items_at (double x, double y, bool is_pointer_event);
-               public unowned GLib.List<CanvasItem> get_items_in_area (Goo.CanvasBounds area, bool inside_area, bool allow_overlaps, bool include_containers);
+               public GLib.List<unowned CanvasItem>? get_items_at (double x, double y, bool is_pointer_event);
+               public GLib.List<unowned CanvasItem>? get_items_in_area (Goo.CanvasBounds area, bool inside_area, bool allow_overlaps, bool include_containers);
        }
 
        public class CanvasEllipse
index 4b3f5b097089eed806b236f489845546d853fe35..34a297a436a23d25d101a916931a4b4a36d53233 100644 (file)
@@ -51,10 +51,10 @@ goo_canvas_convert_from_pixels.y is_ref="1"
 goo_canvas_convert_to_pixels.x is_ref="1"
 goo_canvas_convert_to_pixels.y is_ref="1"
 goo_canvas_create_path hidden="1"
-goo_canvas_get_bounds.left is_ref="1" nullable="1"
-goo_canvas_get_bounds.top is_ref="1" nullable="1"
-goo_canvas_get_bounds.right is_ref="1" nullable="1"
-goo_canvas_get_bounds.bottom is_ref="1" nullable="1"
+goo_canvas_get_bounds.left is_out="1" nullable="1"
+goo_canvas_get_bounds.top is_out="1" nullable="1"
+goo_canvas_get_bounds.right is_out="1" nullable="1"
+goo_canvas_get_bounds.bottom is_out="1" nullable="1"
 goo_canvas_get_root_item nullable="1"
 goo_canvas_get_root_item_model nullable="1"
 goo_canvas_get_static_root_item nullable="1"