Re: [gnomemm] Re: libglademm-2 functions for signals



Murray Cumming Comneon com writes:

> > i checked and saw that libglade has 
> > glade_xml_signal_autoconnect anything like that for libglademm?
> 
> No. libglademm 1 had something like this, but nobody has yet investigated
> how it worked, or tried to port that functionality to libglademm 2.

So you need to connect the signals yourself, e.g.:

  void on_close_clicked();

  // ...

  Gtk::Button *button;
  ui->get_widget("my_button", button);
  button->signal_clicked().connect(SigC::slot(&on_close_clicked));

-- 
Ole Laursen
http://www.cs.auc.dk/~olau/



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