[pygtk] Events from embedded X11 window

Thomas de Grenier de Latour degrenier at easyconnect.fr
Mon Oct 17 22:19:44 WST 2005


Hi,

I'm trying to get some events from an X11 (non-gtk) window
plugged in a gtk.Socket.  Basically, i'm trying to rewrite in pyGtk
a gtk2-perl script called "rxvt-tabbed" [1], because i would like
to change its behavior a bit and i'm not comfortable with perl. And
for that, i would need to know when some properties (_NET_WM_NAME)
of the terminal window are changed, and that's were i'm stuck.

I've thought i could do it with an add_filter(term_event_filter) on
the gtk.gdk.Window which is plugged in my Socket, but i don't get
anything meaningful reaching the filter function, most likely
because of bug #156948 [2]. 

Do you know other ways to do that, or workarounds for that bug?

Thanks in advance, and sorry if i'm missing something obvious, 
i'm a bit new to pyGtk programming...

[1] http://cvs.schmorp.de/browse/*checkout*/rxvt-unicode/doc/rxvt-tabbed
[2] http://bugzilla.gnome.org/show_bug.cgi?id=156948

-- 
TGL.


More information about the pygtk mailing list