Remove widgets::init()
We don't need this since `TemplateChild` registers the type for us now.
This commit is contained in:
parent
e41acf0701
commit
3ec5ad42db
2 changed files with 0 additions and 11 deletions
|
|
@ -17,16 +17,6 @@
|
|||
//
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
use glib::prelude::*;
|
||||
|
||||
mod image_view;
|
||||
|
||||
pub use image_view::IvImageView;
|
||||
|
||||
pub fn init() {
|
||||
// For each widget we use in a template,
|
||||
// we need to ensure the type is set up.
|
||||
// This is equivalent to doing g_type_ensure ()
|
||||
// in C.
|
||||
IvImageView::static_type();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue