GtkStatusIcon::set_visible

void set_visible(bool visible);

Set visibility state of the GtkStatusIcon object. An invisible state is useful for applications that do not require the constant reporting of the current state to the user. An example would be an auto updater for an application, that only displays an icon when an update is available.

$tray = new GtkStatusIcon();
$tray->set_visible(false);

See also: get_visible()