mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-08 15:13:11 -06:00
autodrawer: Drop use of cairo bindings
We can use Gdk instead
This commit is contained in:
parent
d440ec4d0d
commit
dd45270ba1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user