[libchamplain] Don't use champlain_view_bin_layout_add () as it's deprecated now
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] Don't use champlain_view_bin_layout_add () as it's deprecated now
- Date: Fri, 19 Apr 2013 19:43:01 +0000 (UTC)
commit 2e6fb153a062f2221d45d71fac70212599656203
Author: Jiří Techet <techet gmail com>
Date: Fri Apr 19 20:50:12 2013 +0200
Don't use champlain_view_bin_layout_add () as it's deprecated now
champlain/champlain-view.c | 8 +++++---
demos/launcher-gtk.c | 8 +++++---
2 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c
index 02db0df..7d2f86d 100644
--- a/champlain/champlain-view.c
+++ b/champlain/champlain-view.c
@@ -1067,9 +1067,11 @@ champlain_view_init (ChamplainView *view)
/* Setup license */
priv->license_actor = champlain_license_new ();
champlain_license_connect_view (CHAMPLAIN_LICENSE (priv->license_actor), view);
- champlain_view_bin_layout_add (view, priv->license_actor,
- CLUTTER_BIN_ALIGNMENT_END,
- CLUTTER_BIN_ALIGNMENT_END);
+ clutter_actor_set_x_expand (priv->license_actor, TRUE);
+ clutter_actor_set_y_expand (priv->license_actor, TRUE);
+ clutter_actor_set_x_align (priv->license_actor, CLUTTER_ACTOR_ALIGN_END);
+ clutter_actor_set_y_align (priv->license_actor, CLUTTER_ACTOR_ALIGN_END);
+ clutter_actor_add_child (CLUTTER_ACTOR (view), priv->license_actor);
priv->state = CHAMPLAIN_STATE_DONE;
g_object_notify (G_OBJECT (view), "state");
diff --git a/demos/launcher-gtk.c b/demos/launcher-gtk.c
index dd560da..70e5d4d 100644
--- a/demos/launcher-gtk.c
+++ b/demos/launcher-gtk.c
@@ -303,9 +303,11 @@ main (int argc,
champlain_scale_connect_view (CHAMPLAIN_SCALE (scale), view);
/* align to the bottom left */
- champlain_view_bin_layout_add (view, scale,
- CLUTTER_BIN_ALIGNMENT_START,
- CLUTTER_BIN_ALIGNMENT_END);
+ clutter_actor_set_x_expand (scale, TRUE);
+ clutter_actor_set_y_expand (scale, TRUE);
+ clutter_actor_set_x_align (scale, CLUTTER_ACTOR_ALIGN_START);
+ clutter_actor_set_y_align (scale, CLUTTER_ACTOR_ALIGN_END);
+ clutter_actor_add_child (CLUTTER_ACTOR (view), scale);
license_actor = champlain_view_get_license_actor (view);
champlain_license_set_extra_text (license_actor, "Don't eat cereals with orange juice\nIt tastes bad");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]