events do NOT respond :S



For some reason events are not received by my program, while I think it should.
I use this piece of code:
  buttonBack.set_events(Gdk::ALL_EVENTS_MASK);
buttonBack.signal_button_press_event().connect(sigc::mem_fun(*this,&MainWindow::BackClick));

Where buttonBack is a Gtk::Button. Bool MainWindow::BackClick(GdkEventButton* event) is a simple function that shows some message like "hello" using std::cout.
What is wrong with my code?



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