Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/hardware
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-03-07 21:23:33 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-03-07 21:23:33 (GMT)
commit11320e8883f9043edabe78ffad258397468e3a38 (patch)
tree397e64aaf9727db3a9b73de745dacba3418df37e /shell/hardware
parent4c05c4247cd808b02793386a260eccd99d92b47f (diff)
Ensure entry can accept input
Diffstat (limited to 'shell/hardware')
-rw-r--r--shell/hardware/wepkeydialog.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/hardware/wepkeydialog.py b/shell/hardware/wepkeydialog.py
index 13c7908..e4d1174 100644
--- a/shell/hardware/wepkeydialog.py
+++ b/shell/hardware/wepkeydialog.py
@@ -23,7 +23,7 @@ IW_AUTH_ALG_SHARED_KEY = 0x00000002
class WEPKeyDialog(gtk.Dialog):
def __init__(self, net, async_cb, async_err_cb):
- gtk.Dialog.__init__(self)
+ gtk.Dialog.__init__(self, flags=gtk.DIALOG_MODAL)
self.set_title("Wireless Key Required")
self._net = net
@@ -48,6 +48,8 @@ class WEPKeyDialog(gtk.Dialog):
self.set_default_response(gtk.RESPONSE_OK)
self._update_response_sensitivity()
+ self._entry.grab_focus()
+
def get_key(self):
return self._entry.get_text()