summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Orccon <cfoch.fabian@gmail.com>2017-01-26 19:47:47 -0500
committerPhilip Withnall <withnall@endlessm.com>2017-03-31 11:00:23 +0100
commit3151da15d7297b7784d5c9f94c619b1a1500656a (patch)
tree19bc7ee6bf2466e4e18ad5f02e4736fa2bfb8298
parent2646c2173551c699c0459c95f49ec8b6fc0bf66d (diff)
downloadglib-3151da15d7297b7784d5c9f94c619b1a1500656a.tar.gz
gio: Deprecate GParameter-related functions
https://bugzilla.gnome.org/show_bug.cgi?id=709865
-rw-r--r--gio/gasyncinitable.c2
-rw-r--r--gio/gasyncinitable.h2
-rw-r--r--gio/ginitable.c2
-rw-r--r--gio/ginitable.h3
4 files changed, 7 insertions, 2 deletions
diff --git a/gio/gasyncinitable.c b/gio/gasyncinitable.c
index 299432918..cd970cf91 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 43dda48fa..495ec8195 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 f52046b4e..266fbb819 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 2c8804b1e..426c5bd2c 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,