mirror of https://github.com/YGGverse/Yoda.git
yggverse
2 months ago
2 changed files with 30 additions and 14 deletions
@ -1,10 +1,18 @@ |
|||||||
use gtk::Image; |
use gtk::Image; |
||||||
|
|
||||||
pub fn new() -> Image |
pub fn new( |
||||||
|
visible : bool |
||||||
|
) -> Image |
||||||
{ |
{ |
||||||
let pin = Image::builder().icon_name( |
return Image::builder() |
||||||
|
|
||||||
|
.icon_name( |
||||||
"view-pin-symbolic" |
"view-pin-symbolic" |
||||||
).build(); |
) |
||||||
|
|
||||||
|
.visible( |
||||||
|
visible |
||||||
|
) |
||||||
|
|
||||||
return pin; |
.build(); |
||||||
} |
} |
Loading…
Reference in new issue