diff options
author | Ted Gould <ted@canonical.com> | 2009-10-07 18:24:02 -0400 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-10-07 18:24:02 -0400 |
commit | 378b3b0547b9b2f3e81fa4f76ebdf0c203110e03 (patch) | |
tree | eb3fd4426414b38df10a5e68da2480cdb7f99043 /src/lock-helper.h | |
parent | bbcd3463c32730a2c3ff0d85947e54d0a6672745 (diff) | |
parent | f90470486f601d8b29781652d21c9b4a19e49d42 (diff) | |
download | ayatana-indicator-session-378b3b0547b9b2f3e81fa4f76ebdf0c203110e03.tar.gz ayatana-indicator-session-378b3b0547b9b2f3e81fa4f76ebdf0c203110e03.tar.bz2 ayatana-indicator-session-378b3b0547b9b2f3e81fa4f76ebdf0c203110e03.zip |
Handling the locking of the screensaver so that we ensure
the screensaver is active before suspending. Also, we
throttle it to ensure it doesn't start until after suspend.
(LP: #444391)
Diffstat (limited to 'src/lock-helper.h')
-rw-r--r-- | src/lock-helper.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/lock-helper.h b/src/lock-helper.h new file mode 100644 index 0000000..b4a382e --- /dev/null +++ b/src/lock-helper.h @@ -0,0 +1,37 @@ +/* +A small helper for locking the screen. + +Copyright 2009 Canonical Ltd. + +Authors: + Ted Gould <ted@canonical.com> + +This program is free software: you can redistribute it and/or modify it +under the terms of the GNU General Public License version 3, as published +by the Free Software Foundation. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranties of +MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR +PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along +with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef LOCK_HELPER_H__ +#define LOCK_HELPER_H__ + +#include <libdbusmenu-glib/menuitem.h> + +typedef void (*gdm_autologin_cb_t) (void); + +void screensaver_throttle (gchar * reason); +void screensaver_unthrottle (void); + +gboolean will_lock_screen (void); +void lock_screen (DbusmenuMenuitem * mi, gpointer data); +gboolean lock_screen_setup (gpointer data); +void lock_screen_gdm_cb_set (gdm_autologin_cb_t cb); + +#endif /* LOCK_HELPER_H__ */ |