summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.com>2012-11-13 02:35:40 (GMT)
committerThiago Santos <thiago.sousa.santos@collabora.com>2012-11-26 13:42:41 (GMT)
commitd5117262626bd2547125354d8117f5d0d0afd2bc (patch)
treecbad01304544ee57f252e81bc5a76b92d6c6df56
parent04ca3d1af3544adfe80cc52f75c51ac2bda029fe (diff)
downloadclutter-d5117262626bd2547125354d8117f5d0d0afd2bc.tar.gz
clutter-d5117262626bd2547125354d8117f5d0d0afd2bc.tar.xz
clutter: clutter-texture: properly do type checking
Use g_type_is_a instead of directly comparing types to allow checking for inherited classes and work with ClutterGstVideoTexture
-rw-r--r--clutter/clutter-paint-volume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clutter/clutter-paint-volume.c b/clutter/clutter-paint-volume.c
index 9eeee1e..f628f58 100644
--- a/clutter/clutter-paint-volume.c
+++ b/clutter/clutter-paint-volume.c
@@ -993,7 +993,7 @@ _clutter_actor_set_default_paint_volume (ClutterActor *self,
if (check_gtype != G_TYPE_INVALID)
{
- if (G_OBJECT_TYPE (self) != check_gtype)
+ if (!g_type_is_a (G_OBJECT_TYPE (self), check_gtype))
return FALSE;
}