Use instance_init() for composite templates
Drops the incorrect use of instance_init() within constructed.
This commit is contained in:
parent
5d8c6756e2
commit
f1fa94fca7
2 changed files with 7 additions and 2 deletions
|
|
@ -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" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue