mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-08 04:58:29 +03:00
graphwidgets: Drop cairo import
We only use it for one constant, so just hardcode it.
This commit is contained in:
parent
9515a8575d
commit
c1e0bec220
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user