[librsvg] Deprecate the title, desc, and metadata accessors
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Deprecate the title, desc, and metadata accessors
- Date: Thu, 15 Dec 2011 14:44:32 +0000 (UTC)
commit a61da7471f951317e665f90fea51badc57781a2c
Author: Christian Persch <chpe gnome org>
Date: Thu Dec 15 15:43:29 2011 +0100
Deprecate the title, desc, and metadata accessors
They're unused except for bindings, according to codesearch. They're also
implemented incorrectly (only allow retrieving the toplevel's data), and
did I mention they're completely unused?
rsvg-base.c | 6 ++++++
rsvg.h | 13 +++++++------
2 files changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/rsvg-base.c b/rsvg-base.c
index a20c501..de2bdcb 100644
--- a/rsvg-base.c
+++ b/rsvg-base.c
@@ -1232,6 +1232,8 @@ rsvg_drawing_ctx_free (RsvgDrawingCtx * handle)
* Returns: The SVG's title
*
* Since: 2.9
+ *
+ * Deprecated: 2.36
*/
const char *
rsvg_handle_get_metadata (RsvgHandle * handle)
@@ -1254,6 +1256,8 @@ rsvg_handle_get_metadata (RsvgHandle * handle)
* Returns: The SVG's title
*
* Since: 2.4
+ *
+ * Deprecated: 2.36
*/
const char *
rsvg_handle_get_title (RsvgHandle * handle)
@@ -1276,6 +1280,8 @@ rsvg_handle_get_title (RsvgHandle * handle)
* Returns: The SVG's description
*
* Since: 2.4
+ *
+ * Deprecated: 2.36
*/
const char *
rsvg_handle_get_desc (RsvgHandle * handle)
diff --git a/rsvg.h b/rsvg.h
index 02c64b6..8c99311 100644
--- a/rsvg.h
+++ b/rsvg.h
@@ -171,12 +171,6 @@ RsvgHandle *rsvg_handle_new_from_stream_sync (GInputStream *input_stream,
GCancellable *cancellable,
GError **error);
-/* Accessibility API */
-
-const char *rsvg_handle_get_title (RsvgHandle * handle);
-const char *rsvg_handle_get_desc (RsvgHandle * handle);
-const char *rsvg_handle_get_metadata (RsvgHandle * handle);
-
RsvgHandle *rsvg_handle_new_from_data (const guint8 * data, gsize data_len, GError ** error);
RsvgHandle *rsvg_handle_new_from_file (const gchar * file_name, GError ** error);
@@ -231,6 +225,13 @@ GdkPixbuf *rsvg_pixbuf_from_file_at_zoom_with_max (const gchar * file_name,
double y_zoom,
gint max_width, gint max_height, GError ** error);
+RSVG_DEPRECATED
+const char *rsvg_handle_get_title (RsvgHandle * handle);
+RSVG_DEPRECATED
+const char *rsvg_handle_get_desc (RsvgHandle * handle);
+RSVG_DEPRECATED
+const char *rsvg_handle_get_metadata (RsvgHandle * handle);
+
#endif /* !__GI_SCANNER__ */
/* END deprecated APIs. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]