1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
pub use ffi;
#[doc(hidden)]
pub use gio;
#[doc(hidden)]
pub use gtk;

/// Asserts that this is the main thread and `gtk::init` has been called.
macro_rules! assert_initialized_main_thread {
    () => {
        if !::gtk::is_initialized_main_thread() {
            if ::gtk::is_initialized() {
                panic!("libpanel may only be used from the main thread.");
            } else {
                panic!("Gtk has to be initialized before using libpanel.");
            }
        }
    };
}

macro_rules! skip_assert_initialized {
    () => {};
}

#[allow(unused_imports)]
#[allow(clippy::let_and_return)]
#[allow(clippy::type_complexity)]
mod auto;

pub use auto::functions::*;
pub use auto::*;

pub mod builders {
    pub use crate::auto::builders::*;
}
pub mod prelude;
pub mod subclass;

mod save_delegate;