[libchamplain] Get rid of set_anchor_point()
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] Get rid of set_anchor_point()
- Date: Fri, 12 Apr 2013 12:07:29 +0000 (UTC)
commit 9dd08998f7be7927659315c0682aecd5e819cd51
Author: Jiří Techet <techet gmail com>
Date: Fri Apr 12 01:36:19 2013 +0200
Get rid of set_anchor_point()
champlain/champlain-point.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/champlain/champlain-point.c b/champlain/champlain-point.c
index d291c86..6f7ee7d 100644
--- a/champlain/champlain-point.c
+++ b/champlain/champlain-point.c
@@ -216,8 +216,6 @@ draw (ClutterCanvas *canvas,
gdouble radius = size / 2.0;
const ClutterColor *color;
- clutter_actor_set_anchor_point (CLUTTER_ACTOR (point), radius, radius);
-
cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
cairo_paint (cr);
cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
@@ -265,6 +263,7 @@ champlain_point_init (ChamplainPoint *point)
clutter_canvas_set_size (CLUTTER_CANVAS (priv->canvas), priv->size, priv->size);
clutter_actor_set_size (CLUTTER_ACTOR (point), priv->size, priv->size);
clutter_actor_set_content (CLUTTER_ACTOR (point), priv->canvas);
+ clutter_actor_set_translation (CLUTTER_ACTOR (point), -priv->size/2, -priv->size/2, 0.0);
clutter_content_invalidate (priv->canvas);
g_signal_connect (point, "notify::selected", G_CALLBACK (notify_selected), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]