diff options
author | Jonas Ã…dahl <jadahl@gmail.com> | 2019-09-16 16:17:48 +0200 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-09-16 18:08:18 +0000 |
commit | 321ab3b367812a3bc8589c488d790ac9607e24e0 (patch) | |
tree | 025ff01558697481882404a4fe0dc79698bc1c27 | |
parent | 4d0869e2060034db98ae68c85aaa52461eadad6f (diff) | |
download | mutter-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
-rw-r--r-- | src/backends/meta-idle-monitor-private.h | 1 | ||||
-rw-r--r-- | src/backends/meta-idle-monitor.c | 8 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/backends/meta-idle-monitor-private.h b/src/backends/meta-idle-monitor-private.h index 93948b14b..cc08f8c8e 100644 --- a/src/backends/meta-idle-monitor-private.h +++ b/src/backends/meta-idle-monitor-private.h @@ -54,7 +54,6 @@ struct _MetaIdleMonitorClass GObjectClass parent_class; }; -void _meta_idle_monitor_watch_fire (MetaIdleMonitorWatch *watch); void meta_idle_monitor_reset_idletime (MetaIdleMonitor *monitor); #endif /* META_IDLE_MONITOR_PRIVATE_H */ 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 { |