On Thu, 2008-11-06 at 15:25 +0200, Michael Boccara wrote:

> > you can simply create a new actor setting all the properties at
> > construction time:
> > 
> > 
> >   copy = g_object_new (CLUTTER_TYPE_LABEL,
> >                        "text", clutter_label_get_text (orig),
> >                        "font-name", clutter_label_get_font_name (orig),
> >                        NULL);
  
> The problem is that I don't know what properties differ from default.

I fail to see why would that matter. usually, setter methods in Clutter
are pretty smart and check whether the value being set is equal to the
default and bail out immediately.

obviously, there are accessors that might require special handling -
which is why there is no generic g_object_clone() upstream, by the way:
if you have to write your own cloning static function for objects then
you might as well write your own public function. if you don't, a
g_object_clone() might as well be a g_object_new() invocation as I
wrote.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, Intel Open Source Technology Center

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to