Yoda/src/browser/main/tab/page/navigation/bookmark/mod.rs
2024-09-24 22:27:04 +03:00

23 lines
428 B
Rust

use gtk::Button;
pub struct Bookmark {
widget: Button,
}
impl Bookmark {
// Construct
pub fn new() -> Bookmark {
Self {
widget: Button::builder()
.icon_name("starred-symbolic")
.tooltip_text("Bookmark")
.sensitive(false)
.build(),
}
}
// Getters
pub fn widget(&self) -> &Button {
&self.widget
}
}