Author: kelnos
Date: 2008-10-22 11:57:52 +0000 (Wed, 22 Oct 2008)
New Revision: 28359

Modified:
   xfce4-session/trunk/ChangeLog
   xfce4-session/trunk/NEWS
   xfce4-session/trunk/xfce4-session/xfsm-client.c
Log:
        * xfce4-session/xfsm-client.c: Handle the SmProcessID property
          correctly.

Modified: xfce4-session/trunk/ChangeLog
===================================================================
--- xfce4-session/trunk/ChangeLog       2008-10-22 11:34:27 UTC (rev 28358)
+++ xfce4-session/trunk/ChangeLog       2008-10-22 11:57:52 UTC (rev 28359)
@@ -1,5 +1,10 @@
 2008-10-22     Brian Tarricone <[EMAIL PROTECTED]>
 
+       * xfce4-session/xfsm-client.c: Handle the SmProcessID property
+         correctly.
+
+2008-10-22     Brian Tarricone <[EMAIL PROTECTED]>
+
        * settings/session-editor.c: Fix a couple memleaks and a typo
          that causes operations on clients to fail.
 

Modified: xfce4-session/trunk/NEWS
===================================================================
--- xfce4-session/trunk/NEWS    2008-10-22 11:34:27 UTC (rev 28358)
+++ xfce4-session/trunk/NEWS    2008-10-22 11:57:52 UTC (rev 28359)
@@ -5,6 +5,7 @@
 - Link libxfsm against all required libs to avoid link-time errors
   (bug 4429).
 - Make splash engines store their settings in Xfconf.
+- Handle the ProcessID SM property properly.
 
 
 4.5.91

Modified: xfce4-session/trunk/xfce4-session/xfsm-client.c
===================================================================
--- xfce4-session/trunk/xfce4-session/xfsm-client.c     2008-10-22 11:34:27 UTC 
(rev 28358)
+++ xfce4-session/trunk/xfce4-session/xfsm-client.c     2008-10-22 11:57:52 UTC 
(rev 28359)
@@ -477,6 +477,24 @@
                          prop->type);
             }
         }
+      else if (strcmp (prop->name, SmProcessID) == 0)
+        {
+          if (strcmp (prop->type, SmARRAY8) == 0)
+            {
+              if (properties->process_id != NULL)
+                g_free (properties->process_id);
+              properties->process_id = g_strdup ((const gchar *) 
prop->vals->value);
+              xfsm_client_signal_prop_change (client, SmProcessID);
+            }
+          else
+            {
+              g_warning ("Client %s specified property %s of invalid "
+                         "type %s, ignoring.",
+                         properties->client_id,
+                         prop->name,
+                         prop->type);
+            }
+        }
       else if (strcmp (prop->name, SmProgram) == 0)
         {
           if (strcmp (prop->type, SmARRAY8) == 0)

_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to