diff options
author | Javier <dev.git@javispedro.com> | 2016-08-07 00:08:06 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2016-08-07 00:21:26 +0200 |
commit | ca2d031cddf6948f646a67305619e556c4986f61 (patch) | |
tree | 9c0aebbe326a9bae52f52d62a15d4758a8857207 /libtopmenu-client/topmenu-monitor.h | |
parent | 8e366dc6d198d4942a036f42df5074f97a6d206b (diff) | |
download | topmenu-gtk-ca2d031cddf6948f646a67305619e556c4986f61.tar.gz topmenu-gtk-ca2d031cddf6948f646a67305619e556c4986f61.zip |
fix potential client crash after applet crash
Diffstat (limited to 'libtopmenu-client/topmenu-monitor.h')
-rw-r--r-- | libtopmenu-client/topmenu-monitor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libtopmenu-client/topmenu-monitor.h b/libtopmenu-client/topmenu-monitor.h index 1128d6d..ed0cae3 100644 --- a/libtopmenu-client/topmenu-monitor.h +++ b/libtopmenu-client/topmenu-monitor.h @@ -31,6 +31,8 @@ G_BEGIN_DECLS #define TOPMENU_IS_MONITOR_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE((c), TOPMENU_TYPE_MONITOR)) #define TOPMENU_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), TOPMENU_TYPE_MONITOR, TopMenuMonitorClass)) +/** The monitor object can be used to detect whether there is a TopMenu applet + on the current default display, and to be notified when the applet dies. */ typedef struct _TopMenuMonitor TopMenuMonitor; typedef struct _TopMenuMonitorClass TopMenuMonitorClass; typedef struct _TopMenuMonitorPrivate TopMenuMonitorPrivate; @@ -51,6 +53,8 @@ GType topmenu_monitor_get_type(void); TopMenuMonitor * topmenu_monitor_get_instance(void); +/** Returns TRUE if there is a TopMenu applet on the current default display. + Subscribe to the property notification signal to monitor changes. */ gboolean topmenu_monitor_is_topmenu_available(TopMenuMonitor * self); G_END_DECLS |