[gnome-power-manager] Remove the 'interactive' option for power actions



commit fe686eb57393a1410d6f3cc49694f6040d80ad6b
Author: Richard Hughes <richard hughsie com>
Date:   Mon Mar 7 13:47:05 2011 +0000

    Remove the 'interactive' option for power actions

 src/gpm-common.h  |    2 +-
 src/gpm-manager.c |    3 ---
 2 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/gpm-common.h b/src/gpm-common.h
index b540c05..58d5aaf 100644
--- a/src/gpm-common.h
+++ b/src/gpm-common.h
@@ -145,9 +145,9 @@ typedef enum {
 	GPM_ACTION_POLICY_SUSPEND,
 	GPM_ACTION_POLICY_SHUTDOWN,
 	GPM_ACTION_POLICY_HIBERNATE,
-	GPM_ACTION_POLICY_INTERACTIVE,
 	GPM_ACTION_POLICY_NOTHING
 } GpmActionPolicy;
+
 #define	GPM_COLOR_WHITE			0xffffff
 #define	GPM_COLOR_BLACK			0x000000
 #define	GPM_COLOR_RED			0xff0000
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index 0c79aa6..9dbfda8 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -780,9 +780,6 @@ gpm_manager_perform_policy (GpmManager  *manager, const gchar *policy_key, const
 		g_debug ("shutting down, reason: %s", reason);
 		gpm_control_shutdown (manager->priv->control, NULL);
 
-	} else if (policy == GPM_ACTION_POLICY_INTERACTIVE) {
-		g_debug ("logout, reason: %s", reason);
-		gpm_manager_logout (manager);
 	} else {
 		g_warning ("unknown action %i", policy);
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]