
7 Jul
2007
7 Jul
'07
11:18 p.m.
On Sat, 2007-07-07 at 13:56 -0700, joel@...1709... wrote:
This surprised me a little as EditWidget is a subclass of Gtk::Window. EditWidget is cast into a void*, then in SPDesktop::getToplevel it's cast into GtkWindow*.
Uh, wow.
Can someone explain to me why EditWidget::getWindow returns a void* not a Gtk::Window*? why is the type thrown out? Am I missing something here? I'm very surprised that this series of casts works at all. I assume that the Gtk::Window class contains GtkWindow* as the first member. Shouldn't this be fixed?
Yes, please?
The right process for getting a GtkWindow * from a Gtk::Window should be to use Gtk::Window::gobj().
-mental