Re: Questions about "Imendio's Vision on Gtk+"
- From: "Tommi Komulainen" <tommi komulainen iki fi>
- To: "Gtk+ Developers" <gtk-devel-list gnome org>
- Subject: Re: Questions about "Imendio's Vision on Gtk+"
- Date: Fri, 14 Mar 2008 16:30:14 +0100
2008/3/14 Mikkel Kamstrup Erlandsen <mikkel kamstrup gmail com>:
>
> 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 iki fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]