Hey all,

I am attempting to create a few custom "composite" actors, each of which
possess their own children actors (i.e. rectangles, etc).  I would like to
attach button_clicked events to these children actors, however I have met
some difficulty.  Unfortunately, it would seem that more than simply
connecting the callback to the child actor is required, however I am unable
to find any relevant information online.  The closest thing I could find
was that maybe it would be necessary to implement the Container interface.
 Doing so changed nothing.

Currently, I have my code set up such that the callback is simply connected
to the child actor:

*void Widget::connect_signals()*
*{*
* _frame->set_reactive(true);*
* _frame->signal_button_press_event().connect(sigc::mem_fun(*this,
&Widget::on_frame_clicked));*
*}*
*
*
Where _frame is another actor contained within the Widget actor.  While
this compiles fine, the callback never succeeds in reaching the _frame
actor.

How does one manage this--connecting callbacks to the children actors of a
given actor?

Thanks,
Andy
_______________________________________________
clutter-app-devel-list mailing list
clutter-app-devel-list@clutter-project.org
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to