[gnome-session] [gsm] Return RESTART_IF_RUNNING if restart is undefined



commit 24c38dd23c9d22a0bc281b02d2925c0a9ee165e1
Author: Caolan McNamara <caolanm redhat com>
Date:   Wed Jul 15 00:47:01 2009 +0100

    [gsm] Return RESTART_IF_RUNNING if restart is undefined
    
    This is a saner behavior considering that we're now honouring the
    RESTART_NEVER hint a not saving clients with such restart hint.

 gnome-session/gsm-xsmp-client.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-session/gsm-xsmp-client.c b/gnome-session/gsm-xsmp-client.c
index 750daa6..bc3f77e 100644
--- a/gnome-session/gsm-xsmp-client.c
+++ b/gnome-session/gsm-xsmp-client.c
@@ -905,12 +905,12 @@ xsmp_get_restart_style_hint (GsmClient *client)
         GsmClientRestartStyle hint;
 
         g_debug ("GsmXSMPClient: getting restart style");
-        hint = GSM_CLIENT_RESTART_NEVER;
+        hint = GSM_CLIENT_RESTART_IF_RUNNING;
 
         prop = find_property (GSM_XSMP_CLIENT (client), SmRestartStyleHint, NULL);
 
         if (!prop || strcmp (prop->type, SmCARD8) != 0) {
-                return GSM_CLIENT_RESTART_NEVER;
+                return GSM_CLIENT_RESTART_IF_RUNNING;
         }
 
         switch (((unsigned char *)prop->vals[0].value)[0]) {



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