graphwidgets: Drop cairo import

We only use it for one constant, so just hardcode it.
This commit is contained in:
Cole Robinson 2013-04-11 17:25:28 -04:00
parent 9515a8575d
commit c1e0bec220

View File

@ -19,7 +19,7 @@
from gi.repository import GObject
from gi.repository import Gtk
# pylint: enable=E0611
import cairo
def rect_print(name, rect):
# For debugging
@ -165,7 +165,8 @@ class CellRendererSparkline(Gtk.CellRenderer):
graph_x += xalign_space
cr.set_line_width(3)
cr.set_line_cap(cairo.LINE_CAP_ROUND)
# 1 == LINE_CAP_ROUND
cr.set_line_cap(1)
# Draw gray graph border
cr.set_source_rgb(0.8828125, 0.8671875, 0.8671875)