/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: Curtis Hovey
  • Date: 2012-09-02 14:49:20 UTC
  • mto: This revision was merged to the branch mainline in revision 795.
  • Revision ID: sinzui.is@verizon.net-20120902144920-99q0g8aixxbuwqz7
Replace get_style() with get_style_context() calls for GTK3

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().font_desc
 
93
            font_desc = widget.get_style_context().get_font(
 
94
                Gtk.StateType.NORMAL)
94
95
            metrics = pango_ctx.get_metrics(font_desc, None)
95
96
            ascent = PANGO_PIXELS(metrics.get_ascent())
96
97
            descent = PANGO_PIXELS(metrics.get_descent())