Add G_GNUC_DEPRECATED to deprecated functions in gobject
authorMatthias Clasen <mclasen@redhat.com>
Sun, 9 Oct 2011 03:23:43 +0000 (23:23 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 9 Oct 2011 03:23:43 +0000 (23:23 -0400)
gobject/gboxed.h
gobject/gobject.h
gobject/gparam.h
gobject/gvaluetypes.h

index 35375f1..0fff0e8 100644 (file)
@@ -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);
index bb62c22..fec3089 100644 (file)
@@ -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)
index c9a991b..2561677 100644 (file)
@@ -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 --- */
index a7c2414..bb29882 100644 (file)
@@ -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