summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2013-06-13 14:10:59 -0400
committerCole Robinson <crobinso@redhat.com>2013-06-13 14:10:59 -0400
commitb8d3bde4a2890b2f46ac6d758aca4bf37b3a2bcb (patch)
tree8ed1ae728fab5e9e161af9ed8ce86bf1b8478c78
parenteeba8b6d0b4de39ed9772a65beef62f666079c7c (diff)
downloadvirt-manager-b8d3bde4a2890b2f46ac6d758aca4bf37b3a2bcb.tar.gz
autodrawer: Fix a gtk assertion at app shutdown
-rw-r--r--virtManager/autodrawer.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/virtManager/autodrawer.py b/virtManager/autodrawer.py
index f7b115dd..1f6fe473 100644
--- a/virtManager/autodrawer.py
+++ b/virtManager/autodrawer.py
@@ -241,11 +241,20 @@ class OverBox(Gtk.Box):
Gtk.Box.do_unrealize(self)
self.underWin.set_user_data(None)
- self.underWin.destroy()
- self.underWin = None
-
self.overWin.set_user_data(None)
- self.overWin.destroy()
+
+ # XXX: Destroying this windows gives a warning when the vmmDetails
+ # window is destroyed:
+ #
+ # /usr/lib64/python2.7/site-packages/gi/types.py:113: Warning: g_object_unref: assertion `G_IS_OBJECT (object)' failed
+ #
+ # There's something weird here with destroying this gdk window,
+ # then destroying the over/under widgets. Error seems harmless
+ # but lets shut it up anyways.
+ #self.underWin.destroy()
+ #self.overWin.destroy()
+
+ self.underWin = None
self.overWin = None
def do_size_request(self, req):