[Xfce4-commits] <libxfce4util:master> Optimize xfce_rc_read_bool_entry().
Nick Schermer
noreply at xfce.org
Tue Feb 9 13:16:01 CET 2010
Updating branch refs/heads/master
to 2d211eb0873dbcb496f4457f8b4c193028791cc9 (commit)
from 151f766c4cc347c61ae9dc28d665155a2696495b (commit)
commit 2d211eb0873dbcb496f4457f8b4c193028791cc9
Author: Nick Schermer <nick at xfce.org>
Date: Tue Feb 9 13:12:25 2010 +0100
Optimize xfce_rc_read_bool_entry().
libxfce4util/xfce-rc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libxfce4util/xfce-rc.c b/libxfce4util/xfce-rc.c
index ecf12e0..bd816ad 100644
--- a/libxfce4util/xfce-rc.c
+++ b/libxfce4util/xfce-rc.c
@@ -576,8 +576,8 @@ xfce_rc_read_bool_entry (const XfceRc *rc,
value = xfce_rc_read_entry (rc, key, NULL);
if (value != NULL)
{
- return g_ascii_strcasecmp (value, "on") == 0
- || g_ascii_strcasecmp (value, "true") == 0
+ return g_ascii_strcasecmp (value, "true") == 0
+ || g_ascii_strcasecmp (value, "on") == 0
|| g_ascii_strcasecmp (value, "yes") == 0;
}
More information about the Xfce4-commits
mailing list