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

« back to all changes in this revision

Viewing changes to clutter/clutter-clone.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:
274
274
                               "Source",
275
275
                               "Specifies the actor to be cloned",
276
276
                               CLUTTER_TYPE_ACTOR,
277
 
                               G_PARAM_CONSTRUCT_ONLY |
 
277
                               G_PARAM_CONSTRUCT |
278
278
                               CLUTTER_PARAM_READWRITE);
279
279
  g_object_class_install_property (gobject_class, PROP_SOURCE, pspec);
280
280
}
314
314
}
315
315
 
316
316
static void
 
317
clone_source_queue_relayout_cb (ClutterActor *source,
 
318
                                ClutterClone *clone)
 
319
{
 
320
  clutter_actor_queue_relayout (CLUTTER_ACTOR (clone));
 
321
}
 
322
 
 
323
static void
317
324
clutter_clone_set_source_internal (ClutterClone *clone,
318
325
                                   ClutterActor *source)
319
326
{
329
336
      g_signal_handlers_disconnect_by_func (priv->clone_source,
330
337
                                            (void *) clone_source_queue_redraw_cb,
331
338
                                            clone);
 
339
      g_signal_handlers_disconnect_by_func (priv->clone_source,
 
340
                                            (void *) clone_source_queue_relayout_cb,
 
341
                                            clone);
332
342
      g_object_unref (priv->clone_source);
333
343
      priv->clone_source = NULL;
334
344
    }
338
348
      priv->clone_source = g_object_ref (source);
339
349
      g_signal_connect (priv->clone_source, "queue-redraw",
340
350
                        G_CALLBACK (clone_source_queue_redraw_cb), clone);
 
351
      g_signal_connect (priv->clone_source, "queue-relayout",
 
352
                        G_CALLBACK (clone_source_queue_relayout_cb), clone);
341
353
    }
342
354
 
343
355
  g_object_notify (G_OBJECT (clone), "source");