mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
29 lines
543 B
Rust
29 lines
543 B
Rust
use gtk::Button;
|
|
|
|
pub struct Reload {
|
|
widget: Button,
|
|
}
|
|
|
|
impl Reload {
|
|
// Construct
|
|
pub fn new() -> Reload {
|
|
Self {
|
|
widget: Button::builder()
|
|
.action_name("win.tab_page_reload")
|
|
.icon_name("view-refresh-symbolic")
|
|
.tooltip_text("Reload")
|
|
.sensitive(false)
|
|
.build(),
|
|
}
|
|
}
|
|
|
|
// Actions
|
|
pub fn update(&self) {
|
|
// @TODO
|
|
}
|
|
|
|
// Getters
|
|
pub fn widget(&self) -> &Button {
|
|
&self.widget
|
|
}
|
|
}
|