Goocanvas::Widget - embedded widget events



Hi all,

As i've found out in the old mailing list, events like button_press_event
won't be dispatched by the Goocanvas::Widget itself.

i'm trying to handle events dispatched by the embedded widgets in a
Goocanvas::Widget, but my callback function doesn't get called:


Gtk::Button widget;
Glib::RefPtr<Goocanvas::Widget> wid;
wid = Goocanvas::Widget::create(widget,10,10,40,40);
_canvas->get_root_item()->add_child(wid);

widget.signal_button_press_event().connect(sigc::mem_fun(*this, &MyWindow::on_widget_button_press_event));


Has anyone a hint what i'm missing out here ?

thanks !


-robert


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]