summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-07-03 00:38:32 +0000
committerMatt Wilson <msw@redhat.com>2001-07-03 00:38:32 +0000
commit799fd0fc2912b0ce9dc03399c87225cf42c0dad3 (patch)
treec4426a121ce326b54de2f331045da2d797b408f5
parent06cbcaa4b318b6c1a9cb63e94683316478ad2fb8 (diff)
downloadanaconda-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-xgui.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/gui.py b/gui.py
index f8a840356..7f859a066 100755
--- a/gui.py
+++ b/gui.py
@@ -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)