aboutsummaryrefslogtreecommitdiff
path: root/src/lock-helper.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-06 20:28:06 -0400
committerTed Gould <ted@canonical.com>2009-10-06 20:28:06 -0400
commitd6c6861081cd6133fd605bae27a9c199b41b1555 (patch)
tree9fea5e459c9e5fb9e5c4baa4f23312d41956cc9c /src/lock-helper.c
parentf6fc44d8020fb20200b961359ad581dade9e231b (diff)
downloadayatana-indicator-session-d6c6861081cd6133fd605bae27a9c199b41b1555.tar.gz
ayatana-indicator-session-d6c6861081cd6133fd605bae27a9c199b41b1555.tar.bz2
ayatana-indicator-session-d6c6861081cd6133fd605bae27a9c199b41b1555.zip
Setting up the callback
Diffstat (limited to 'src/lock-helper.c')
-rw-r--r--src/lock-helper.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lock-helper.c b/src/lock-helper.c
index 0df840e..e717968 100644
--- a/src/lock-helper.c
+++ b/src/lock-helper.c
@@ -10,6 +10,18 @@ static gboolean is_guest = FALSE;
static gdm_autologin_cb_t gdm_autologin_cb = NULL;
+/* Setting up a call back */
+void
+lock_screen_gdm_cb_set (gdm_autologin_cb_t cb)
+{
+ if (gdm_autologin_cb) {
+ g_warning("Already had a callback, setting up a new one...");
+ }
+
+ gdm_autologin_cb = cb;
+ return;
+}
+
/* This is our logic on whether the screen should be locked
or not. It effects everything else. */
gboolean