summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-02-14 08:12:15 +0000
committerMatt Wilson <msw@redhat.com>2001-02-14 08:12:15 +0000
commit81203364f1933a0644038b0a8752b1983e2b2e70 (patch)
tree5b28a486520e107602d9f67588c0202464adf4a3
parentab985671350930875109429233856e43d3398fbf (diff)
downloadanaconda-81203364f1933a0644038b0a8752b1983e2b2e70.tar.gz
anaconda-81203364f1933a0644038b0a8752b1983e2b2e70.tar.xz
anaconda-81203364f1933a0644038b0a8752b1983e2b2e70.zip
grab keyboard on message windows
-rwxr-xr-xgui.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui.py b/gui.py
index 0b4300acc..b595e520c 100755
--- a/gui.py
+++ b/gui.py
@@ -249,7 +249,8 @@ class MessageWindow:
label = hbox.children ()[1]
label.set_line_wrap (TRUE)
self.window.set_position (WIN_POS_CENTER)
-
+ win = self.window.get_window()
+ win.keyboard_grab(0)
self.window.show_all ()
threads_leave ()
@@ -268,10 +269,12 @@ class MessageWindow:
self.mutex = None
threads_enter ()
self.rc = self.window.run ()
+ win.keyboard_ungrab()
threads_leave ()
else:
self.mutex = Event ()
self.mutex.wait ()
+ win.keyboard_ungrab()
class InstallInterface:
def __init__ (self, runres, nofbmode):