[libchamplain] champlain-point: Adjust translation on size change
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] champlain-point: Adjust translation on size change
- Date: Thu, 2 May 2013 19:30:18 +0000 (UTC)
commit bfda4c157200d6758393b53ee45712e152d39726
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Apr 26 04:28:41 2013 +0300
champlain-point: Adjust translation on size change
https://bugzilla.gnome.org/show_bug.cgi?id=698910
champlain/champlain-point.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/champlain/champlain-point.c b/champlain/champlain-point.c
index 6f7ee7d..849cfe7 100644
--- a/champlain/champlain-point.c
+++ b/champlain/champlain-point.c
@@ -330,6 +330,7 @@ champlain_point_set_size (ChamplainPoint *point,
point->priv->size = size;
clutter_canvas_set_size (CLUTTER_CANVAS (priv->canvas), size, size);
clutter_actor_set_size (CLUTTER_ACTOR (point), priv->size, priv->size);
+ clutter_actor_set_translation (CLUTTER_ACTOR (point), -priv->size/2, -priv->size/2, 0.0);
g_object_notify (G_OBJECT (point), "size");
clutter_content_invalidate (priv->canvas);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]