auto generate the init function
there's no need to automatically bind it
This commit is contained in:
parent
447c324f44
commit
e6d440a1a4
|
@ -42,4 +42,4 @@ name = "libhandy-1"
|
|||
version = "1"
|
||||
|
||||
[package.metadata.system-deps.libhandy_1.feature-versions]
|
||||
v1_0 = "1 "
|
||||
v1_0 = "1"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
use handy_sys;
|
||||
|
||||
pub fn init() {
|
||||
unsafe {
|
||||
handy_sys::hdy_init();
|
||||
}
|
||||
}
|
|
@ -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))]
|
||||
|
|
Loading…
Reference in a new issue