Author: kelnos
Date: 2008-10-17 07:59:17 +0000 (Fri, 17 Oct 2008)
New Revision: 28272
Modified:
xfce4-session/trunk/ChangeLog
xfce4-session/trunk/xfce4-session/xfsm-startup.c
Log:
* xfce4-session/xfsm-client.c: Grab the GList pointer to iterate
over rather than using g_queue_peek_nth (); a little faster.
Modified: xfce4-session/trunk/ChangeLog
===================================================================
--- xfce4-session/trunk/ChangeLog 2008-10-16 22:28:00 UTC (rev 28271)
+++ xfce4-session/trunk/ChangeLog 2008-10-17 07:59:17 UTC (rev 28272)
@@ -1,3 +1,8 @@
+2008-10-15 Brian Tarricone <[EMAIL PROTECTED]>
+
+ * xfce4-session/xfsm-client.c: Grab the GList pointer to iterate
+ over rather than using g_queue_peek_nth (); a little faster.
+
2008-10-12 Brian Tarricone <[EMAIL PROTECTED]>
* xfce4-session/xfsm-manager.c: Return a useful error string from
Modified: xfce4-session/trunk/xfce4-session/xfsm-startup.c
===================================================================
--- xfce4-session/trunk/xfce4-session/xfsm-startup.c 2008-10-16 22:28:00 UTC
(rev 28271)
+++ xfce4-session/trunk/xfce4-session/xfsm-startup.c 2008-10-17 07:59:17 UTC
(rev 28272)
@@ -638,16 +638,17 @@
XfsmProperties *properties;
XfsmStartupChildWatchData *cwdata = user_data;
GQueue *starting_properties;
- gint i, n_items;
+ GList *lp;
starting_properties = xfsm_manager_get_queue (cwdata->manager,
XFSM_MANAGER_QUEUE_STARTING_PROPS);
- n_items = g_queue_get_length (starting_properties);
/* check if we have a starting process with the given client_id */
- for (i = 0; i < n_items; ++i)
+ for (lp = g_queue_peek_nth_link (starting_properties, 0);
+ lp != NULL;
+ lp = lp->next)
{
/* check if this properties matches */
- properties = (XfsmProperties *) g_queue_peek_nth (starting_properties,
i);
+ properties = (XfsmProperties *) lp->data;
if (strcmp (properties->client_id, cwdata->client_id) == 0)
{
/* continue startup, this client failed most probably */
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits