]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
librsvg-2.0: Use [Version] instead of [Deprecated] and [Experimental]
authorFlorian Brosch <flo.brosch@gmail.com>
Wed, 9 Jul 2014 19:15:08 +0000 (21:15 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Sat, 30 Jan 2016 13:48:32 +0000 (14:48 +0100)
vapi/metadata/Rsvg-2.0-custom.vala

index 46f1a6fa18e54392b0ea1cc7bb304311a8cbf58f..9210a11133ffd6d3f99af11a3a034d1e0876c07c 100644 (file)
@@ -1,14 +1,14 @@
 namespace Rsvg {
        public class Handle : GLib.Object {
-               [Deprecated (since = "2.36")]
+               [Version (deprecated_since = "2.36")]
                public unowned string get_desc ();
-               [Deprecated (replacement = "GLib.Object.unref")]
+               [Version (replacement = "GLib.Object.unref")]
                public void free ();
-               [Deprecated (replacement = "render_cairo")]
+               [Version (replacement = "render_cairo")]
                public void set_size_callback (owned Rsvg.SizeFunc size_func);
-               [Deprecated (since = "2.36")]
+               [Version (deprecated_since = "2.36")]
                public unowned string get_title ();
-               [Deprecated (since = "2.36")]
+               [Version (deprecated_since = "2.36")]
                public unowned string get_metadata ();
        }
 
@@ -17,21 +17,21 @@ namespace Rsvg {
                public static bool check (int major, int minor, int micro);
        }
 
-       [Deprecated]
+       [Version (deprecated = true)]
        public delegate void SizeFunc (ref int width, ref int height);
 
-       [Deprecated (since = "2.36")]
+       [Version (deprecated_since = "2.36")]
        public static void init ();
-       [Deprecated]
+       [Version (deprecated = true)]
        public static Gdk.Pixbuf pixbuf_from_file (string file_name) throws GLib.Error;
-       [Deprecated]
+       [Version (deprecated = true)]
        public static Gdk.Pixbuf pixbuf_from_file_at_max_size (string file_name, int max_width, int max_height) throws GLib.Error;
-       [Deprecated]
+       [Version (deprecated = true)]
        public static Gdk.Pixbuf pixbuf_from_file_at_size (string file_name, int width, int height) throws GLib.Error;
-       [Deprecated]
+       [Version (deprecated = true)]
        public static Gdk.Pixbuf pixbuf_from_file_at_zoom (string file_name, double x_zoom, double y_zoom) throws GLib.Error;
-       [Deprecated]
+       [Version (deprecated = true)]
        public static Gdk.Pixbuf pixbuf_from_file_at_zoom_with_max (string file_name, double x_zoom, double y_zoom, int max_width, int max_height) throws GLib.Error;
-       [Deprecated (since = "2.36")]
+       [Version (deprecated_since = "2.36")]
        public static void term ();
 }