1
0
Fork 0
mirror of synced 2024-06-02 02:24:44 +12:00
czkawka/czkawka_gui/src/gui_header.rs
Rafał Mikrut 4871016a3c
Add option to not remove outdated cache entries (#472)
* Add option to not remove outdated cache entries

* Default duplicates cache size lowered to 512 KB

* Add some tooltips,
Add logic to opening cache/config folders

* Add option to clear cache files from outdated results(manually)
2021-11-30 12:45:09 +01:00

20 lines
614 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: &gtk::Builder) -> Self {
let button_settings: gtk::Button = builder.object("button_settings").unwrap();
let button_app_info: gtk::Button = builder.object("button_app_info").unwrap();
button_settings.set_tooltip_text(Some("Opens settings dialog"));
button_app_info.set_tooltip_text(Some("Opens dialog with info about app"));
Self { button_settings, button_app_info }
}
}