From dd45270ba145c0a41d835d0442d0ec1053a08b3e Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sun, 14 Apr 2013 16:39:25 -0400 Subject: [PATCH] autodrawer: Drop use of cairo bindings We can use Gdk instead --- virtManager/autodrawer.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/virtManager/autodrawer.py b/virtManager/autodrawer.py index c9de6c96e..ade55985e 100644 --- a/virtManager/autodrawer.py +++ b/virtManager/autodrawer.py @@ -23,7 +23,6 @@ # # pylint: disable=E0611 -from gi.repository import cairo from gi.repository import Gdk from gi.repository import GLib from gi.repository import Gtk @@ -69,7 +68,7 @@ class OverBox(Gtk.Box): return ret def _get_under_window_geometry(self): - geo = cairo.RectangleInt() + geo = Gdk.Rectangle() actual_min = self._get_actual_min() geo.x = 0 @@ -80,7 +79,7 @@ class OverBox(Gtk.Box): return geo def _get_over_window_geometry(self): - geo = cairo.RectangleInt() + geo = Gdk.Rectangle() boxwidth = self.allocation.width expand = True fill = True