Comment 2 for bug 536953

Revision history for this message
donquixote (lemon-head-bw) wrote :

So. Here we have a very naive patch, which seems to work, but probably just hides the problem.

/usr/lib/python2.6/dist-packages/hamster/widgets/facttree.py, lines 98 ff (on my version)
class FactTree(gtk.TreeView): def __init__(self):

old:
<code>
        pixmap = gtk.gdk.Pixmap(None, 10, 10, 24)
        _test_context = pixmap.cairo_create()
        self._test_layout = _test_context.create_layout()
</code>

new:
<code>
        pixmap = gtk.gdk.Pixmap(None, 10, 10, 24)
        """ patch """
        try :
          _test_context = pixmap.cairo_create()
        except :
          return
        self._test_layout = _test_context.create_layout()
</code>