[master 1/2] Allow the columns of the container combo box to flow (#1170275)

David Shea dshea at redhat.com
Thu Dec 18 20:05:12 UTC 2014


By unsetting the fixed-width properties on the combo box, the "Create a
new..." label is able to overlap with the free space column on the
container rows, removing the gulf of space between container name and
free space.
---
 pyanaconda/ui/gui/spokes/custom.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index e65316c..c626979 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -244,6 +244,15 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
         self._containerStore = self.builder.get_object("containerStore")
         self._deviceDescLabel = self.builder.get_object("deviceDescLabel")
 
+        # Set the fixed-size properties on the volume group ComboBox renderers to
+        # False so that the "Create a new..." row can overlap with the free space
+        # on the other rows. These properties are not accessible from glade.
+        cell_area = self._containerCombo.get_area()
+        descRenderer = self.builder.get_object("descRenderer")
+        freeSpaceRenderer = self.builder.get_object("freeSpaceRenderer")
+        cell_area.cell_set_property(descRenderer, "fixed-size", False)
+        cell_area.cell_set_property(freeSpaceRenderer, "fixed-size", False)
+
         self._passphraseEntry = self.builder.get_object("passphraseEntry")
 
         # Stores
-- 
2.1.0



More information about the anaconda-patches mailing list