summaryrefslogtreecommitdiff
path: root/src/backends/meta-idle-monitor.c
diff options
context:
space:
mode:
authorJonas Ã…dahl <jadahl@gmail.com>2019-09-16 16:17:48 +0200
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2019-09-16 18:08:18 +0000
commit321ab3b367812a3bc8589c488d790ac9607e24e0 (patch)
tree025ff01558697481882404a4fe0dc79698bc1c27 /src/backends/meta-idle-monitor.c
parent4d0869e2060034db98ae68c85aaa52461eadad6f (diff)
downloadmutter-321ab3b367812a3bc8589c488d790ac9607e24e0.tar.gz
idle-monitor: Make helper function static
It wasn't used outside the file, so no reason to not have it static. https://gitlab.gnome.org/GNOME/mutter/merge_requests/799
Diffstat (limited to 'src/backends/meta-idle-monitor.c')
-rw-r--r--src/backends/meta-idle-monitor.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backends/meta-idle-monitor.c b/src/backends/meta-idle-monitor.c
index e83d6c778..de1c7e0ba 100644
--- a/src/backends/meta-idle-monitor.c
+++ b/src/backends/meta-idle-monitor.c
@@ -54,8 +54,8 @@ static GParamSpec *obj_props[PROP_LAST];
G_DEFINE_TYPE (MetaIdleMonitor, meta_idle_monitor, G_TYPE_OBJECT)
-void
-_meta_idle_monitor_watch_fire (MetaIdleMonitorWatch *watch)
+static void
+meta_idle_monitor_watch_fire (MetaIdleMonitorWatch *watch)
{
MetaIdleMonitor *monitor;
guint id;
@@ -324,7 +324,7 @@ idle_monitor_dispatch_timeout (GSource *source,
if (ready_time > now)
return G_SOURCE_CONTINUE;
- _meta_idle_monitor_watch_fire (watch);
+ meta_idle_monitor_watch_fire (watch);
g_source_set_ready_time (watch->timeout_source, -1);
return G_SOURCE_CONTINUE;
@@ -511,7 +511,7 @@ meta_idle_monitor_reset_idletime (MetaIdleMonitor *monitor)
if (watch->timeout_msec == 0)
{
- _meta_idle_monitor_watch_fire ((MetaIdleMonitorWatch *) watch);
+ meta_idle_monitor_watch_fire ((MetaIdleMonitorWatch *) watch);
}
else
{