mirror of https://github.com/qarmin/czkawka
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
831 B
Rust
28 lines
831 B
Rust
3 years ago
|
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: >k::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,
|
||
|
}
|
||
|
}
|
||
|
}
|