Re: [gtkmm] Debugging



On Tue, 2003-08-26 at 01:37, C.J. Collier wrote:

> For some reason, the signal is not getting connected:
> 
> (excerpt from src/main-menu.cpp)
> 
>    ui->get_widget("new_model", new_model);
> 
>    // connect new model activation
>    new_model->signal_activate()
>       .connect_notify(SigC::slot(*this,
> &MainMenu::on_new_model_activate));

Odd. The code looks OK to me. If you add "new_model->activate();" after
the connect_notify(), you will see "lalala" line. But clicking on the
menu item yields nothing.

Attached is a small and working demonstration which hopefully emulates
what you want to achieve, so I conclude that there is something wrong
either in your code or in your glade file. I'm baffled.

Hope this helps - somehow.

Jan

Work on my libglademm doc continues but don't expect anything before
Friday :(

Attachment: project7.tar.bz2
Description: application/bzip



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