[gnome-flashback] screensaver: add missing function to GfListener
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] screensaver: add missing function to GfListener
- Date: Wed, 3 Aug 2016 23:06:41 +0000 (UTC)
commit 2858e9cd9394800d3e156b868e724d9a037012f7
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Aug 1 04:22:24 2016 +0300
screensaver: add missing function to GfListener
gnome-flashback/libscreensaver/gf-listener.c | 8 +++++++-
gnome-flashback/libscreensaver/gf-listener.h | 4 +++-
2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/gnome-flashback/libscreensaver/gf-listener.c b/gnome-flashback/libscreensaver/gf-listener.c
index 2b015e4..e56e1eb 100644
--- a/gnome-flashback/libscreensaver/gf-listener.c
+++ b/gnome-flashback/libscreensaver/gf-listener.c
@@ -476,7 +476,7 @@ gf_listener_set_enabled (GfListener *listener,
}
gboolean
-gf_listener_get_active (GfListener *listener)
+gf_listener_get_enabled (GfListener *listener)
{
return listener->enabled;
}
@@ -546,6 +546,12 @@ gf_listener_set_active (GfListener *listener,
}
gboolean
+gf_listener_get_active (GfListener *listener)
+{
+ return listener->enabled;
+}
+
+gboolean
gf_listener_set_idle (GfListener *listener,
gboolean idle)
{
diff --git a/gnome-flashback/libscreensaver/gf-listener.h b/gnome-flashback/libscreensaver/gf-listener.h
index e6b8575..f6ad09f 100644
--- a/gnome-flashback/libscreensaver/gf-listener.h
+++ b/gnome-flashback/libscreensaver/gf-listener.h
@@ -35,11 +35,13 @@ GfListener *gf_listener_new (void);
void gf_listener_set_enabled (GfListener *listener,
gboolean enabled);
-gboolean gf_listener_get_active (GfListener *listener);
+gboolean gf_listener_get_enabled (GfListener *listener);
gboolean gf_listener_set_active (GfListener *listener,
gboolean active);
+gboolean gf_listener_get_active (GfListener *listener);
+
gboolean gf_listener_set_idle (GfListener *listener,
gboolean idle);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]