canvas: Add canvas size to the ::draw signal

Instead of requiring a call to clutter_content_get_preferred_size(), we
can simply pass the canvas size to the Canvas::draw signal.
This commit is contained in:
Emmanuele Bassi
2012-03-08 15:47:16 +00:00
parent 07bb35bbe3
commit 0eeb61f3a8
5 changed files with 27 additions and 17 deletions

View File

@ -173,6 +173,8 @@ clutter_content_invalidate (ClutterContent *content)
g_return_if_fail (CLUTTER_IS_CONTENT (content));
CLUTTER_CONTENT_GET_IFACE (content)->invalidate (content);
actors = g_object_get_qdata (G_OBJECT (content), quark_content_actors);
if (actors == NULL)
return;
@ -186,8 +188,6 @@ clutter_content_invalidate (ClutterContent *content)
clutter_actor_queue_redraw (actor);
}
CLUTTER_CONTENT_GET_IFACE (content)->invalidate (content);
}
/*< private >