summaryrefslogtreecommitdiff
path: root/src/gpm-button.h
diff options
context:
space:
mode:
authorAnton V. Boyarshinov <[email protected]>2013-04-08 18:33:55 +0400
committerAnton V. Boyarshinov <[email protected]>2013-04-08 18:33:55 +0400
commitb19ce03f92d310d8fef5781ee3384572e6ae10f8 (patch)
treed88a75f60cf25e12189f0595828c0cb7c2606d77 /src/gpm-button.h
parentfd2ea04942aa4459eefecac1807e4b3107266e76 (diff)
downloadmate-power-manager-b19ce03f92d310d8fef5781ee3384572e6ae10f8.tar.bz2
mate-power-manager-b19ce03f92d310d8fef5781ee3384572e6ae10f8.tar.xz
add logind sleep ability
With upower 0.9.20, sleep and hybernate functions of upower declared deprecated. All applications should use logind for sleep/hybernate. So, there is an implementation of logind-powered sleep for mpm.
Diffstat (limited to 'src/gpm-button.h')
-rw-r--r--src/gpm-button.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpm-button.h b/src/gpm-button.h
index 8992007..7d60334 100644
--- a/src/gpm-button.h
+++ b/src/gpm-button.h
@@ -66,6 +66,9 @@ typedef struct
GType gpm_button_get_type (void);
GpmButton *gpm_button_new (void);
gboolean gpm_button_is_lid_closed (GpmButton *button);
+#ifdef WITH_SYSTEMD_SLEEP
+gboolean gpm_button_get_lid_closed ();
+#endif
gboolean gpm_button_reset_time (GpmButton *button);
G_END_DECLS