When creating a subclass via the glib::wrapper
macro, it turns out that only the trait methods are extended from the parent classes. Methods “directly” implemented from the parent class cannot be invoked from the subclass.
For instance, the set_interactive_debugging
method is implemented by gtk::Window
. When creating a subclass as follows, the method is not available from the subclass:
wrapper! {
pub struct Window(ObjectSubclass<WindowPriv>)
@extends gtk::Window, gtk::Bin, gtk::Container, gtk::Widget, @implements gtk::Buildable;
}
How do we make these parent methods available to subclass? Is there a helper macro?