Update Vala deprecation syntax

parent e02c61bd
namespace Rsvg {
public class Handle : GLib.Object {
[Deprecated (since = "2.36")]
[Version (deprecated = true, deprecated_since = "2.36", replacement = "")]
public unowned string get_desc ();
[Deprecated (replacement = "GLib.Object.unref")]
[Version (deprecated = true, deprecated_since = "2.13.90", replacement = "GLib.Object.unref")]
public void free ();
[Deprecated (replacement = "render_cairo")]
[Version (deprecated = true, deprecated_since = "2.13.90", replacement = "render_cairo")]
public void set_size_callback (owned Rsvg.SizeFunc size_func);
[Deprecated (since = "2.36")]
[Version (deprecated = true, deprecated_since = "2.36", replacement = "")]
public unowned string get_title ();
[Deprecated (since = "2.36")]
[Version (deprecated = true, deprecated_since = "2.36", replacement = "")]
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, deprecated_since = "2.13.90", replacement = "render_cairo")]
public delegate void SizeFunc (ref int width, ref int height);
[Deprecated (since = "2.36")]
[Version (deprecated = true, deprecated_since = "2.36", replacement = "")]
public static void init ();
[Deprecated]
[Version (deprecated = true, deprecated_since = "2.35.0", replacement = "")]
public static Gdk.Pixbuf pixbuf_from_file (string file_name) throws GLib.Error;
[Deprecated]
[Version (deprecated = true, deprecated_since = "2.35.0", replacement = "")]
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, deprecated_since = "2.35.0", replacement = "")]
public static Gdk.Pixbuf pixbuf_from_file_at_size (string file_name, int width, int height) throws GLib.Error;
[Deprecated]
[Version (deprecated = true, deprecated_since = "2.35.0", replacement = "")]
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, deprecated_since = "2.35.0", replacement = "")]
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 = true, deprecated_since = "2.35.0", replacement = "")]
public static void term ();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment