mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
complete widget submodule refactory
This commit is contained in:
parent
e45b7f0a4a
commit
1e42a75f2e
29 changed files with 585 additions and 145 deletions
20
src/browser/main/tab/label/pin/widget.rs
Normal file
20
src/browser/main/tab/label/pin/widget.rs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
pub struct Pin {
|
||||
gtk: gtk::Image,
|
||||
}
|
||||
|
||||
impl Pin {
|
||||
// Construct
|
||||
pub fn new() -> Pin {
|
||||
let gtk = gtk::Image::builder()
|
||||
.icon_name("view-pin-symbolic")
|
||||
.visible(false) //@TODO
|
||||
.build();
|
||||
|
||||
Self { gtk }
|
||||
}
|
||||
|
||||
// Getters
|
||||
pub fn gtk(&self) -> >k::Image {
|
||||
&self.gtk
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue