Overriding vfuncs with disabled vfunc API
- From: Armin Burgmeier <armin arbur net>
- To: gtkmm-list gnome org
- Subject: Overriding vfuncs with disabled vfunc API
- Date: Sun, 27 May 2007 14:57:32 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello list,
is it possible somehow (without creating a new GObject on my own) to
override vfuncs when implementing for example a custom Gtk::Container
with disabled vfunc API (GLIBMM_ENABLE_VFUNCS not defined)? The
documentation says the following:
"However, if you really need to override a _vfunc, for instance when
implementing a custom Gtk::TreeModel, you may directly access the
underlying GObject via the gobj() method."
However, I am not sure what I can do with the underlaying GObject in
this case. I can probably use it to get a pointer to the class struct
and register my vfunc there, but this is really hackish because if
another one does the same thing, it will overwrite my vfunc.
Armin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGWYA8hOtxKlDYm6cRAh0kAKCBI3w8rJYeNw5ziUWd91zOKfTOrQCg0Kul
7TyqUWYKdfWMziUNqOdV/to=
=icjG
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]