Re: where did the _construct functions go?



On Wednesday, August 01, 2001 at 11:45, Tim Janik wrote:
> 
> > E.g. if you have subclassed GtkButton, and want to use a stock
> > image by default, you can't use gtk_button_new_from_stock because
> > that would create a GtkButton instance. It would be necessary to
> > do g_type_create_instance(MY_BUTTON_TYPE) then
> > gtk_button_construct_from_stock. The latter function does not
> > yet exist.
[..]
> no, we could get rid of the _construct variants because you can
> generically create all objects with g_object_new() or, for LBs,
> with g_object_newv() now. if you want/need to, you can pass in
> any construct properties in to these function.

Thanks for the info (your original mail from aug last year was very
helpful).

Does this mean that gtkbutton.c is unfinished - that its
construction/new-function stuff need to be rewritten?

Oskar Liljeblad (osk hem passagen se)




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]