Re: event handling



On Tue, 3 Jul 2007 abhishek nextbitcpu com wrote:

Hello,

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

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:

        http://mail.gnome.org/mailman/listinfo/gtk-list
        http://mail.gnome.org/archives/gtk-list/
        http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
        http://mail.gnome.org/archives/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 http://ftp.xfree86.org/pub/XFree86/4.6.0/doc/xlib.txt 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.

--abhishek

---
ciaoTJ



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