[Xfce4-commits] <xfconf:master> Use g_strsplit instead of g_strsplit_set.
Nick Schermer
noreply at xfce.org
Tue Feb 2 17:48:02 CET 2010
Updating branch refs/heads/master
to 78136f59da5ffb1337a2c5a4b2649f12d00947a5 (commit)
from 262bf1158d9929d4ccd61699503ae5cf0daf239d (commit)
commit 78136f59da5ffb1337a2c5a4b2649f12d00947a5
Author: Nick Schermer <nick at xfce.org>
Date: Tue Feb 2 17:21:13 2010 +0100
Use g_strsplit instead of g_strsplit_set.
Because we only use 1 delimiter, g_strsplit is a better
option. It is also faster internally with is nice because
xfconf_proptree_lookup_node() is the most called function
in xfconfd.
xfconfd/xfconf-backend-perchannel-xml.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/xfconfd/xfconf-backend-perchannel-xml.c b/xfconfd/xfconf-backend-perchannel-xml.c
index f45f0f9..9bd091d 100644
--- a/xfconfd/xfconf-backend-perchannel-xml.c
+++ b/xfconfd/xfconf-backend-perchannel-xml.c
@@ -796,7 +796,7 @@ xfconf_proptree_lookup_node(GNode *proptree,
g_return_val_if_fail(PROP_NAME_IS_VALID(name), NULL);
- parts = g_strsplit_set(name+1, "/", -1);
+ parts = g_strsplit(name+1, "/", -1);
parent = proptree;
for(i = 0; parts[i]; ++i) {
More information about the Xfce4-commits
mailing list