[libchamplain] Remove my last question/comment
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] Remove my last question/comment
- Date: Tue, 23 Mar 2010 14:42:56 +0000 (UTC)
commit fc4506eede96533cb2fb21471eff034d72118a29
Author: JiÅ?Ã Techet <techet gmail com>
Date: Fri Mar 19 00:40:44 2010 +0100
Remove my last question/comment
Replace the original code with what I think might be correct even though
I still don't understand its purpose...
Signed-off-by: JiÅ?Ã Techet <techet gmail com>
champlain/champlain-view.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c
index 518e3b5..a0f2531 100644
--- a/champlain/champlain-view.c
+++ b/champlain/champlain-view.c
@@ -3127,13 +3127,9 @@ champlain_view_add_polygon (ChamplainView *view,
g_signal_connect (polygon, "notify",
G_CALLBACK (notify_polygon_cb), view);
-// JT question: what was the code below good for? It definitely leaks memory...
-/* if (view->priv->viewport_size.width == 0 ||
- view->priv->viewport_size.height == 0)
- {
- polygon->priv->actor = NULL;
+ if (priv->viewport_size.width == 0 ||
+ priv->viewport_size.height == 0)
return;
- }*/
clutter_actor_set_position (CLUTTER_ACTOR (polygon), 0, 0);
clutter_container_add_actor (CLUTTER_CONTAINER (priv->polygon_layer),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]