Re: signal_enter_notify_event() does nothing
- From: HeavyJoost <heavyjoost gmail com>
- To: gtkmm-list gnome org
- Subject: Re: signal_enter_notify_event() does nothing
- Date: Thu, 29 Sep 2005 05:34:22 +0200
I use gcc and toolUndo->add_events (Gdk::POINTER_MOTION_MASK |
Gdk::ENTER_NOTIFY_MASK ); doesn't change anything either.
Let me show some sourcecode:
class MainWindow:public Gtk::Window {
...
protected:
Gtk::ToolButton *toolUndo;
virtual bool nothingExec(GdkEventCrossing* event);
virtual bool nothingClick(GdkEventButton* event);
...
};
MainWindow::MainWindow(){
...
toolUndo=Gtk::manage(new Gtk::ToolButton(iconToolUndo));
toolUndo->add_events (Gdk::POINTER_MOTION_MASK |
Gdk::ENTER_NOTIFY_MASK );
toolUndo->signal_enter_notify_event().connect(sigc::mem_fun(*this,&MainWindow::nothingExec));
toolUndo->signal_button_press_event().connect(sigc::mem_fun(*this,&MainWindow::nothingClick));
toolUndo->signal_clicked().connect(sigc::mem_fun(*this,
&MainWindow::nothingToDo));
...
}
void MainWindow::nothingToDo(){
std::cout << "nothing to do" << std::endl;
}
bool MainWindow::nothingExec(GdkEventCrossing* event){
std::cout << "nothing to exec" << std::endl;
return false;
}
bool MainWindow::nothingClick(GdkEventButton* event){
std::cout << "nothing to click" << std::endl;
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]