draft pin tab feature

This commit is contained in:
yggverse 2024-09-23 15:44:33 +03:00
parent 4b78ccb779
commit f2427c453e
8 changed files with 64 additions and 20 deletions

View file

@ -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 }