[libchamplain] Relayout actor when parenting
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] Relayout actor when parenting
- Date: Mon, 14 Feb 2011 23:22:22 +0000 (UTC)
commit 8012b948a44535dc6e8418ab3316b43123844330
Author: JiÅ?Ã Techet <techet gmail com>
Date: Sun Feb 13 01:16:38 2011 +0100
Relayout actor when parenting
champlain/champlain-custom-marker.c | 1 +
champlain/champlain-label.c | 1 +
champlain/champlain-license.c | 1 +
champlain/champlain-marker-layer.c | 1 +
champlain/champlain-point.c | 1 +
champlain/champlain-scale.c | 1 +
champlain/champlain-tile.c | 1 +
7 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/champlain/champlain-custom-marker.c b/champlain/champlain-custom-marker.c
index d85cc27..e142c29 100644
--- a/champlain/champlain-custom-marker.c
+++ b/champlain/champlain-custom-marker.c
@@ -280,6 +280,7 @@ champlain_custom_marker_init (ChamplainCustomMarker *custom_marker)
custom_marker->priv = priv;
priv->content_group = CLUTTER_CONTAINER (clutter_group_new ());
clutter_actor_set_parent (CLUTTER_ACTOR (priv->content_group), CLUTTER_ACTOR (custom_marker));
+ clutter_actor_queue_relayout (CLUTTER_ACTOR (custom_marker));
}
diff --git a/champlain/champlain-label.c b/champlain/champlain-label.c
index 7ffcb7a..53e0d25 100644
--- a/champlain/champlain-label.c
+++ b/champlain/champlain-label.c
@@ -900,6 +900,7 @@ champlain_label_init (ChamplainLabel *label)
priv->text_actor = NULL;
priv->content_group = CLUTTER_GROUP (clutter_group_new ());
clutter_actor_set_parent (CLUTTER_ACTOR (priv->content_group), CLUTTER_ACTOR (label));
+ clutter_actor_queue_relayout (CLUTTER_ACTOR (label));
g_signal_connect (label, "notify::selected", G_CALLBACK (notify_selected), NULL);
}
diff --git a/champlain/champlain-license.c b/champlain/champlain-license.c
index af2db9a..fcfac97 100644
--- a/champlain/champlain-license.c
+++ b/champlain/champlain-license.c
@@ -258,6 +258,7 @@ champlain_license_init (ChamplainLicense *license)
priv->license_actor = NULL;
priv->content_group = CLUTTER_GROUP (clutter_group_new ());
clutter_actor_set_parent (CLUTTER_ACTOR (priv->content_group), CLUTTER_ACTOR (license));
+ clutter_actor_queue_relayout (CLUTTER_ACTOR (license));
create_license (license);
}
diff --git a/champlain/champlain-marker-layer.c b/champlain/champlain-marker-layer.c
index fc6dd8c..70b08eb 100644
--- a/champlain/champlain-marker-layer.c
+++ b/champlain/champlain-marker-layer.c
@@ -427,6 +427,7 @@ champlain_marker_layer_init (ChamplainMarkerLayer *self)
priv->content_group = CLUTTER_GROUP (clutter_group_new ());
clutter_actor_set_parent (CLUTTER_ACTOR (priv->content_group), CLUTTER_ACTOR (self));
+ clutter_actor_queue_relayout (CLUTTER_ACTOR (self));
//TODO destroy + ref()
priv->path_actor = clutter_cairo_texture_new (256, 256);
diff --git a/champlain/champlain-point.c b/champlain/champlain-point.c
index 8e05008..992ebda 100644
--- a/champlain/champlain-point.c
+++ b/champlain/champlain-point.c
@@ -298,6 +298,7 @@ champlain_point_init (ChamplainPoint *point)
priv->size = 12;
priv->content_group = CLUTTER_GROUP (clutter_group_new ());
clutter_actor_set_parent (CLUTTER_ACTOR (priv->content_group), CLUTTER_ACTOR (point));
+ clutter_actor_queue_relayout (CLUTTER_ACTOR (point));
draw_point (point);
diff --git a/champlain/champlain-scale.c b/champlain/champlain-scale.c
index abc4521..c37f511 100644
--- a/champlain/champlain-scale.c
+++ b/champlain/champlain-scale.c
@@ -405,6 +405,7 @@ champlain_scale_init (ChamplainScale *scale)
priv->view = NULL;
priv->content_group = CLUTTER_GROUP (clutter_group_new ());
clutter_actor_set_parent (CLUTTER_ACTOR (priv->content_group), CLUTTER_ACTOR (scale));
+ clutter_actor_queue_relayout (CLUTTER_ACTOR (scale));
create_scale (scale);
}
diff --git a/champlain/champlain-tile.c b/champlain/champlain-tile.c
index ab93e43..1d920b1 100644
--- a/champlain/champlain-tile.c
+++ b/champlain/champlain-tile.c
@@ -419,6 +419,7 @@ champlain_tile_init (ChamplainTile *self)
priv->content_actor = NULL;
priv->content_group = CLUTTER_GROUP (clutter_group_new ());
clutter_actor_set_parent (CLUTTER_ACTOR (priv->content_group), CLUTTER_ACTOR (self));
+ clutter_actor_queue_relayout (CLUTTER_ACTOR (self));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]