Re: About GtkType
- From: Owen Taylor <otaylor redhat com>
- To: "Oleg N. Mayboroda" <onm sparc spb su>
- Cc: gtk-devel-list gtk org
- Subject: Re: About GtkType
- Date: 10 Dec 2001 16:11:18 -0500
"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]