[libchamplain/libchamplain-0-4] Align the license text to right and simplify the position update
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libchamplain/libchamplain-0-4] Align the license text to right and simplify the position update
- Date: Tue, 5 Jan 2010 19:02:56 +0000 (UTC)
commit c8182b090a7e1a70185a0c082dbd571971c624b5
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date: Mon Jan 4 19:02:43 2010 -0500
Align the license text to right and simplify the position update
champlain/champlain-view.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c
index 5b9268f..a3bb1e4 100644
--- a/champlain/champlain-view.c
+++ b/champlain/champlain-view.c
@@ -384,14 +384,13 @@ static void
license_set_position (ChamplainView *view)
{
ChamplainViewPrivate *priv = view->priv;
- gfloat width, height;
if (!priv->license_actor)
return;
- clutter_actor_get_size (priv->license_actor, &width, &height);
- clutter_actor_set_position (priv->license_actor, priv->viewport_size.width -
- PADDING - width, priv->viewport_size.height - PADDING - height);
+ clutter_actor_set_position (priv->license_actor,
+ priv->viewport_size.width - PADDING,
+ priv->viewport_size.height - PADDING);
}
static void
@@ -1444,9 +1443,11 @@ update_license (ChamplainView *view)
{
priv->license_actor = g_object_ref (clutter_text_new ());
clutter_text_set_font_name (CLUTTER_TEXT (priv->license_actor), "sans 8");
+ clutter_text_set_line_alignment (CLUTTER_TEXT (priv->license_actor), PANGO_ALIGN_RIGHT);
clutter_actor_set_opacity (priv->license_actor, 128);
clutter_container_add_actor (CLUTTER_CONTAINER (priv->stage),
priv->license_actor);
+ clutter_actor_set_anchor_point_from_gravity (priv->license_actor, CLUTTER_GRAVITY_SOUTH_EAST);
clutter_actor_raise_top (priv->license_actor);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]