Re: gobject.c (g_value_set_object)
- From: Owen Taylor <otaylor redhat com>
- To: gtk-devel-list gnome org
- Cc: Hans Breuer <hans breuer org>
- Subject: Re: gobject.c (g_value_set_object)
- Date: 24 May 2001 08:53:13 -0400
Hans Breuer <hans breuer org> writes:
> 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).
> 
> breaks the Gtk build (on win32 with msvc) with the following message:
> 
> gtkaccellabel.c(167) : error C4047: 'function' : 'void ** ' differs in
> levels of indirection from 'struct _GObject *'
> 
> [25 times more in gtk]
> 
> changing the prototype to take a gpointer and not a gpointer* :
> 
> void
> g_value_set_object (GValue   *value,
> 		    gpointer  *v_object)
> 
> to:
> 
> void
> g_value_set_object (GValue   *value,
> 		    gpointer  v_object)
> 
> solves the problem. Is this ok to commit or is there another
> prefered sollution ?
I think I can safely say that the intent was gpointer not
gpointer**.
I've just committed the fix.
Regards,
                                        Owen 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]