diff options
author | Ted Gould <ted@gould.cx> | 2010-03-16 16:16:00 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-16 16:16:00 -0500 |
commit | 0b1551709e115304dadfecc6c4224be8545dfcce (patch) | |
tree | c372e266cf77114a4adc0ed7352aeba3eadcbf11 | |
parent | 9bf67d563e8b819364327c1635095ea885faf543 (diff) | |
download | ayatana-indicator-session-0b1551709e115304dadfecc6c4224be8545dfcce.tar.gz ayatana-indicator-session-0b1551709e115304dadfecc6c4224be8545dfcce.tar.bz2 ayatana-indicator-session-0b1551709e115304dadfecc6c4224be8545dfcce.zip |
Adding a function for updating the logout menuitem.
-rw-r--r-- | src/lock-helper.c | 11 | ||||
-rw-r--r-- | src/lock-helper.h | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/lock-helper.c b/src/lock-helper.c index 20149ab..4b57f19 100644 --- a/src/lock-helper.c +++ b/src/lock-helper.c @@ -231,3 +231,14 @@ lock_screen_setup (gpointer data) return FALSE; } +void +lock_screen_update_item (DbusmenuMenuitem * mi) +{ + if (gconf_client == NULL) { + gconf_client = gconf_client_get_default(); + } + + + + +} diff --git a/src/lock-helper.h b/src/lock-helper.h index 37f1448..1d707d8 100644 --- a/src/lock-helper.h +++ b/src/lock-helper.h @@ -31,4 +31,6 @@ gboolean will_lock_screen (void); void lock_screen (DbusmenuMenuitem * mi, guint timestamp, gpointer data); gboolean lock_screen_setup (gpointer data); +void lock_screen_update_item (DbusmenuMenuitem * mi); + #endif /* LOCK_HELPER_H__ */ |