+2008-02-22 Scott Haeger <scott@bashautomation.com>
+
+ * libspi/collection.c:
+ Fixed bug #517761, Collection match rules not working for attributes.
+
2008-02-19 Li Yuan <li.yuan@sun.com>
Patch from Scott Haeger <scott@bashautomation.com>
for (i = 0; i < attributes->_length; i++){
for (k = 0; k < oa->_length; k++)
- if (!g_ascii_strcasecmp (oa->_buffer [k], attributes->_buffer [i]))
+ if (!g_ascii_strcasecmp (oa->_buffer [k], attributes->_buffer [i])){
flag = TRUE;
+ break;
+ }
else
flag = FALSE;
if (!flag)
return FALSE;
}
-
-
static gboolean
match_attributes_none_p (Accessibility_Accessible child, Accessibility_AttributeSet *attributes, CORBA_Environment *ev){
for (i = 0; i < attributes->_length; i++){
for (k = 0; k < oa->_length; k++)
if (!g_ascii_strcasecmp (oa->_buffer [k], attributes->_buffer [i]))
- flag = FALSE;
- else
- flag = TRUE;
- if (flag)
- return TRUE;
+ return FALSE;
}
- return FALSE;
+ return TRUE;
}
-
-
-
static gboolean
match_attributes_lookup (Accessibility_Accessible child, MatchRulePrivate *mrp, CORBA_Environment *ev){