[maemo-developers] how to capture mouse event for a GtkWindow in maemo?
From: chunlong yu chunlong84 at gmail.comDate: Sun Apr 19 08:00:05 EEST 2009
- Previous message: Running multiple maemo-launchers?
- Next message: how to capture mouse event for a GtkWindow in maemo?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I inherit the Gtk::Window ,overwrite it's virtual member function on_button_press_event<http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Widget.html#ba72b7f8655d1a0eb1273a26894584e3>(GdkEventButton* event) and on_button_release_event<http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Widget.html#ba72b7f8655d1a0eb1273a26894584e3>(GdkEventButton* event) , and add such codes in the construction function: singal_button_press_event.connect(...) and singal_button_release_event.connect(....) or add such codes in the construction function :add_events(Gdk::EventMask::.......). Neither method can capture mouse event. how can i response mouse event for a GtkWindow in maemo? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20090419/b52e2987/attachment.htm
- Previous message: Running multiple maemo-launchers?
- Next message: how to capture mouse event for a GtkWindow in maemo?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]