diff options
author | Matt Wilson <msw@redhat.com> | 2001-07-03 00:38:32 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-07-03 00:38:32 +0000 |
commit | 799fd0fc2912b0ce9dc03399c87225cf42c0dad3 (patch) | |
tree | c4426a121ce326b54de2f331045da2d797b408f5 | |
parent | 06cbcaa4b318b6c1a9cb63e94683316478ad2fb8 (diff) | |
download | anaconda-799fd0fc2912b0ce9dc03399c87225cf42c0dad3.tar.gz anaconda-799fd0fc2912b0ce9dc03399c87225cf42c0dad3.tar.xz anaconda-799fd0fc2912b0ce9dc03399c87225cf42c0dad3.zip |
move the render callback to an idle function. This allows events to be serviced in the mainloop before any action that the render callback takes is done. Fixes GUI progress on good kickstart installs
-rwxr-xr-x | gui.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -495,6 +495,10 @@ class InstallControlWindow: self.buff = _("Release notes are missing.\n") + def handleRenderCallback(self): + self.currentWindow.renderCallback() + idle_remove(self.handle) + def setScreen (self): (step, args) = self.dispatch.currentStep() if not step: @@ -527,7 +531,8 @@ class InstallControlWindow: self.installFrame.set_label (ics.getTitle ()) self.installFrame.add (new_screen) self.installFrame.show_all () - self.currentWindow.renderCallback() + + self.handle = idle_add(self.handleRenderCallback) if self.reloadRcQueued: self.window.reset_rc_styles () @@ -590,6 +595,7 @@ class InstallControlWindow: self.dispatch = dispatch self.setLanguage(locale) self.helpWin = None + self.handle = None def keyRelease (self, window, event): if ((event.keyval == GDK.KP_Delete or event.keyval == GDK.Delete) |