Electronics & Programming


Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » GTK+
  • » How to use gdk_window_add_filter [RSS Feed]

#1 March 11, 2008 13:57:45

Jeff C.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

How to use gdk_window_add_filter

void gdk_window_add_filter (GdkWindow *window, GdkFilterFunc function,
gpointer data);

Following is the description of this function:

Adds an event filter to window, allowing you to intercept events before
they reach GDK. This is a low-level operation and makes it easy to break
GDK and/or GTK+, so you have to know what you're doing. Pass NULL for
window to get all events for all windows, instead of events for a
specific window.

If window is set NULL, then all events for all windows can be
intercepted? In my testing, it is not the case. Some mouse events are
not intercepted such as ButtonPress. Another strange case is that it
received a xevent which type is 113, this made me confusing?

Could someone tell me how to use this function? Is there a good example
for it?


gtk-list mailing list


  • Root
  • » GTK+
  • » How to use gdk_window_add_filter [RSS Feed]

Board footer

Moderator control

Enjoy the 23rd of March

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support