Re: About GtkType



"Oleg N. Mayboroda" <onm sparc spb su> writes:

> Hello.
> I have a question about  section "Types" from Gtk documentation.
> All macroses and functions of this section are marked as deprecated,
> exclude
> gtk_type_class ().
> Question:
> Is it mistake and gtk_type_class () should be marked as deprecated too
> and should not be used in newly-written code?

No, it's not a mistake. While a wouldn't _recommmend_ using gtk_type_class(),
it doesn't have a replacement in libgobject, since it doesn't work for
dynamic types. (You have to choose between g_type_class_ref() and 
g_type_class_peek().)

Regards,
                                        Owen



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