GtkStatusIcon::set_from_pixbuf
void set_from_pixbuf(GdkPixbuf pixbuf);
Set icon image of the GtkStatusIcon using the supplied GdkPixbuf. The icon image should easily identify the state of the item being monitored by the user.
$tray = new GtkStatusIcon();
$pixbuf = GdkPixbuf::new_from_file('icon.png');
$tray->set_from_pixbuf($pixbuf);
|
See also: GtkStatusIcon::new_from_pixbuf()