~oem-solutions-group/unity-2d/clutter-1.0

« back to all changes in this revision

Viewing changes to tests/interactive/test-behave.c

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2010-03-21 13:27:56 UTC
  • mto: (2.1.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20100321132756-nf8yd30yxo3zzwcm
Tags: upstream-1.2.2
ImportĀ upstreamĀ versionĀ 1.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
  ClutterColor      stage_color = { 0xcc, 0xcc, 0xcc, 0xff };
77
77
  ClutterColor      rect_bg_color = { 0x33, 0x22, 0x22, 0xff };
78
78
  ClutterColor      rect_border_color = { 0, 0, 0, 0 };
 
79
  gchar            *file;
79
80
  int               i;
80
81
  path_t            path_type = PATH_POLY;
81
82
 
138
139
  group = clutter_group_new ();
139
140
  clutter_container_add_actor (CLUTTER_CONTAINER (stage), group);
140
141
  clutter_actor_show (group);
141
 
  
142
 
  hand = clutter_texture_new_from_file ("redhand.png", NULL);
 
142
 
 
143
  file = g_build_filename (TESTS_DATADIR, "redhand.png", NULL);
 
144
  hand = clutter_texture_new_from_file (file, NULL);
143
145
  if (hand == NULL)
144
 
    {
145
 
      g_error("pixbuf load failed");
146
 
      return 1;
147
 
    }
 
146
    g_error("Unable to load '%s'", file);
 
147
 
 
148
  g_free (file);
 
149
 
148
150
  clutter_actor_set_position (hand, 0, 0);
149
151
  clutter_actor_show (hand);
150
152
 
210
212
        p_behave = clutter_behaviour_path_new (alpha, path);
211
213
      }
212
214
      break;
 
215
 
 
216
    default:
 
217
      g_assert_not_reached ();
 
218
      break;
213
219
    }
214
220
 
215
221
  clutter_behaviour_apply (p_behave, group);