4871016a3c
* 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)
20 lines
614 B
Rust
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: >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();
|
|
|
|
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 }
|
|
}
|
|
}
|