[Xfce4-commits] <libxfce4ui:new-sm-client> use macro defines for the non-standard prop names

Brian J. Tarricone brian at tarricone.org
Thu Sep 17 10:26:01 CEST 2009


Updating branch refs/heads/kelnos/new-sm-client
         to d883beffbb1108d5406960f060e7eec04bdd753f (commit)
       from fec139a69b6c2988e7de4cbbdc0ddb2a61d35104 (commit)

commit d883beffbb1108d5406960f060e7eec04bdd753f
Author: Brian J. Tarricone <brian at tarricone.org>
Date:   Thu Sep 17 01:24:39 2009 -0700

    use macro defines for the non-standard prop names

 libxfce4ui/xfce-sm-client.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/libxfce4ui/xfce-sm-client.c b/libxfce4ui/xfce-sm-client.c
index 21d0e59..d0b2fd4 100644
--- a/libxfce4ui/xfce-sm-client.c
+++ b/libxfce4ui/xfce-sm-client.c
@@ -64,6 +64,9 @@
 #include "libxfce4ui-marshal.h"
 #include "libxfce4ui-enum-types.h"
 
+#define GsmPriority     "_GSM_Priority"
+#define GsmDesktopFile  "_GSM_DesktopFile"
+
 #define SM_ID_ARG "--sm-client-id"
 #define DPY_ARG "--display"
 
@@ -1641,7 +1644,7 @@ xfce_sm_client_connect(XfceSMClient *sm_client,
     prop5val.length = strlen(prop5val.value);
     n_props++;
 
-    prop6.name = "_GSM_Priority";
+    prop6.name = GsmPriority;
     prop6.type = SmCARD8;
     prop6.num_vals = 1;
     prop6.vals = &prop6val;
@@ -1650,7 +1653,7 @@ xfce_sm_client_connect(XfceSMClient *sm_client,
     n_props++;
 
     if(sm_client->desktop_file) {
-        prop7.name = "_GSM_DesktopFile";
+        prop7.name = GsmDesktopFile;
         prop7.type = SmARRAY8;
         prop7.num_vals = 1;
         prop7.vals = &prop7val;
@@ -1818,7 +1821,7 @@ xfce_sm_client_set_desktop_file(XfceSMClient *sm_client,
         SmProp prop, *props[1];
         SmPropValue propval;
 
-        prop.name = "_GSM_DesktopFile";
+        prop.name = GsmDesktopFile;
         prop.type = SmARRAY8;
         prop.num_vals = 1;
         prop.vals = &propval;
@@ -1936,7 +1939,7 @@ xfce_sm_client_set_priority(XfceSMClient *sm_client,
         SmProp prop, *props[1];
         SmPropValue propval;
 
-        prop.name = "_GSM_Priority";
+        prop.name = GsmPriority;
         prop.type = SmCARD8;
         prop.num_vals = 1;
         prop.vals = &propval;



More information about the Xfce4-commits mailing list