mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-21 04:52:11 +02:00
GObject: Don't use G_DISABLE_DEPRECATED for functions
This commit is contained in:
parent
07bcb3f8d6
commit
328be3938e
@ -78,11 +78,9 @@ void g_value_set_static_boxed (GValue *value,
|
|||||||
gconstpointer v_boxed);
|
gconstpointer v_boxed);
|
||||||
void g_value_take_boxed (GValue *value,
|
void g_value_take_boxed (GValue *value,
|
||||||
gconstpointer v_boxed);
|
gconstpointer v_boxed);
|
||||||
#ifndef G_DISABLE_DEPRECATED
|
|
||||||
GLIB_DEPRECATED_FOR(g_value_take_boxed)
|
GLIB_DEPRECATED_FOR(g_value_take_boxed)
|
||||||
void g_value_set_boxed_take_ownership (GValue *value,
|
void g_value_set_boxed_take_ownership (GValue *value,
|
||||||
gconstpointer v_boxed);
|
gconstpointer v_boxed);
|
||||||
#endif
|
|
||||||
gpointer g_value_get_boxed (const GValue *value);
|
gpointer g_value_get_boxed (const GValue *value);
|
||||||
gpointer g_value_dup_boxed (const GValue *value);
|
gpointer g_value_dup_boxed (const GValue *value);
|
||||||
|
|
||||||
|
@ -238,9 +238,8 @@ GType g_main_loop_get_type (void) G_GNUC_CONST;
|
|||||||
GType g_main_context_get_type (void) G_GNUC_CONST;
|
GType g_main_context_get_type (void) G_GNUC_CONST;
|
||||||
GType g_source_get_type (void) G_GNUC_CONST;
|
GType g_source_get_type (void) G_GNUC_CONST;
|
||||||
|
|
||||||
#if !defined(G_DISABLE_DEPRECATED) || defined(__GI_SCANNER__)
|
GLIB_DEPRECATED_FOR(G_TYPE_VARIANT)
|
||||||
GType g_variant_get_gtype (void) G_GNUC_CONST;
|
GType g_variant_get_gtype (void) G_GNUC_CONST;
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GStrv:
|
* GStrv:
|
||||||
|
@ -526,16 +526,13 @@ void g_object_run_dispose (GObject *object);
|
|||||||
|
|
||||||
void g_value_take_object (GValue *value,
|
void g_value_take_object (GValue *value,
|
||||||
gpointer v_object);
|
gpointer v_object);
|
||||||
#ifndef G_DISABLE_DEPRECATED
|
|
||||||
GLIB_DEPRECATED_FOR(g_value_take_object)
|
GLIB_DEPRECATED_FOR(g_value_take_object)
|
||||||
void g_value_set_object_take_ownership (GValue *value,
|
void g_value_set_object_take_ownership (GValue *value,
|
||||||
gpointer v_object);
|
gpointer v_object);
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(G_DISABLE_DEPRECATED) || defined(GTK_COMPILATION)
|
GLIB_DEPRECATED
|
||||||
gsize g_object_compat_control (gsize what,
|
gsize g_object_compat_control (gsize what,
|
||||||
gpointer data);
|
gpointer data);
|
||||||
#endif
|
|
||||||
|
|
||||||
/* --- implementation macros --- */
|
/* --- implementation macros --- */
|
||||||
#define G_OBJECT_WARN_INVALID_PSPEC(object, pname, property_id, pspec) \
|
#define G_OBJECT_WARN_INVALID_PSPEC(object, pname, property_id, pspec) \
|
||||||
|
@ -312,11 +312,9 @@ GParamSpec* g_value_dup_param (const GValue *value);
|
|||||||
|
|
||||||
void g_value_take_param (GValue *value,
|
void g_value_take_param (GValue *value,
|
||||||
GParamSpec *param);
|
GParamSpec *param);
|
||||||
#ifndef G_DISABLE_DEPRECATED
|
|
||||||
GLIB_DEPRECATED_FOR(g_value_take_param)
|
GLIB_DEPRECATED_FOR(g_value_take_param)
|
||||||
void g_value_set_param_take_ownership (GValue *value,
|
void g_value_set_param_take_ownership (GValue *value,
|
||||||
GParamSpec *param);
|
GParamSpec *param);
|
||||||
#endif
|
|
||||||
|
|
||||||
/* --- convenience functions --- */
|
/* --- convenience functions --- */
|
||||||
typedef struct _GParamSpecTypeInfo GParamSpecTypeInfo;
|
typedef struct _GParamSpecTypeInfo GParamSpecTypeInfo;
|
||||||
|
@ -177,12 +177,11 @@ G_BEGIN_DECLS
|
|||||||
|
|
||||||
|
|
||||||
/* --- prototypes --- */
|
/* --- prototypes --- */
|
||||||
#ifndef G_DISABLE_DEPRECATED
|
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED
|
||||||
void g_value_set_char (GValue *value,
|
void g_value_set_char (GValue *value,
|
||||||
gchar v_char);
|
gchar v_char);
|
||||||
GLIB_DEPRECATED gchar g_value_get_char (const GValue *value);
|
GLIB_DEPRECATED
|
||||||
#endif
|
gchar g_value_get_char (const GValue *value);
|
||||||
void g_value_set_schar (GValue *value,
|
void g_value_set_schar (GValue *value,
|
||||||
gint8 v_char);
|
gint8 v_char);
|
||||||
gint8 g_value_get_schar (const GValue *value);
|
gint8 g_value_get_schar (const GValue *value);
|
||||||
@ -246,11 +245,9 @@ gchar* g_strdup_value_contents (const GValue *value);
|
|||||||
|
|
||||||
void g_value_take_string (GValue *value,
|
void g_value_take_string (GValue *value,
|
||||||
gchar *v_string);
|
gchar *v_string);
|
||||||
#ifndef G_DISABLE_DEPRECATED
|
|
||||||
GLIB_DEPRECATED_FOR(g_value_take_string)
|
GLIB_DEPRECATED_FOR(g_value_take_string)
|
||||||
void g_value_set_string_take_ownership (GValue *value,
|
void g_value_set_string_take_ownership (GValue *value,
|
||||||
gchar *v_string);
|
gchar *v_string);
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* humpf, need a C representable type name for G_TYPE_STRING */
|
/* humpf, need a C representable type name for G_TYPE_STRING */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user