diff options
author | Peter Jones <pjones@redhat.com> | 2005-03-12 03:01:54 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2005-03-12 03:01:54 +0000 |
commit | b6c0d8fb54f90b8bc30b3d870997385954c64164 (patch) | |
tree | 912f3c026f2dc0b822691675d4e7e283cd745a72 /iw/bootlocwidget.py | |
parent | d267b1e14b912f42007a1a7fed1eb8cd2bd6d6be (diff) | |
download | anaconda-b6c0d8fb54f90b8bc30b3d870997385954c64164.tar.gz anaconda-b6c0d8fb54f90b8bc30b3d870997385954c64164.tar.xz anaconda-b6c0d8fb54f90b8bc30b3d870997385954c64164.zip |
fix warnings about gtk.TRUE and gtk.FALSE, partly based on a patch
from Colin Walters.
Diffstat (limited to 'iw/bootlocwidget.py')
-rw-r--r-- | iw/bootlocwidget.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/iw/bootlocwidget.py b/iw/bootlocwidget.py index acf85b616..31bdd634f 100644 --- a/iw/bootlocwidget.py +++ b/iw/bootlocwidget.py @@ -33,7 +33,7 @@ class BootloaderLocationWidget: self.driveOrder = bl.drivelist self.usingGrub = self.bl.useGrub() - locationBox = gtk.VBox (gtk.FALSE, 2) + locationBox = gtk.VBox (False, 2) locationBox.set_border_width(5) label = gtk.Label(_("Install Boot Loader record on:")) @@ -42,7 +42,7 @@ class BootloaderLocationWidget: spacer = gtk.Label("") spacer.set_size_request(10, 1) - locationBox.pack_start(spacer, gtk.FALSE) + locationBox.pack_start(spacer, False) choices = fsset.bootloaderChoices(diskset, self.bl) self.bootDevices = {} @@ -55,20 +55,20 @@ class BootloaderLocationWidget: (device, desc) = choices[key] radio = gtk.RadioButton(radio, ("/dev/%s %s" % (device, _(desc)))) - locationBox.pack_start(radio, gtk.FALSE) + locationBox.pack_start(radio, False) self.bootDevices[key] = (radio, device, desc) if self.bl.getDevice() == device: - radio.set_active(gtk.TRUE) + radio.set_active(True) else: - radio.set_active(gtk.FALSE) + radio.set_active(False) spacer = gtk.Label("") spacer.set_size_request(25, 1) - locationBox.pack_start(spacer, gtk.FALSE) + locationBox.pack_start(spacer, False) orderButton = gtk.Button(_("_Change Drive Order")) - locationBox.pack_start(orderButton, gtk.FALSE) + locationBox.pack_start(orderButton, False) orderButton.connect("clicked", self.editDriveOrder) self.setMbrLabel(self.driveOrder[0]) @@ -81,7 +81,7 @@ class BootloaderLocationWidget: def editDriveOrder(self, *args): dialog = gtk.Dialog(_("Edit Drive Order"), flags = gtk.DIALOG_MODAL) gui.addFrame(dialog) - dialog.set_modal(gtk.TRUE) + dialog.set_modal(True) dialog.set_position(gtk.WIN_POS_CENTER) label = gui.WrappingLabel(_("Arrange the drives to be in the same " |