GtkStatusIcon Constructor

GtkStatusIcon::new_from_file (string filepath);

Creates a new GtkStatusIcon using the supplied filepath. The icon image should easily identify the state of the item being monitored by the user.

This method must be called statically.

$tray = GtkStatusIcon::new_from_file('icon.png');

See also: set_from_file()