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() |
||||||
"view-pin-symbolic" |
|
||||||
).build(); |
|
||||||
|
|
||||||
return pin; |
.icon_name( |
||||||
|
"view-pin-symbolic" |
||||||
|
) |
||||||
|
|
||||||
|
.visible( |
||||||
|
visible |
||||||
|
) |
||||||
|
|
||||||
|
.build(); |
||||||
} |
} |
Loading…
Reference in new issue