From: Damon Chaplin (damon@helixcode.com)
Date: Wed May 17 2000 - 06:29:58 EDT
Arnaud Charlet wrote:
>
> I would suggest to add a field named e.g "Real Class" in the widget properties
> (by the way, a read only field with the current widget class would also be
> useful in some cases, I can't find it right now).
>
> This would allow code generators to make use of new Gtk widgets more easily,
> while still using all the properties of the parent class.
>
> For instance, if a type MyCtree exists, I'd like to have Glade handle all the
> properties of Ctree, and let the code generator know that the actual/final
> type is MyCtree and not GtkCtree. Note that this option is not addressed by
> the custom widget, so should be considered seriousely.
Do you mean that the user would insert a GtkCTree into the interface, and set
the 'Real Class' to 'MyCtree'?
The source code output may be a problem. We could possibly use
widget = gtk_type_new (gtk_type_from_name ("MyCTree"))
but the type would have to be initialized before this was called.
Any arguments passed to construct the widget would be awkward as well.
Damon
+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to majordomo@ncis.pn.org
with the line "unsubscribe glade-devel" in the body of the message.
This archive was generated by hypermail 2b29 : Tue Aug 01 2000 - 19:28:38 EDT