[glib] Add G_GNUC_DEPRECATED to deprecated functions in gobject
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Add G_GNUC_DEPRECATED to deprecated functions in gobject
- Date: Sun, 9 Oct 2011 03:50:49 +0000 (UTC)
commit 93b3f6477e1670536d9d208e1d51d682a81d3d65
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Oct 8 23:23:43 2011 -0400
Add G_GNUC_DEPRECATED to deprecated functions in gobject
gobject/gboxed.h | 2 +-
gobject/gobject.h | 2 +-
gobject/gparam.h | 2 +-
gobject/gvaluetypes.h | 10 +++++-----
4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gobject/gboxed.h b/gobject/gboxed.h
index 35375f1..0fff0e8 100644
--- a/gobject/gboxed.h
+++ b/gobject/gboxed.h
@@ -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);
diff --git a/gobject/gobject.h b/gobject/gobject.h
index bb62c22..fec3089 100644
--- a/gobject/gobject.h
+++ b/gobject/gobject.h
@@ -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)
diff --git a/gobject/gparam.h b/gobject/gparam.h
index c9a991b..2561677 100644
--- a/gobject/gparam.h
+++ b/gobject/gparam.h
@@ -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 --- */
diff --git a/gobject/gvaluetypes.h b/gobject/gvaluetypes.h
index a7c2414..bb29882 100644
--- a/gobject/gvaluetypes.h
+++ b/gobject/gvaluetypes.h
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]