summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJoel Granados Moreno <jgranado@redhat.com>2009-09-29 13:30:12 +0200
committerJoel Granados Moreno <jgranado@redhat.com>2009-10-01 16:57:20 +0200
commitdf689b3baf6df18e4703f5525de866c690204f94 (patch)
tree245bdf16fcbb3cfe8e8656be49302567505f44a4 /ui
parentb86c0f44698b08bce964b74b360ce848643d7905 (diff)
downloadanaconda-df689b3baf6df18e4703f5525de866c690204f94.tar.gz
anaconda-df689b3baf6df18e4703f5525de866c690204f94.tar.xz
anaconda-df689b3baf6df18e4703f5525de866c690204f94.zip
Add the create LV option.
* iw/datacombo.py (set_active_text): Make sure we return False when we don't find 't'. * iw/partition_gui.py (createCB): Activate the 'create lv' radio button only when there is free space in a Volume Group. Create a Combo box with a list of the Volume Group(s) that have free space. Pre-select the Volume group that the user has selected in the tree view. (editCB): Call the editLVMLogicalVolume with its new parameters. (editLVMLogicalVolume): Change the parameters for this function. (device, isNew = False) -> (lv = None, vg = None). In this way if lv is none and vg is a Volume Group we are creating a new LV in the vg Volume Group. If lv is not None, we are editing lv. * ui/create-storage.glade: Put the 'create lv' radio button in a Horizontal box so we can fit the Volume Group Combo Box.
Diffstat (limited to 'ui')
-rw-r--r--ui/create-storage.glade25
1 files changed, 18 insertions, 7 deletions
diff --git a/ui/create-storage.glade b/ui/create-storage.glade
index 46e063315..02a786aaa 100644
--- a/ui/create-storage.glade
+++ b/ui/create-storage.glade
@@ -290,14 +290,25 @@
<property name="visible">True</property>
<property name="orientation">vertical</property>
<child>
- <widget class="GtkRadioButton" id="create_storage_rb_lvm_lv">
- <property name="label" translatable="yes">LVM Logical Volume</property>
+ <widget class="GtkHBox" id="create_storage_hb_lvm_lv">
<property name="visible">True</property>
- <property name="sensitive">False</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="draw_indicator">True</property>
- <property name="group">create_storage_rb_standard_part</property>
+ <child>
+ <widget class="GtkRadioButton" id="create_storage_rb_lvm_lv">
+ <property name="label" translatable="yes">LVM Logical Volume</property>
+ <property name="visible">True</property>
+ <property name="sensitive">False</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">create_storage_rb_standard_part</property>
+ </widget>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="position">0</property>