PanelImage.from_source


Description:

[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
[ Version ( deprecated = true , deprecated_since = "4.18.1" , since = "4.8" ) ]
public PanelImage.from_source (string? source)

Warning: PanelImage.from_source is deprecated since 4.18.1.

Creates a new PanelImage displaying source.

Note:

PanelImage will detect if source points to an absolute file or it and icon-name. For icon-names it will also look for files in the pixbuf folder or strip the extensions, which makes it suitable for usage with icon keys in .desktop files.

Parameters:

source

source of the image. This can be an absolute path or an icon-name or null.

Returns:

a newly created XfcePanelImage widget.