mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
Redo (and complete) movement of all pointer types into pointer_data in the GtkArg union
This commit is contained in:
parent
f57e0ba8b1
commit
e144ff2bb5
@ -524,7 +524,7 @@ gtk_arg_copy (GtkArg *src_arg,
|
||||
dest_arg->d = src_arg->d;
|
||||
|
||||
if (src_arg->type == GTK_TYPE_STRING)
|
||||
dest_arg->d.string_data = g_strdup (src_arg->d.string_data);
|
||||
dest_arg->d.pointer_data = g_strdup (src_arg->d.pointer_data);
|
||||
|
||||
return dest_arg;
|
||||
}
|
||||
|
@ -106,9 +106,7 @@ struct _GtkArg
|
||||
gulong ulong_data;
|
||||
gfloat float_data;
|
||||
gdouble double_data;
|
||||
gchar *string_data;
|
||||
gpointer pointer_data;
|
||||
GtkObject *object_data;
|
||||
struct {
|
||||
GtkCallbackMarshal marshal;
|
||||
gpointer data;
|
||||
@ -141,14 +139,14 @@ struct _GtkArg
|
||||
#define GTK_VALUE_ULONG(a) ((a).d.ulong_data)
|
||||
#define GTK_VALUE_FLOAT(a) ((a).d.float_data)
|
||||
#define GTK_VALUE_DOUBLE(a) ((a).d.double_data)
|
||||
#define GTK_VALUE_STRING(a) ((a).d.string_data)
|
||||
#define GTK_VALUE_STRING(a) ((a).d.pointer_data)
|
||||
#define GTK_VALUE_ENUM(a) ((a).d.int_data)
|
||||
#define GTK_VALUE_FLAGS(a) ((a).d.int_data)
|
||||
#define GTK_VALUE_BOXED(a) ((a).d.pointer_data)
|
||||
#define GTK_VALUE_FOREIGN(a) ((a).d.foreign_data)
|
||||
#define GTK_VALUE_CALLBACK(a) ((a).d.callback_data)
|
||||
#define GTK_VALUE_ARGS(a) ((a).d.args_data)
|
||||
#define GTK_VALUE_OBJECT(a) ((a).d.object_data)
|
||||
#define GTK_VALUE_OBJECT(a) ((a).d.pointer_data)
|
||||
#define GTK_VALUE_POINTER(a) ((a).d.pointer_data)
|
||||
#define GTK_VALUE_SIGNAL(a) ((a).d.signal_data)
|
||||
#define GTK_VALUE_C_CALLBACK(a) ((a).d.c_callback_data)
|
||||
|
Loading…
Reference in New Issue
Block a user