summaryrefslogtreecommitdiffstats
path: root/fstab.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-02-02 18:02:05 +0000
committerMatt Wilson <msw@redhat.com>2000-02-02 18:02:05 +0000
commit48f3ac2ea801b23933201626dae6a04c39e2329c (patch)
tree81fede6758ddcb4b47f45c5d92a9dbf6ec0cfd26 /fstab.py
parente6ad5884a6e317136bcd53e60cdbb300f6c47bb3 (diff)
downloadanaconda-48f3ac2ea801b23933201626dae6a04c39e2329c.tar.gz
anaconda-48f3ac2ea801b23933201626dae6a04c39e2329c.tar.xz
anaconda-48f3ac2ea801b23933201626dae6a04c39e2329c.zip
make accel keys work in disk druid
Diffstat (limited to 'fstab.py')
-rw-r--r--fstab.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/fstab.py b/fstab.py
index d41881393..d2780da4c 100644
--- a/fstab.py
+++ b/fstab.py
@@ -616,16 +616,22 @@ class Fstab:
#self.shouldRunDruid = 0
class GuiFstab(Fstab):
+ def accel (self, widget, area):
+ self.accelgroup = self.GtkAccelGroup (_obj = widget.get_data ("accelgroup"))
+ self.toplevel = widget.get_toplevel()
+ self.toplevel.add_accel_group (self.accelgroup)
def runDruid(self, callback):
self.ddruid.setCallback (callback)
-
bin = self.GtkFrame (None, _obj = self.ddruid.getWindow ())
+ bin.connect ("draw", self.accel)
bin.set_shadow_type (self.SHADOW_NONE)
self.ddruid.edit ()
return bin
def runDruidFinished(self):
+ if self.accelgroup:
+ self.toplevel.remove_accel_group (self.accelgroup)
self.ddruid.next ()
self.updateFsCache()
# yikes! this needs to be smarter
@@ -640,7 +646,9 @@ class GuiFstab(Fstab):
readOnly, waitWindow, messageWindow)
self.GtkFrame = GtkFrame
+ self.GtkAccelGroup = GtkAccelGroup
self.SHADOW_NONE = SHADOW_NONE
+ self.accelgroup = None
class NewtFstab(Fstab):