[clutter] actor: Remove an has_allocation() check
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] actor: Remove an has_allocation() check
- Date: Fri, 16 Mar 2012 16:20:13 +0000 (UTC)
commit a7714e294ee26f52cabb96694ce871d2dffebe7e
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Fri Mar 16 16:13:11 2012 +0000
actor: Remove an has_allocation() check
The get_content_box() method should always succeed; if the actor does
not have an allocation, we are just going to return a 0-box.
clutter/clutter-actor.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index cfe0f63..5483d11 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -17655,9 +17655,6 @@ clutter_actor_get_content_box (ClutterActor *self,
priv = self->priv;
- if (!clutter_actor_has_allocation (self))
- return;
-
box->x1 = 0.f;
box->y1 = 0.f;
box->x2 = priv->allocation.x2 - priv->allocation.x1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]