~ubuntu-branches/ubuntu/trusty/clutter-gtk/trusty-proposed

« back to all changes in this revision

Viewing changes to examples/gtk-clutter-multistage.c

  • Committer: Package Import Robot
  • Author(s): Michael Biebl, Laurent Bigonville, Michael Biebl
  • Date: 2013-08-27 18:23:21 UTC
  • mfrom: (6.1.10 experimental)
  • Revision ID: package-import@ubuntu.com-20130827182321-gkcwqu6cqrqike7a
Tags: 1.4.4-3
[ Laurent Bigonville ]
* debian/rules: Use DEB_LDFLAGS_MAINT_APPEND instead of LDFLAGS to not
  override hardening flags
* debian/control.in:
  - Use canonical URL's for the Vcs-* fields
  - Bump Standards-Version to 3.9.4 (no further changes)

[ Michael Biebl ]
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
  gtk_notebook_append_page (GTK_NOTEBOOK (notebook), clutter0,
40
40
                            gtk_label_new ("One stage"));
41
41
  stage0 = gtk_clutter_embed_get_stage (GTK_CLUTTER_EMBED (clutter0));
42
 
  clutter_stage_set_color (CLUTTER_STAGE (stage0), &col0);
 
42
  clutter_actor_set_background_color (stage0, &col0);
43
43
 
44
44
  vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
45
45
  gtk_notebook_append_page (GTK_NOTEBOOK (notebook), vbox,
48
48
  clutter1 = gtk_clutter_embed_new ();
49
49
  gtk_widget_set_size_request (clutter1, 320, 240);
50
50
  stage1 = gtk_clutter_embed_get_stage (GTK_CLUTTER_EMBED (clutter1));
51
 
  clutter_stage_set_color (CLUTTER_STAGE(stage1), &col1);
 
51
  clutter_actor_set_background_color (stage1, &col1);
52
52
  tex1 = gtk_clutter_texture_new ();
53
53
  gtk_clutter_texture_set_from_stock (GTK_CLUTTER_TEXTURE (tex1),
54
54
                                      clutter1,
59
59
                                  clutter_actor_get_width (tex1) / 2,
60
60
                                  clutter_actor_get_height (tex1) / 2);
61
61
  clutter_actor_set_position (tex1, 160, 120);
62
 
  clutter_stage_add (stage1, tex1); 
 
62
  clutter_actor_add_child (stage1, tex1); 
63
63
  clutter_actor_show (tex1);
64
64
 
65
65
  gtk_container_add (GTK_CONTAINER (vbox), clutter1);
67
67
  clutter2 = gtk_clutter_embed_new ();
68
68
  gtk_widget_set_size_request (clutter2, 320, 120);
69
69
  stage2 = gtk_clutter_embed_get_stage (GTK_CLUTTER_EMBED (clutter2));
70
 
  clutter_stage_set_color (CLUTTER_STAGE(stage2), &col2);
 
70
  clutter_actor_set_background_color (stage2, &col2);
71
71
  tex2 = gtk_clutter_texture_new ();
72
72
  gtk_clutter_texture_set_from_icon_name (GTK_CLUTTER_TEXTURE (tex2),
73
73
                                          clutter1,
78
78
                                  clutter_actor_get_width (tex2) / 2,
79
79
                                  clutter_actor_get_height (tex2) / 2);
80
80
  clutter_actor_set_position (tex2, 160, 60);
81
 
  clutter_stage_add (stage2, tex2);
 
81
  clutter_actor_add_child (stage2, tex2);
82
82
 
83
83
  gtk_container_add (GTK_CONTAINER (vbox), clutter2);
84
84