Author: kelnos
Date: 2009-07-29 19:11:28 +0000 (Wed, 29 Jul 2009)
New Revision: 30415

Modified:
   libxfce4ui/trunk/libxfce4smclient-private/eggsmclient-xsmp.c
   libxfce4ui/trunk/libxfce4smclient-private/eggsmclient.h
Log:
add SmRestartImmediately support to EggSMClient

Modified: libxfce4ui/trunk/libxfce4smclient-private/eggsmclient-xsmp.c
===================================================================
--- libxfce4ui/trunk/libxfce4smclient-private/eggsmclient-xsmp.c        
2009-07-28 22:10:06 UTC (rev 30414)
+++ libxfce4ui/trunk/libxfce4smclient-private/eggsmclient-xsmp.c        
2009-07-29 19:11:28 UTC (rev 30415)
@@ -214,6 +214,8 @@
 
   if (egg_sm_client_get_mode () == EGG_SM_CLIENT_MODE_NO_RESTART)
     xsmp->restart_style = SmRestartNever;
+  else if (egg_sm_client_get_mode () == EGG_SM_CLIENT_MODE_RESTART_IMMEDIATELY)
+    xsmp->restart_style = SmRestartImmediately;
 
   /* Parse info out of desktop file */
   desktop_file = egg_get_desktop_file ();

Modified: libxfce4ui/trunk/libxfce4smclient-private/eggsmclient.h
===================================================================
--- libxfce4ui/trunk/libxfce4smclient-private/eggsmclient.h     2009-07-28 
22:10:06 UTC (rev 30414)
+++ libxfce4ui/trunk/libxfce4smclient-private/eggsmclient.h     2009-07-29 
19:11:28 UTC (rev 30415)
@@ -45,7 +45,8 @@
 typedef enum {
   EGG_SM_CLIENT_MODE_DISABLED,
   EGG_SM_CLIENT_MODE_NO_RESTART,
-  EGG_SM_CLIENT_MODE_NORMAL
+  EGG_SM_CLIENT_MODE_NORMAL,
+  EGG_SM_CLIENT_MODE_RESTART_IMMEDIATELY,
 } EggSMClientMode;
 
 struct _EggSMClient

_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to