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.
23 lines
696 B
Rust
23 lines
696 B
Rust
use crate::fl;
|
|
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 }
|
|
}
|
|
|
|
pub fn update_language(&self) {
|
|
self.button_settings.set_tooltip_text(Some(&fl!("header_setting_button_tooltip")));
|
|
self.button_app_info.set_tooltip_text(Some(&fl!("header_about_button_tooltip")));
|
|
}
|
|
}
|