ok, I found that I have to use `signal_activate` instead of `signal_editing_done` . I'm still wondering why this signal isn't working...
PS : I use `signal_focus_out_event()` for the case when `E1` lost the focus. regards, Nicolas Le Thu, 13 Aug 2015 22:30:33 -0400, Nicolas Jäger <[email protected]> a écrit : > Hi, > I connect this signal : > > Gtk::Entry* E1 = Gtk::manage( new Gtk::Entry() ); > E1->signal_editing_done().connect( sigc::mem_fun( this, > >KMM_engine::test ) ) > > the API says : > "Gtk::Entry is emitting it when the user presses Enter." > > the `test` function is just a > std::cout << "test" << std::endl; > > so if `E1` is focused and if I hit `enter` I should get `test`called > right ? because actually `test` is not called and I don't see why. > > Actually what I'm trying to do is to call `test`, when the user > press enter when `E1` is focused, but I also want to call it when `E1` > lost the focus (by clicking somewhere else). > > regards, > Nicolas. > _______________________________________________ > gtkmm-list mailing list > [email protected] > https://mail.gnome.org/mailman/listinfo/gtkmm-list _______________________________________________ gtkmm-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gtkmm-list
