lists.zerezo.com
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
***BOGO*** Re: Questions about "Imendio's Vision on Gtk+"
- Date: Fri, 14 Mar 2008 16:30:14 +0100
- From: "Tommi Komulainen" <tommi.komulainen@xxxxxx>
- Subject: ***BOGO*** Re: Questions about "Imendio's Vision on Gtk+"
2008/3/14 Mikkel Kamstrup Erlandsen <mikkel.kamstrup@xxxxxxxxx>:
>
> 3) Exposing struct fields in GObject class structs? How else would one
> override methods? By calling a designated
> g_object_class_override_method(class, method, new_method); or something of
> the sort?
My thought has been that you could use a struct of function pointers,
including the ABI version number and the size within the struct and
pass that struct pointer to a g_object_class_override_methods()
function. I believe this is similar to what COM does and would allow
backwards compatible implementation, however ugly it would turn out to
be.
However I think the idea was to continue exposing function pointers in
class structs and just add $ENOUGH extra slots for future expansion.
--
Tommi Komulainen tommi.komulainen@xxxxxx
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-devel-list