diff options
author | raveit <[email protected]> | 2013-07-09 13:48:41 +0200 |
---|---|---|
committer | raveit <[email protected]> | 2013-07-09 13:48:41 +0200 |
commit | 3a3d4125896f0704b3935b5a74baf063f31bedcf (patch) | |
tree | f921dcebc930dca68c8673804a37efcfcc11fb5f /src/gpm-control.c | |
parent | 4d842135ce677957aee8bd5bb47f875b0ece570a (diff) | |
download | mate-power-manager-3a3d4125896f0704b3935b5a74baf063f31bedcf.tar.bz2 mate-power-manager-3a3d4125896f0704b3935b5a74baf063f31bedcf.tar.xz |
switch to gnome-keyring
Diffstat (limited to 'src/gpm-control.c')
-rw-r--r-- | src/gpm-control.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gpm-control.c b/src/gpm-control.c index 71f857c..19b16db 100644 --- a/src/gpm-control.c +++ b/src/gpm-control.c @@ -42,7 +42,7 @@ #include <libupower-glib/upower.h> #ifdef WITH_KEYRING -#include <mate-keyring.h> +#include <gnome-keyring.h> #endif /* WITH_KEYRING */ #include "egg-debug.h" @@ -163,8 +163,8 @@ gpm_control_suspend (GpmControl *control, GError **error) GpmScreensaver *screensaver; guint32 throttle_cookie = 0; #ifdef WITH_KEYRING - gboolean lock_mate_keyring; - MateKeyringResult keyres; + gboolean lock_gnome_keyring; + GnomeKeyringResult keyres; #endif /* WITH_KEYRING */ #ifdef WITH_SYSTEMD_SLEEP GError *dbus_error = NULL; @@ -186,10 +186,10 @@ gpm_control_suspend (GpmControl *control, GError **error) #ifdef WITH_KEYRING /* we should perhaps lock keyrings when sleeping #375681 */ - lock_mate_keyring = g_settings_get_boolean (control->priv->settings, GPM_SETTINGS_LOCK_KEYRING_SUSPEND); - if (lock_mate_keyring) { - keyres = mate_keyring_lock_all_sync (); - if (keyres != MATE_KEYRING_RESULT_OK) + lock_gnome_keyring = g_settings_get_boolean (control->priv->settings, GPM_SETTINGS_LOCK_KEYRING_SUSPEND); + if (lock_gnome_keyring) { + keyres = gnome_keyring_lock_all_sync (); + if (keyres != GNOME_KEYRING_RESULT_OK) egg_warning ("could not lock keyring"); } #endif /* WITH_KEYRING */ @@ -274,8 +274,8 @@ gpm_control_hibernate (GpmControl *control, GError **error) GpmScreensaver *screensaver; guint32 throttle_cookie = 0; #ifdef WITH_KEYRING - gboolean lock_mate_keyring; - MateKeyringResult keyres; + gboolean lock_gnome_keyring; + GnomeKeyringResult keyres; #endif /* WITH_KEYRING */ #ifdef WITH_SYSTEMD_SLEEP @@ -298,10 +298,10 @@ gpm_control_hibernate (GpmControl *control, GError **error) #ifdef WITH_KEYRING /* we should perhaps lock keyrings when sleeping #375681 */ - lock_mate_keyring = g_settings_get_boolean (control->priv->settings, GPM_SETTINGS_LOCK_KEYRING_HIBERNATE); - if (lock_mate_keyring) { - keyres = mate_keyring_lock_all_sync (); - if (keyres != MATE_KEYRING_RESULT_OK) { + lock_gnome_keyring = g_settings_get_boolean (control->priv->settings, GPM_SETTINGS_LOCK_KEYRING_HIBERNATE); + if (lock_gnome_keyring) { + keyres = gnome_keyring_lock_all_sync (); + if (keyres != GNOME_KEYRING_RESULT_OK) { egg_warning ("could not lock keyring"); } } |