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
39
40
41
42
43
44
45
46
47
#![deny(
    missing_docs,
    trivial_casts,
    trivial_numeric_casts,
    unsafe_code,
    unstable_features,
    unused_import_braces,
    unused_qualifications
)]

//! Common functionality for the ommui applications.

#[macro_use]
extern crate log;
#[macro_use]
extern crate relm;
#[macro_use]
extern crate relm_derive;
#[macro_use]
extern crate serde;
#[macro_use]
extern crate snafu;

pub mod branding;
pub mod error;
pub mod export;
pub mod geometry;
pub mod locale;
pub mod pixbufs;
pub mod statistics;
pub mod theme;
pub mod udisks;
pub mod ui;

pub use branding::Branding;
pub use error::Error;
pub use ommui_data::XTr;
pub use pixbufs::{LoadFromBytes, LoadPixbufs, Pixbufs};

/// Default spacing for gtk-based widgets such as boxes.
pub const SPACING: i32 = 5;

/// Default padding for gtk-based widgets such as boxes.
pub const PADDING: u32 = 2;

/// The result type used thoughout this crate.
pub type Result<T, E = Error> = std::result::Result<T, E>;