b5f8d6b028
* Update to Gtk-rs 0.14
16 lines
455 B
Rust
16 lines
455 B
Rust
use gtk::prelude::*;
|
|
|
|
#[derive(Clone)]
|
|
pub struct GuiHeader {
|
|
pub button_settings: gtk::Button,
|
|
pub button_app_info: gtk::Button,
|
|
}
|
|
|
|
impl GuiHeader {
|
|
pub fn create_from_builder(builder: >k::Builder) -> Self {
|
|
let button_settings: gtk::Button = builder.object("button_settings").unwrap();
|
|
let button_app_info: gtk::Button = builder.object("button_app_info").unwrap();
|
|
Self { button_settings, button_app_info }
|
|
}
|
|
}
|