1
0
Fork 0
mirror of synced 2024-05-09 23:12:29 +12:00
czkawka/czkawka_gui/src/gui_about.rs
2021-01-24 12:01:02 +01:00

28 lines
831 B
Rust

use gtk::prelude::*;
#[derive(Clone)]
pub struct GUIAbout {
pub about_dialog: gtk::AboutDialog,
pub button_repository: gtk::Button,
pub button_donation: gtk::Button,
pub button_instruction: gtk::Button,
}
impl GUIAbout {
pub fn create_from_builder(builder: &gtk::Builder) -> Self {
let about_dialog: gtk::AboutDialog = builder.get_object("about_dialog").unwrap();
let button_repository: gtk::Button = builder.get_object("button_repository").unwrap();
let button_donation: gtk::Button = builder.get_object("button_donation").unwrap();
let button_instruction: gtk::Button = builder.get_object("button_instruction").unwrap();
Self {
about_dialog,
button_repository,
button_donation,
button_instruction,
}
}
}