summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-06-28 20:12:18 +0000
committerMike Fulbright <msf@redhat.com>2002-06-28 20:12:18 +0000
commit64e14c1984b08bfeefae70ee44fb9efe52e33f41 (patch)
treed209e84dd4b087a525e232b9d1d2f41f30e567c1
parentb8bf4a92d4e0dcc0e11f3c014a5c76d506c28f31 (diff)
downloadanaconda-64e14c1984b08bfeefae70ee44fb9efe52e33f41.tar.gz
anaconda-64e14c1984b08bfeefae70ee44fb9efe52e33f41.tar.xz
anaconda-64e14c1984b08bfeefae70ee44fb9efe52e33f41.zip
make title sensitive to if object is new or old
-rw-r--r--iw/lvm_dialog_gui.py14
-rw-r--r--iw/partition_dialog_gui.py7
-rw-r--r--iw/raid_dialog_gui.py7
3 files changed, 24 insertions, 4 deletions
diff --git a/iw/lvm_dialog_gui.py b/iw/lvm_dialog_gui.py
index 48f381901..6768ce016 100644
--- a/iw/lvm_dialog_gui.py
+++ b/iw/lvm_dialog_gui.py
@@ -325,7 +325,12 @@ class VolumeGroupEditor:
def editLogicalVolume(self, logrequest, isNew = 0):
- dialog = gtk.Dialog(_("Make Logical Volume"), self.parent)
+ if isNew:
+ tstr = _("Make Logical Volume")
+ else:
+ tstr = _("Edit Logical Volume")
+
+ dialog = gtk.Dialog(tstr, self.parent)
gui.addFrame(dialog)
dialog.add_button('gtk-cancel', 2)
dialog.add_button('gtk-ok', 1)
@@ -850,7 +855,12 @@ class VolumeGroupEditor:
self.dialog = None
return
- dialog = gtk.Dialog(_("Make LVM Device"), self.parent)
+ if isNew:
+ tstr = _("Make LVM Device")
+ else:
+ tstr = _("Edit LVM Device")
+
+ dialog = gtk.Dialog(tstr, self.parent)
gui.addFrame(dialog)
dialog.add_button('gtk-cancel', 2)
dialog.add_button('gtk-ok', 1)
diff --git a/iw/partition_dialog_gui.py b/iw/partition_dialog_gui.py
index 16e3b9786..8a26ae6f6 100644
--- a/iw/partition_dialog_gui.py
+++ b/iw/partition_dialog_gui.py
@@ -255,7 +255,12 @@ class PartitionEditor:
self.intf = intf
self.parent = parent
- self.dialog = gtk.Dialog(_("Add Partition"), self.parent)
+ if isNew:
+ tstr = _("Add Partition")
+ else:
+ tstr = _("Edit Partition")
+
+ self.dialog = gtk.Dialog(tstr, self.parent)
gui.addFrame(self.dialog)
self.dialog.add_button('gtk-cancel', 2)
self.dialog.add_button('gtk-ok', 1)
diff --git a/iw/raid_dialog_gui.py b/iw/raid_dialog_gui.py
index 7bccb0bde..4105ba320 100644
--- a/iw/raid_dialog_gui.py
+++ b/iw/raid_dialog_gui.py
@@ -272,7 +272,12 @@ class RaidEditor:
dlg.destroy()
return
- dialog = gtk.Dialog(_("Make RAID Device"), self.parent)
+ if isNew:
+ tstr = _("Make RAID Device")
+ else:
+ tstr = _("Edit RAID Device")
+
+ dialog = gtk.Dialog(tstr, self.parent)
gui.addFrame(dialog)
dialog.add_button('gtk-cancel', 2)
dialog.add_button('gtk-ok', 1)