Use instance_init() for composite templates

Drops the incorrect use of instance_init() within
constructed.
This commit is contained in:
Christopher Davis 2021-01-13 23:05:45 -08:00
parent 5d8c6756e2
commit f1fa94fca7
2 changed files with 7 additions and 2 deletions

View file

@ -83,11 +83,13 @@ mod imp {
// CompositeTemplate macro to bind all children at once.
Self::bind_template_children(klass);
}
fn instance_init(obj: &glib::subclass::InitializingObject<Self::Type>) {
obj.init_template();
}
}
impl ObjectImpl for IvWindow {
fn constructed(&self, obj: &Self::Type) {
obj.init_template();
self.parent_constructed(obj);
if config::PROFILE == ".Devel" {