From fbb5eebbad2dbd1d9eee662451098b0dece9b013 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Tue, 22 May 2001 00:48:06 +0000 Subject: [PATCH] make g_value_set_object() take a gpointer v_object so people don't need to Tue May 22 02:46:13 2001 Tim Janik * gobject.c (g_value_set_object): make g_value_set_object() take a gpointer v_object so people don't need to G_OBJECT() cast NULL pointers (C code convenience). --- gobject/ChangeLog | 6 ++++++ gobject/gobject.c | 4 ++-- gobject/gobject.h | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gobject/ChangeLog b/gobject/ChangeLog index 63f4057..24bf096 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,3 +1,9 @@ +Tue May 22 02:46:13 2001 Tim Janik + + * gobject.c (g_value_set_object): make g_value_set_object() + take a gpointer v_object so people don't need to G_OBJECT() + cast NULL pointers (C code convenience). + Mon May 14 01:49:01 2001 Tim Janik * gsignal.[hc] (g_signal_handler_is_connected): new function diff --git a/gobject/gobject.c b/gobject/gobject.c index 8117a5e..0315848 100644 --- a/gobject/gobject.c +++ b/gobject/gobject.c @@ -1439,8 +1439,8 @@ g_value_object_lcopy_value (const GValue *value, } void -g_value_set_object (GValue *value, - GObject *v_object) +g_value_set_object (GValue *value, + gpointer *v_object) { g_return_if_fail (G_VALUE_HOLDS_OBJECT (value)); diff --git a/gobject/gobject.h b/gobject/gobject.h index 6ebff62..849ae83 100644 --- a/gobject/gobject.h +++ b/gobject/gobject.h @@ -177,7 +177,7 @@ GClosure* g_cclosure_new_object_swap (GCallback callback_func, GClosure* g_closure_new_object (guint sizeof_closure, GObject *object); void g_value_set_object (GValue *value, - GObject *v_object); + gpointer *v_object); gpointer g_value_get_object (const GValue *value); GObject* g_value_dup_object (const GValue *value); guint g_signal_connect_object (gpointer instance, -- 2.7.4