Re: Binding extra arguments
- From: Emil Nowak <emiml wp pl>
- To: gtkmm-list gnome org
- Subject: Re: Binding extra arguments
- Date: Tue, 13 Mar 2007 11:51:54 +0100
On 2007-03-13, at 15:12:19 SaiKamesh Rathinasabapathy wrote:
> I am trying to bind extra arguments to my signal handler. I want to bind
> Gtk::Button as an extra argument
> like the following:
>
> button1.signal_clicked().connect(sigc::bind<Glib::ustring, int, Gtk::Button>(
> sigc::mem_fun(*this, &MAIOMainWindow::on_check_clicked),"check1", i, button1
> ));
You can put those extra arguments as private members of Your MAIOMainWindow
class.
Then you will be able to access them in your callback.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]