clutter-actor-meta: Fix _clutter_meta_group_has_metas_no_internal

This function is backwards i.e it is supposed to check for metas that
are *not* internal, hence the name.

https://bugzilla.gnome.org/show_bug.cgi?id=660623
This commit is contained in:
Adel Gadllah 2011-10-01 12:36:36 +02:00
parent 6377d3646b
commit d331e92742

View File

@ -556,9 +556,9 @@ _clutter_meta_group_get_metas_no_internal (ClutterMetaGroup *group)
* _clutter_meta_group_has_metas_no_internal: * _clutter_meta_group_has_metas_no_internal:
* @group: a #ClutterMetaGroup * @group: a #ClutterMetaGroup
* *
* Returns whether the group has any metas that have an internal priority. * Returns whether the group has any metas that don't have an internal priority.
* *
* Return value: %TRUE if metas with internal priority exist * Return value: %TRUE if metas without internal priority exist
* %FALSE otherwise * %FALSE otherwise
*/ */
gboolean gboolean
@ -567,7 +567,7 @@ _clutter_meta_group_has_metas_no_internal (ClutterMetaGroup *group)
GList *l; GList *l;
for (l = group->meta; l; l = l->next) for (l = group->meta; l; l = l->next)
if (_clutter_actor_meta_is_internal (l->data)) if (!_clutter_actor_meta_is_internal (l->data))
return TRUE; return TRUE;
return FALSE; return FALSE;