[gegl] Fix deprecated vala syntax



commit 311f003997d3888038a31799a9243908479eb917
Author: Kao <angekao gmail com>
Date:   Fri May 21 18:09:05 2010 +0200

    Fix deprecated vala syntax

 bindings/vala/babl-0.0.vapi |    2 +-
 bindings/vala/gegl-0.0.vapi |   80 +++++++++++++++++++++---------------------
 2 files changed, 41 insertions(+), 41 deletions(-)
---
diff --git a/bindings/vala/babl-0.0.vapi b/bindings/vala/babl-0.0.vapi
index cc531ac..b76c39d 100644
--- a/bindings/vala/babl-0.0.vapi
+++ b/bindings/vala/babl-0.0.vapi
@@ -15,5 +15,5 @@ namespace Babl {
 	[CCode (cheader_filename = "babl/babl.h")]
 	public static void destroy ();
 	[CCode (cheader_filename = "babl/babl.h")]
-	public static weak Babl.Format format (string name);
+	public static unowned Babl.Format format (string name);
 }
diff --git a/bindings/vala/gegl-0.0.vapi b/bindings/vala/gegl-0.0.vapi
index 8aa7510..8693a21 100644
--- a/bindings/vala/gegl-0.0.vapi
+++ b/bindings/vala/gegl-0.0.vapi
@@ -26,48 +26,48 @@ namespace Gegl {
 		public void set_rectangle (Gegl.Rectangle rectangle);
 		public bool work (out double progress);
 		[NoAccessorMethod]
-		public weak int chunksize { get; construct; }
+		public unowned int chunksize { get; construct; }
 		[NoAccessorMethod]
-		public weak Gegl.Node node { set construct; }
+		public unowned Gegl.Node node { set construct; }
 		[NoAccessorMethod]
-		public weak double progress { get; set; }
+		public unowned double progress { get; set; }
 	}
 	[CCode (cheader_filename = "gegl.h")]
 	public class Node : GLib.Object, Gegl.Visitable {
 		public Node ();
 		public Node.from_file (string path);
 		public Node.from_xml (string xmldata, string path_root);
-		public weak Gegl.Node new_child (...);
-		public weak Gegl.Node create_child (string operation);
-		public weak Gegl.Node adopt_child (Gegl.Node child);
-		public weak Gegl.Node add_child (Gegl.Node child);
-		public weak Gegl.Node remove_child (Gegl.Node child);
+		public unowned Gegl.Node new_child (...);
+		public unowned Gegl.Node create_child (string operation);
+		public unowned Gegl.Node adopt_child (Gegl.Node child);
+		public unowned Gegl.Node add_child (Gegl.Node child);
+		public unowned Gegl.Node remove_child (Gegl.Node child);
 		public bool connect_from (string input_pad_name, Gegl.Node source, string output_pad_name);
 		public bool connect_to (string output_pad_name, Gegl.Node sink, string input_pad_name);
 		public void link (Gegl.Node sink);
 		public void link_many (...);
 		public bool disconnect (string input_pad);
-		public weak GLib.SList<Gegl.Node> get_children ();
-		public int get_consumers (string output_pad, out weak Gegl.Node nodes, string pads);
-		public weak string get_operation ();
-		public weak Gegl.Node get_input_proxy (string pad_name);
-		public weak Gegl.Node get_output_proxy (string pad_name);
-		public weak Gegl.Node get_parent ();
-		public weak Gegl.Node get_producer (string input_pad_name, string output_pad_name);
-		public weak Gegl.Node detect (int x, int y);
+		public unowned GLib.SList<Gegl.Node> get_children ();
+		public int get_consumers (string output_pad, out unowned Gegl.Node nodes, string pads);
+		public unowned string get_operation ();
+		public unowned Gegl.Node get_input_proxy (string pad_name);
+		public unowned Gegl.Node get_output_proxy (string pad_name);
+		public unowned Gegl.Node get_parent ();
+		public unowned Gegl.Node get_producer (string input_pad_name, string output_pad_name);
+		public unowned Gegl.Node detect (int x, int y);
 		public Gegl.Rectangle get_bounding_box ();
 		public void blit (double scale, Gegl.Rectangle roi, void* format, void* destination_buf, int rowstride, Gegl.BlitFlags flags);
 		public void process ();
-		public weak GLib.ParamSpec find_property (string property_name);
+		public unowned GLib.ParamSpec find_property (string property_name);
 		public void get (...);
 		public void set (...);
 		public void get_property (string property_name, GLib.Value value);
 		public void set_property (string property_name, GLib.Value value);
-		public weak string to_xml (string path_root);
+		public unowned string to_xml (string path_root);
 		[NoAccessorMethod]
-		public weak string name { get; set construct; }
+		public unowned string name { get; set construct; }
 		[NoAccessorMethod]
-		public weak string operation { get; set construct; }
+		public unowned string operation { get; set construct; }
 		public signal void computed (Gegl.Rectangle p0);
 		public signal void invalidated (Gegl.Rectangle p0);
 	}
