Re: Possible buglet in gtkcontainer.c
- From: Federico Mena Quintero <federico nuclecu unam mx>
- To: timj gtk org
- CC: gtkdev gimp org, gtk-devel-list redhat com
- Subject: Re: Possible buglet in gtkcontainer.c
- Date: Tue, 4 Aug 1998 13:24:41 -0400
> this is not a bug but intended behaviour, gtk_widget_get_type() returns a
> valid type id (that has been allocated already if GtkContainer is used, btw),
> and the arg system uses it to check the validity of the types that are passed
> to the type functions. the same applies to the gtk_signal_new() function btw
> (people tend to use GTK_TYPE_ENUM instead of GTK_TYPE_MY_EUNMERATION_TYPE on
> such occasions, and GTK_TYPE_ENUM is a completely *virtual* type).
> you can always (and the arg and signal systems need that to get the actuall
> type's argument size) retrive the corresponding base type with the
> GTK_FUNDAMENTAL_TYPE() macro.
Oh, I see. I just saw the implementation of gtk_object_get_type() :-)
Speaking of object arguments, how would I go about passing GdkColors
around?
Thanks for the explanation,
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]