Description: Workaround a random crash during progress dialog expanding It seems that either the gtk.Window.get_size() method doesn't always return a tuple or that the gtk.Window.set_size() method doesn't correctly handle * arguments correctly. . Since we cannot reproduce this problem and the code in aptdaemon is valid this patch works arround the crash. Author: Sebastian Heinlein Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/898851 Forwarded: no Last-Update: 2012-12-30 === modified file 'aptdaemon/gtk3widgets.py' --- old/aptdaemon/gtk3widgets.py 2012-09-05 23:34:56 +0000 +++ new/aptdaemon/gtk3widgets.py 2012-12-30 08:14:09 +0000 @@ -801,7 +801,10 @@ if expander.get_expanded(): self.set_resizable(True) if self._expanded_size: - self.resize(*self._expanded_size) + try: + self.resize(self._expanded_size[0], self._expanded_size[1]) + except (IndexError, TypeError): + pass else: self._expanded_size = self.get_size() self.set_resizable(False)