From ca2d031cddf6948f646a67305619e556c4986f61 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 7 Aug 2016 00:08:06 +0200 Subject: fix potential client crash after applet crash --- libtopmenu-client/topmenu-monitor.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libtopmenu-client/topmenu-monitor.h') 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 -- cgit v1.2.3