From 83cd2f620471f57e2006ec9e4351844f8426befc Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 7 Sep 2018 12:18:44 +0100 Subject: [PATCH] gvolumemonitor: Document the need to run a main loop Signed-off-by: Philip Withnall https://gitlab.gnome.org/GNOME/glib/issues/1119 --- gio/gvolumemonitor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gio/gvolumemonitor.c b/gio/gvolumemonitor.c index cb22f8927..1718bb6a5 100644 --- a/gio/gvolumemonitor.c +++ b/gio/gvolumemonitor.c @@ -43,6 +43,9 @@ * [thread-default-context aware][g-main-context-push-thread-default], * and so should not be used other than from the main thread, with no * thread-default-context active. + * + * In order to receive updates about volumes and mounts monitored through GVFS, + * a main loop must be running. **/ G_DEFINE_TYPE (GVolumeMonitor, g_volume_monitor, G_TYPE_OBJECT)