Top | ![]() |
![]() |
![]() |
![]() |
XAppStatusIconMonitorXAppStatusIconMonitor — Looks for XAppStatusIcons on DBUS and communicates info to an applet to represent the icons. |
The XAppStatusIconMonitor is intended to be utilized by some status applet to display info about an app.
The simplest way to use is to make a new instance of this monitor, and connect to the “icon-added” and “icon-removed” signals. The received object for both of these signals is an XAppStatusIconInterfaceProxy. It represents an application's XAppStatusIcon, and has properties available for describing the icon name, tooltip, label and visibility.
The proxy also provides methods to handle clicks, which can be called by the applet, to request that the app display its menu.
XAppStatusIconMonitor *
xapp_status_icon_monitor_new (void
);
Creates a new monitor.
Since: 1.6
GList *
xapp_status_icon_monitor_list_icons (XAppStatusIconMonitor *monitor
);
List known icon proxies.
Since: 1.6
#define XAPP_TYPE_STATUS_ICON_MONITOR (xapp_status_icon_monitor_get_type ())
“icon-added”
signalvoid user_function (XAppStatusIconMonitor *monitor, XAppStatusIconInterfaceProxy *proxy, gpointer user_data)
This signal is emitted by the monitor when it has discovered a new XAppStatusIcon on the bus.
monitor |
||
proxy |
the interface proxy for the XAppStatusIcon that has been added. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
“icon-removed”
signalvoid user_function (XAppStatusIconMonitor *monitor, XAppStatusIconInterfaceProxy *proxy, gpointer user_data)
This signal is emitted by the monitor when an XAppStatusIcon has disappeared from the bus.
monitor |
||
proxy |
the XAppStatusIcon proxy that has been removed. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action