GtkStatusIcon::set_from_file

void set_from_file(string filepath);

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

$tray = new GtkStatusIcon();
$tray->set_from_file('icon.png');

See also: GtkStatusIcon::new_from_file()