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

« back to all changes in this revision

Viewing changes to tests/interactive/test-actors.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:
137
137
  gint          i;
138
138
  GError       *error;
139
139
  ClutterActor *real_hand;
 
140
  gchar        *file;
140
141
 
141
142
  error = NULL;
142
143
 
159
160
 
160
161
  clutter_stage_set_title (CLUTTER_STAGE (stage), "Clone Test");
161
162
  clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
 
163
  clutter_stage_set_user_resizable (CLUTTER_STAGE (stage), TRUE);
162
164
 
163
165
  oh = g_new (SuperOH, 1);
164
166
  oh->stage = stage;
176
178
  oh->scaler_1 = clutter_behaviour_scale_new (alpha, 0.5, 0.5, 1.0, 1.0);
177
179
  oh->scaler_2 = clutter_behaviour_scale_new (alpha, 1.0, 1.0, 0.5, 0.5);
178
180
 
179
 
  real_hand = clutter_texture_new_from_file ("redhand.png", &error);
 
181
  file = g_build_filename (TESTS_DATADIR, "redhand.png", NULL);
 
182
  real_hand = clutter_texture_new_from_file (file, &error);
180
183
  if (real_hand == NULL)
181
 
    {
182
 
      g_error ("image load failed: %s", error->message);
183
 
      return EXIT_FAILURE;
184
 
    }
 
184
    g_error ("image load failed: %s", error->message);
 
185
 
 
186
  g_free (file);
185
187
 
186
188
  /* create a new group to hold multiple actors in a group */
187
189
  oh->group = clutter_group_new();