/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to branchview/graphcell.py

  • Committer: Jelmer Vernooij
  • Date: 2012-03-23 13:45:02 UTC
  • Revision ID: jelmer@samba.org-20120323134502-fsxyhpb0ilbabozp
Ignore bzr-handle-patch in software center.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
            return self._box_size
91
91
        except AttributeError:
92
92
            pango_ctx = widget.get_pango_context()
93
 
            font_desc = widget.get_style_context().get_font(
94
 
                Gtk.StateType.NORMAL)
 
93
            font_desc = widget.get_style().font_desc
95
94
            metrics = pango_ctx.get_metrics(font_desc, None)
96
95
            ascent = PANGO_PIXELS(metrics.get_ascent())
97
96
            descent = PANGO_PIXELS(metrics.get_descent())