Resurrecting this thread since I need to do something similar
but different. For the selection rectangle I guess you can make a layer
that is normal GTK canvas on top and then draw on it, I had some old
code but it turned out it was PyQT not GTK...
Anyway on to my problem, I need to draw circle markers of a
given area (so they must scale with the zoom), now I know I could do
this by removing and regenerating the pixbuffs for each zoom event (I
should be able to calculate [I think...] the real world
radius->pixel radius based on the viewport data) but that's more
than a little wasteful, is there a better way ?
/Eero
--
Serge Noiraud
Linux, c'est mieux surtout Debian. Firefox, c'est mieux. LibreOffice, c'est mieux.
Toute la vérité, rien que la vérité.
Développeur projet gramps : http://www.gramps-project.org/