# work around problem that scroll_to() does not
# work when it is not realized
self.dialog_changes.realize()
self.treeview_details.realize()
self.treeview_details.set_cursor((0,))
self.treeview_details.scroll_to_point(0,0)
self.dialog_changes.window.set_functions(gtk.gdk.FUNC_MOVE)
res = self.dialog_changes.run()
self.dialog_changes.hide()
if res == gtk.RESPONSE_YES:
return True
return False
Here is what I did: I placed my own debug statements in the py file, recompiled and reran the gutsy executable from the temporary directory. The debug statements appeared in the main.log file up until the 'self.dialog_changes.set_transient_for(self.window_main)' line and stopped showing up on any line after that. This leads me to believe that either this line causes the problem itself or the problem occurs before in some other GUI function which freezes the GUI and finally hangs the entire program on this particular line.
Let me know if I can do some more debugging to get to the bottom of this.
Ok, I did some more testing and debugging on my machine:
The update-manager hangs on the this line in 'DistUpgradeVie wGtk.py' :
self.dialog_ changes. set_transient_ for(self. window_ main)
None of the lines after that line are executed:
# work around problem that scroll_to() does not changes. realize( ) details. realize( ) details. set_cursor( (0,)) details. scroll_ to_point( 0,0) changes. window. set_functions( gtk.gdk. FUNC_MOVE) changes. run() changes. hide()
# work when it is not realized
self.dialog_
self.treeview_
self.treeview_
self.treeview_
self.dialog_
res = self.dialog_
self.dialog_
if res == gtk.RESPONSE_YES:
return True
return False
Here is what I did: I placed my own debug statements in the py file, recompiled and reran the gutsy executable from the temporary directory. The debug statements appeared in the main.log file up until the 'self.dialog_ changes. set_transient_ for(self. window_ main)' line and stopped showing up on any line after that. This leads me to believe that either this line causes the problem itself or the problem occurs before in some other GUI function which freezes the GUI and finally hangs the entire program on this particular line.
Let me know if I can do some more debugging to get to the bottom of this.
Chris