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  <timj@gtk.org>

        * 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).
This commit is contained in:
Tim Janik 2001-05-22 00:48:06 +00:00 committed by Tim Janik
parent 686e9b4645
commit fbb5eebbad
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
Tue May 22 02:46:13 2001 Tim Janik <timj@gtk.org>
* 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 <timj@gtk.org>
* gsignal.[hc] (g_signal_handler_is_connected): new function

View File

@ -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));

View File

@ -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,