From f8c84a404c45f9dfe2fc368192fc703243d746ef Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 18 Jan 2006 11:11:46 +0100 Subject: * 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 --- UpdateManager/UpdateManager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3