[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
[ Version ( deprecated = true , deprecated_since = "4.18.1" , since = "4.8" ) ]
public PanelImage.from_pixbuf (Pixbuf? pixbuf)
Warning: PanelImage.from_pixbuf is deprecated since 4.18.1.
Creates a new PanelImage displaying pixbuf.
Use Image.from_pixbuf instead.
PanelImage will add its own reference rather than adopting yours. You don't need to scale the pixbuf to the correct size, the PanelImage will take care of that based on the allocation of the widget or the size set with set_size.
| pixbuf |
a Pixbuf, or null. |
|
a newly created XfcePanelImage widget. |