[Sugar-devel] [PATCH sugar] Fix traceback when closing object chooser

Daniel Narvaez dwnarvaez at gmail.com
Tue Oct 30 08:11:29 EDT 2012


From: Daniel Narvaez <dwnarvaez at gmail.com>

The code had not been updated to the introspection API.
---
 src/jarabe/journal/objectchooser.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/jarabe/journal/objectchooser.py b/src/jarabe/journal/objectchooser.py
index d860b0d..8a664c4 100644
--- a/src/jarabe/journal/objectchooser.py
+++ b/src/jarabe/journal/objectchooser.py
@@ -104,7 +104,7 @@ class ObjectChooser(Gtk.Window):
         # TODO: Should we disconnect the signal here?
 
     def __window_closed_cb(self, screen, window, parent):
-        if window.get_xid() == parent.xid:
+        if window.get_xid() == parent.get_xid():
             self.destroy()
 
     def __entry_activated_cb(self, list_view, uid):
-- 
1.7.10.2



More information about the Sugar-devel mailing list