Re: DrawingArea and Toolbar focus issues
- From: "Richard Boaz" <riboaz xs4all nl>
- To: gtk-list gnome org
- Subject: Re: DrawingArea and Toolbar focus issues
- Date: Sat, 8 Sep 2007 18:15:32 +0200 (CEST)
This is what I do:
1) create a callback for mouse-enter events on your drawing area
2) execute gtk_grab_add() on the drawing area as part of this callback
3) all key events will now be routed correctly to your other callback(s)
4) execute gtk_grab_remove() for mouse-leave events on the drawing area
richard
====
Hi.
I've set up a GtkDrawingArea to catch keypress and keyrelease events.
However, if a toolbar created via gtk_ui_manager_get_widget() is
visible, the toolbar's first button seems to steal those events -
despite my attempts to change the focus, disable key press/release
events to the toolbar, etc. If the toolbar isn't visible, everything
works as expected. Does anyone have any suggestions on this one?
Thanks,
Brian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]