Origin: http://bazaar.launchpad.net/~michael-sheldon/jokosher/cairo_fix/revision/1105 Description: Avoid use of poorly documented CairoContext.reset_clip() method, which has changed usage between pycairo versions. Bug-Ubuntu: https://bugs.launchpad.net/bugs/548761 --- Jokosher/VUWidget.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- jokosher-0.11.5.orig/Jokosher/VUWidget.py +++ jokosher-0.11.5/Jokosher/VUWidget.py @@ -306,6 +306,7 @@ class VUWidget(gtk.DrawingArea): """ ctx = widget.window.cairo_create() + ctx.save() rect = self.get_allocation() @@ -320,8 +321,8 @@ class VUWidget(gtk.DrawingArea): ctx.set_source_surface(self.source, 0, 0) ctx.paint() - # Reset the clip region - ctx.reset_clip() + # Restore the clipping region from saved context + ctx.restore() # Draw the current volume level bar, with highlight if appropriate vpos = self.__GetVolumeHandleYPos()