GtkStatusIcon::get_pixbuf

GdkPixbuf get_pixbuf();

Get GdkPixbuf icon image of the object.

$tray = new GtkStatusIcon();
$pixbuf_in = GdkPixbuf::new_from_file('icon.png');
$tray->set_from_pixbuf($pixbuf);
$pixbuf_out = $tray->get_pixbuf();

See also: set_from_pixbuf()