diff options
author | Jiří Techet <techet@gmail.com> | 2013-04-19 20:50:12 +0200 |
---|---|---|
committer | Jiří Techet <techet@gmail.com> | 2013-04-19 21:09:10 +0200 |
commit | 2e6fb153a062f2221d45d71fac70212599656203 (patch) | |
tree | 452d757f458f6229b6a7b18a3f3f815e72414b6e /demos | |
parent | 44bae77ab75add3cace71ea617cdee17c776bb67 (diff) | |
download | libchamplain-2e6fb153a062f2221d45d71fac70212599656203.tar.gz |
Don't use champlain_view_bin_layout_add () as it's deprecated now
Diffstat (limited to 'demos')
-rw-r--r-- | demos/launcher-gtk.c | 8 |
1 files changed, 5 insertions, 3 deletions
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"); |