Remove widgets::init()

We don't need this since `TemplateChild` registers the type for
us now.
This commit is contained in:
Christopher Davis 2021-09-24 06:25:33 -07:00
parent e41acf0701
commit 3ec5ad42db
2 changed files with 0 additions and 11 deletions

View file

@ -31,7 +31,6 @@ use application::IvApplication;
fn main() { fn main() {
gtk::init().expect("Failed to initialize GTK."); gtk::init().expect("Failed to initialize GTK.");
libadwaita::init(); libadwaita::init();
widgets::init();
pretty_env_logger::init(); pretty_env_logger::init();
setlocale(LocaleCategory::LcAll, ""); setlocale(LocaleCategory::LcAll, "");

View file

@ -17,16 +17,6 @@
// //
// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-License-Identifier: GPL-3.0-or-later
use glib::prelude::*;
mod image_view; mod image_view;
pub use image_view::IvImageView; 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();
}