[glib] gio: Deprecate GParameter-related functions
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gio: Deprecate GParameter-related functions
- Date: Fri, 31 Mar 2017 10:01:19 +0000 (UTC)
commit 3151da15d7297b7784d5c9f94c619b1a1500656a
Author: Fabian Orccon <cfoch fabian gmail com>
Date: Thu Jan 26 19:47:47 2017 -0500
gio: Deprecate GParameter-related functions
https://bugzilla.gnome.org/show_bug.cgi?id=709865
gio/gasyncinitable.c | 2 ++
gio/gasyncinitable.h | 2 +-
gio/ginitable.c | 2 ++
gio/ginitable.h | 3 ++-
4 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gio/gasyncinitable.c b/gio/gasyncinitable.c
index 2994329..cd970cf 100644
--- a/gio/gasyncinitable.c
+++ b/gio/gasyncinitable.c
@@ -366,6 +366,8 @@ g_async_initable_new_async (GType object_type,
* for any errors.
*
* Since: 2.22
+ * Deprecated: 2.52: Use g_object_new_with_properties() and
+ * g_async_initable_init_async() instead. See #GParameter for more information.
*/
void
g_async_initable_newv_async (GType object_type,
diff --git a/gio/gasyncinitable.h b/gio/gasyncinitable.h
index 43dda48..495ec81 100644
--- a/gio/gasyncinitable.h
+++ b/gio/gasyncinitable.h
@@ -95,7 +95,7 @@ void g_async_initable_new_async (GType object_type,
gpointer user_data,
const gchar *first_property_name,
...);
-GLIB_AVAILABLE_IN_ALL
+GLIB_DEPRECATED_IN_2_52_FOR(g_object_new_with_properties and g_async_initable_init_async)
void g_async_initable_newv_async (GType object_type,
guint n_parameters,
GParameter *parameters,
diff --git a/gio/ginitable.c b/gio/ginitable.c
index f52046b..266fbb8 100644
--- a/gio/ginitable.c
+++ b/gio/ginitable.c
@@ -184,6 +184,8 @@ g_initable_new (GType object_type,
* #GObject, or %NULL on error
*
* Since: 2.22
+ * Deprecated: 2.52: Use g_object_new_with_properties() and
+ * g_initable_init() instead. See #GParameter for more information.
*/
gpointer
g_initable_newv (GType object_type,
diff --git a/gio/ginitable.h b/gio/ginitable.h
index 2c8804b..426c5bd 100644
--- a/gio/ginitable.h
+++ b/gio/ginitable.h
@@ -80,7 +80,8 @@ gpointer g_initable_new (GType object_type,
GError **error,
const gchar *first_property_name,
...);
-GLIB_AVAILABLE_IN_ALL
+
+GLIB_DEPRECATED_IN_2_52_FOR(g_object_new_with_properties and g_initable_init)
gpointer g_initable_newv (GType object_type,
guint n_parameters,
GParameter *parameters,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]