[librsvg: 9/11] Don't skip the deprecated functions for g-ir-scanner
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 9/11] Don't skip the deprecated functions for g-ir-scanner
- Date: Fri, 11 Mar 2022 02:56:32 +0000 (UTC)
commit fdfccba2e19964499e09474ac2b8d661b4805567
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Mar 10 20:24:54 2022 -0600
Don't skip the deprecated functions for g-ir-scanner
This requires removing the corresponding entries in
Rsvg-2.0-custom.vala - hopefully they are introspected correctly.
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/674>
Rsvg-2.0-custom.vala | 31 -------------------------------
include/librsvg/rsvg.h | 4 ----
2 files changed, 35 deletions(-)
---
diff --git a/Rsvg-2.0-custom.vala b/Rsvg-2.0-custom.vala
index 56ca8be1c..8e33d5e4d 100644
--- a/Rsvg-2.0-custom.vala
+++ b/Rsvg-2.0-custom.vala
@@ -1,37 +1,6 @@
namespace Rsvg {
- public class Handle : GLib.Object {
- [Version (deprecated = true, deprecated_since = "2.36", replacement = "")]
- public unowned string get_desc ();
- [Version (deprecated = true, deprecated_since = "2.13.90", replacement = "GLib.Object.unref")]
- public void free ();
- [Version (deprecated = true, deprecated_since = "2.13.90", replacement = "render_cairo")]
- public void set_size_callback (owned Rsvg.SizeFunc size_func);
- [Version (deprecated = true, deprecated_since = "2.36", replacement = "")]
- public unowned string get_title ();
- [Version (deprecated = true, deprecated_since = "2.36", replacement = "")]
- public unowned string get_metadata ();
- }
-
namespace Version {
[CCode (cname = "LIBRSVG_CHECK_VERSION")]
public static bool check (int major, int minor, int micro);
}
-
- [Version (deprecated = true, deprecated_since = "2.13.90", replacement = "render_cairo")]
- public delegate void SizeFunc (ref int width, ref int height);
-
- [Version (deprecated = true, deprecated_since = "2.36", replacement = "")]
- public static void init ();
- [Version (deprecated = true, deprecated_since = "2.35.0", replacement = "")]
- public static Gdk.Pixbuf pixbuf_from_file (string file_name) throws GLib.Error;
- [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;
- [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;
- [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;
- [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;
- [Version (deprecated = true, deprecated_since = "2.35.0", replacement = "")]
- public static void term ();
}
diff --git a/include/librsvg/rsvg.h b/include/librsvg/rsvg.h
index c8dd1aaee..10aa4491d 100644
--- a/include/librsvg/rsvg.h
+++ b/include/librsvg/rsvg.h
@@ -1184,8 +1184,6 @@ void rsvg_handle_internal_set_testing (RsvgHandle *handle, gboolean testing);
/* BEGIN deprecated APIs. Do not use! */
-#ifndef __GI_SCANNER__
-
/**
* rsvg_init:
*
@@ -1428,8 +1426,6 @@ const char *rsvg_handle_get_desc (RsvgHandle *handle);
RSVG_DEPRECATED
const char *rsvg_handle_get_metadata (RsvgHandle *handle);
-#endif /* !__GI_SCANNER__ */
-
/* END deprecated APIs. */
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]