[gnome-settings-daemon] power: Use flag from gsm-presence-flag.h
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Use flag from gsm-presence-flag.h
- Date: Wed, 16 Jan 2013 13:49:20 +0000 (UTC)
commit abdf285a88ae73641d849644043c70611c208b1b
Author: Bastien Nocera <hadess hadess net>
Date: Wed Jan 16 13:36:01 2013 +0100
power: Use flag from gsm-presence-flag.h
plugins/power/gsd-power-manager.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index 8e678ef..1a30af9 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -39,6 +39,7 @@
#include <libgnome-desktop/gnome-idle-monitor.h>
#include "gsm-inhibitor-flag.h"
+#include "gsm-presence-flag.h"
#include "gpm-common.h"
#include "gpm-phone.h"
#include "gnome-settings-plugin.h"
@@ -2365,14 +2366,6 @@ up_client_changed_cb (UpClient *client, GsdPowerManager *manager)
do_lid_open_action (manager);
}
-typedef enum {
- SESSION_STATUS_CODE_AVAILABLE = 0,
- SESSION_STATUS_CODE_INVISIBLE,
- SESSION_STATUS_CODE_BUSY,
- SESSION_STATUS_CODE_IDLE,
- SESSION_STATUS_CODE_UNKNOWN
-} SessionStatusCode;
-
static const gchar *
idle_mode_to_string (GsdPowerIdleMode mode)
{
@@ -3126,7 +3119,7 @@ idle_is_session_idle (GsdPowerManager *manager)
}
g_variant_get (result, "u", &status);
- ret = (status == SESSION_STATUS_CODE_IDLE);
+ ret = (status == GSM_PRESENCE_STATUS_IDLE);
g_variant_unref (result);
return ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]