@@ -81,46 +81,46 @@ namespace Gegl {
 		public void get (double scale, Gegl.Rectangle rect, void* format, void* dest, int rowstride);
 		public Gegl.Rectangle get_extent ();
 		public static Gegl.Interpolation interpolation_from_string (string str);
-		public static weak Gegl.Buffer load (string path);
+		public static unowned Gegl.Buffer load (string path);
 		public Buffer (Gegl.Rectangle? extent, void* format);
-		public static weak Gegl.Buffer open (string path);
+		public static unowned Gegl.Buffer open (string path);
 		public void sample (double x, double y, double scale, void* dest, void* format, Gegl.Interpolation interpolation);
 		public void sample_cleanup ();
 		public void save (string path, Gegl.Rectangle roi);
 		public void set (Gegl.Rectangle rect, void* format, void* src, int rowstride);
 		public bool set_extent (Gegl.Rectangle extent);
 		[NoAccessorMethod]
-		public weak int abyss_height { get; construct; }
+		public unowned int abyss_height { get; construct; }
 		[NoAccessorMethod]
-		public weak int abyss_width { get; construct; }
+		public unowned int abyss_width { get; construct; }
 		[NoAccessorMethod]
-		public weak int abyss_x { get; construct; }
+		public unowned int abyss_x { get; construct; }
 		[NoAccessorMethod]
-		public weak int abyss_y { get; construct; }
+		public unowned int abyss_y { get; construct; }
 		[NoAccessorMethod]
-		public weak void* format { get; set construct; }
+		public unowned void* format { get; set construct; }
 		[NoAccessorMethod]
-		public weak int height { get; set construct; }
+		public unowned int height { get; set construct; }
 		[NoAccessorMethod]
-		public weak string path { get; set construct; }
+		public unowned string path { get; set construct; }
 		[NoAccessorMethod]
-		public weak int pixels { get; }
+		public unowned int pixels { get; }
 		[NoAccessorMethod]
-		public weak int px_size { get; }
+		public unowned int px_size { get; }
 		[NoAccessorMethod]
-		public weak int shift_x { get; construct; }
+		public unowned int shift_x { get; construct; }
 		[NoAccessorMethod]
-		public weak int shift_y { get; construct; }
+		public unowned int shift_y { get; construct; }
 		[NoAccessorMethod]
-		public weak int tile_height { get; construct; }
+		public unowned int tile_height { get; construct; }
 		[NoAccessorMethod]
-		public weak int tile_width { get; construct; }
+		public unowned int tile_width { get; construct; }
 		[NoAccessorMethod]
-		public weak int width { get; set construct; }
+		public unowned int width { get; set construct; }
 		[NoAccessorMethod]
-		public weak int x { get; set construct; }
+		public unowned int x { get; set construct; }
 		[NoAccessorMethod]
-		public weak int y { get; set construct; }
+		public unowned int y { get; set construct; }
 		public signal void changed (Gegl.Rectangle p0);
 	}
 	[CCode (cheader_filename = "gegl.h")]
@@ -150,11 +150,11 @@ namespace Gegl {
 	public const int MICRO_VERSION;
 	public const int MINOR_VERSION;
 	[CCode (cheader_filename = "gegl.h")]
-	public static weak GLib.Object config ();
+	public static unowned GLib.Object config ();
 	[CCode (cheader_filename = "gegl.h")]
 	public static void exit ();
 	[CCode (cheader_filename = "gegl.h")]
 	public static void get_version (int major, int minor, int micro);
 	[CCode (cheader_filename = "gegl.h")]
-	public static void init ([CCode (array_length_pos = 0.9)] ref weak string[] argv);
+	public static void init ([CCode (array_length_pos = 0.9)] ref unowned string[] argv);
 }



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