Commit 93b3f647 authored by Matthias Clasen's avatar Matthias Clasen

Add G_GNUC_DEPRECATED to deprecated functions in gobject

parent f9b29ca0
......@@ -80,7 +80,7 @@ void g_value_take_boxed (GValue *value,
gconstpointer v_boxed);
#ifndef G_DISABLE_DEPRECATED
void g_value_set_boxed_take_ownership (GValue *value,
gconstpointer v_boxed);
gconstpointer v_boxed) G_GNUC_DEPRECATED_FOR(g_value_take_boxed);
#endif
gpointer g_value_get_boxed (const GValue *value);
gpointer g_value_dup_boxed (const GValue *value);
......
......@@ -528,7 +528,7 @@ void g_value_take_object (GValue *value,
gpointer v_object);
#ifndef G_DISABLE_DEPRECATED
void g_value_set_object_take_ownership (GValue *value,
gpointer v_object);
gpointer v_object) G_GNUC_DEPRECATED_FOR(g_value_take_object);
#endif
#if !defined(G_DISABLE_DEPRECATED) || defined(GTK_COMPILATION)
......
......@@ -314,7 +314,7 @@ void g_value_take_param (GValue *value,
GParamSpec *param);
#ifndef G_DISABLE_DEPRECATED
void g_value_set_param_take_ownership (GValue *value,
GParamSpec *param);
GParamSpec *param) G_GNUC_DEPRECATED_FOR(g_value_take_param);
#endif
/* --- convenience functions --- */
......
......@@ -178,9 +178,9 @@ G_BEGIN_DECLS
/* --- prototypes --- */
#ifndef G_DISABLE_DEPRECATED
void g_value_set_char (GValue *value,
gchar v_char);
gchar g_value_get_char (const GValue *value);
void g_value_set_char (GValue *value,
gchar v_char) G_GNUC_DEPRECATED;
gchar g_value_get_char (const GValue *value) G_GNUC_DEPRECATED;
#endif
void g_value_set_schar (GValue *value,
gint8 v_char);
......@@ -246,8 +246,8 @@ gchar* g_strdup_value_contents (const GValue *value);
void g_value_take_string (GValue *value,
gchar *v_string);
#ifndef G_DISABLE_DEPRECATED
void g_value_set_string_take_ownership (GValue *value,
gchar *v_string);
void g_value_set_string_take_ownership (GValue *value,
gchar *v_string) G_GNUC_DEPRECATED_FOR(g_value_take_string);
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment