From c1e0bec2204ae8f8a2c55cfe68ef47984db24d16 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Thu, 11 Apr 2013 17:25:28 -0400 Subject: [PATCH] graphwidgets: Drop cairo import We only use it for one constant, so just hardcode it. --- virtManager/graphwidgets.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/virtManager/graphwidgets.py b/virtManager/graphwidgets.py index 61997bcb0..dc6a57004 100644 --- a/virtManager/graphwidgets.py +++ b/virtManager/graphwidgets.py @@ -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)