[mutter/gnome-3-32] idle-monitor: Use G_SOURCE_CONTINUE instead of TRUE
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-32] idle-monitor: Use G_SOURCE_CONTINUE instead of TRUE
- Date: Tue, 7 May 2019 14:02:57 +0000 (UTC)
commit 6933ce0976bc09aca57b1bce7c56221e03c8a5d1
Author: Jonas Ådahl <jadahl gmail com>
Date: Tue Apr 16 18:06:54 2019 +0200
idle-monitor: Use G_SOURCE_CONTINUE instead of TRUE
Returning TRUE is confusing, as it doesn't carry any relevant meaning.
Use G_SOURCE_CONTINUE to make it clearer that the source is here to
stay.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/543
src/backends/meta-idle-monitor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/backends/meta-idle-monitor.c b/src/backends/meta-idle-monitor.c
index 6673fe06c..6b8d36be9 100644
--- a/src/backends/meta-idle-monitor.c
+++ b/src/backends/meta-idle-monitor.c
@@ -320,7 +320,7 @@ idle_monitor_dispatch_timeout (GSource *source,
_meta_idle_monitor_watch_fire (watch);
g_source_set_ready_time (watch->timeout_source, -1);
- return TRUE;
+ return G_SOURCE_CONTINUE;
}
static GSourceFuncs idle_monitor_source_funcs = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]