Re: event handling

On Tue, 3 Jul 2007 abhishek nextbitcpu com wrote:


does anyone have any documents describing how the evnting is handled in

this mailing list is about the development of glib and gtk+ itself,
so such things should rather be asked on gtk-list or gtk-app-devel-list:

would like to know how a particular widget is identified to deliver an
event for both keyboard type events and mouse type events.

first, read for
general X related event processing and the terminology i'm using.

second, note that all !NO_WINDOW widgets in gtk+ have their own
xwindow (wrapped as GdkWindow), and possibly subwindows by
which they can process events. some NO_WINDOW widgets also can
process events by using input-only xwindows.

third, note that events in gtk+ are propagated between widgets until
they are handled by an instance, the workings of which can be understood by reading gtkmain.c:gtk_propagate_event.



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