diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-01-18 11:11:46 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-01-18 11:11:46 +0100 |
| commit | f8c84a404c45f9dfe2fc368192fc703243d746ef (patch) | |
| tree | 4db836d7f25611bf35589eef5e7c8f9f255cfef6 /UpdateManager | |
| parent | e4f7575420eca0112e67db253d3c7837c3d31d1b (diff) | |
| download | python-apt-f8c84a404c45f9dfe2fc368192fc703243d746ef.tar.gz | |
* show the progress window with 0,5s timeout to workaround a problem that gtk dosn't get the window sizes correct and shwos a double arrow etc
Diffstat (limited to 'UpdateManager')
| -rw-r--r-- | UpdateManager/UpdateManager.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py index 250ab4a7..7fd6a568 100644 --- a/UpdateManager/UpdateManager.py +++ b/UpdateManager/UpdateManager.py @@ -461,10 +461,13 @@ class UpdateManager(SimpleGladeApp): win.hide() return True + def plug_added(self, sock, win): - win.show() while gtk.events_pending(): gtk.main_iteration() + # hack around the problem that too early showing has unpleasnt effect + # (like double arrow, incorrect window size etc) + gobject.timeout_add(500, lambda win: win.show(), win) def on_button_reload_clicked(self, widget): #print "on_button_reload_clicked" |
