auto generate the init function

there's no need to automatically bind it
This commit is contained in:
Bilal Elmoussaoui 2020-09-08 21:36:13 +02:00
parent 447c324f44
commit e6d440a1a4
5 changed files with 8 additions and 14 deletions

View file

@ -42,4 +42,4 @@ name = "libhandy-1"
version = "1"
[package.metadata.system-deps.libhandy_1.feature-versions]
v1_0 = "1 "
v1_0 = "1"

View file

@ -84,10 +84,6 @@ manual = [
[[object]]
name = "Handy.*"
status = "generate"
[[object.function]]
name = "init"
# generated manually
ignore = true
[[object.function]]
name = "string_utf8_truncate"
ignore = true

View file

@ -24,3 +24,10 @@ pub fn get_enable_animations<P: IsA<gtk::Widget>>(widget: &P) -> bool {
))
}
}
pub fn init() {
assert_initialized_main_thread!();
unsafe {
handy_sys::hdy_init();
}
}

View file

@ -1,7 +0,0 @@
use handy_sys;
pub fn init() {
unsafe {
handy_sys::hdy_init();
}
}

View file

@ -42,8 +42,6 @@ macro_rules! skip_assert_initialized {
pub mod subclass;
pub use glib::Error;
mod functions;
pub use functions::*;
pub mod prelude;
pub use prelude::*;
#[cfg_attr(feature = "cargo-clippy", allow(too_many_arguments))]