Re: Why do constructors return GtkWidget?

2009-11-04 Thread Colin Walters
On Wed, Nov 4, 2009 at 6:33 PM, Tristan Van Berkom wrote: > > Maybe a better direction to push would be, adding some gtk-doc annotations > to make sure the resulting gobject-introspection data is more rich and > accurate ? Introspection currently assumes any function matching foo_bar_new.* is a c

Re: Why do constructors return GtkWidget?

2009-11-04 Thread Tristan Van Berkom
On Wed, Nov 4, 2009 at 4:11 PM, Andrew Paprocki wrote: > 2009/11/4 Sven Herzberg : >> In my opinion the GTK+ way is really nice (just compare it to GStreamers >> element factory, which behaves essentially the same way, just as >> GnomeCanvas' gnome_canvas_item_new() function). It's really nice to

Re: Why do constructors return GtkWidget?

2009-11-04 Thread Andrew Paprocki
2009/11/4 Sven Herzberg : > In my opinion the GTK+ way is really nice (just compare it to GStreamers > element factory, which behaves essentially the same way, just as > GnomeCanvas' gnome_canvas_item_new() function). It's really nice to get > those items returned as the generic type (but Cody told

Re: Why do constructors return GtkWidget?

2009-11-04 Thread Sven Herzberg
Hi, Am Mittwoch, den 04.11.2009, 06:23 +0100 schrieb Javier Jardón: > The question: why is it normal for GTK widget "constructors" to return > GtkWidget and not their real type? Cody perfectly replied to that already. > PD: If there is not technical reasons, maybe we can change this for > GTK+ 3