mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
draft pin tab feature
This commit is contained in:
parent
4b78ccb779
commit
f2427c453e
8 changed files with 64 additions and 20 deletions
|
|
@ -4,10 +4,10 @@ pub struct Pin {
|
|||
|
||||
impl Pin {
|
||||
// Construct
|
||||
pub fn new() -> Pin {
|
||||
pub fn new(is_pinned: bool) -> Pin {
|
||||
let image = gtk::Image::builder()
|
||||
.icon_name("view-pin-symbolic")
|
||||
.visible(false) //@TODO
|
||||
.visible(is_pinned)
|
||||
.build();
|
||||
|
||||
Self { image }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue