Skip to content

Commit

Permalink
Update Vala deprecation syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
federicomenaquintero committed Feb 23, 2018
1 parent e02c61b commit caceae3
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Rsvg-2.0-custom.vala
@@ -1,14 +1,14 @@
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 ();
}

Expand All @@ -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 ();
}

0 comments on commit caceae3

Please sign in to comment.