[pygtk] Painting in text view margin and the "draw" signal

Osmo Salomaa otsaloma at iki.fi
Sun Feb 26 09:51:25 WST 2012


Hi,

With Gtk2 and the old static bindings I made use of the text view right
margin by painting a pango layout there. Now I'm trying to port my code
to Gtk3 and the introspection bindings. Documentation [1] tells me that
I should be using the "draw" signal instead of "expose-event", but my
callback for the "draw" signal doesn't even seem to get called. Is there
some significant difference between these two signals? Anyone yet ported
similar code? Below is my non-working half-ported minimal example.

    https://gist.github.com/1912166

[1] http://developer.gnome.org/gtk3/3.3/ch25s02.html

-- 
Osmo Salomaa <otsaloma at iki.fi>


More information about the pygtk mailing list