[maemo-developers] how to catch mouse event in maemoMM?

From: chunlong yu chunlong84 at gmail.com
Date: Fri Apr 24 10:10:42 EEST 2009
I write such code in maemo:

MyWindow::MyWindow(void)
{
  signal_button_press_event().connect(sigc::mem_fun(*this,
&MyWindow::on_button_press_event),false);
  signal_button_release_event().connect(sigc::mem_fun(*this,
&MyWindow::on_button_release_event),false);
}
bool  MyWindow::on_button_press_event (GdkEventButton* event)
{
  ....................
  return true;
}

bool  MyWindow::on_button_release_event(GdkEventButton* event)
{
    ...........................
       return true;
}

but I can't catch mouse press and release event, why?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20090424/996636f2/attachment.htm 
More information about the maemo-developers mailing list