[gnome-boxes] libvirt-machine-props: Correctly align property descriptions



commit 725814aa0400fd1fda97e29481e8a331712dd373
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Feb 5 20:46:37 2015 +0000

    libvirt-machine-props: Correctly align property descriptions
    
    Commit d833722 aligned all property descriptions towards the end but we
    don't want that in case of resource properties since their descriptions
    are on a separate line than their widgets.
    
    Lets align resource property descriptions towards the start.

 src/libvirt-machine-properties.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index 2d4fdcd..059d915 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -449,6 +449,7 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
                                               max_ram * Osinfo.KIBIBYTES,
                                               64 * Osinfo.MEBIBYTES,
                                               FormatSizeFlags.IEC_UNITS);
+            property.description_alignment = Gtk.Align.START;
             property.widget.margin_top = 5;
             if ((VMConfigurator.is_install_config (machine.domain_config) ||
                  VMConfigurator.is_live_config (machine.domain_config)) &&
@@ -534,6 +535,7 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
                                               min_storage,
                                               max_storage,
                                               256 * MEGABYTES);
+            property.description_alignment = Gtk.Align.START;
             // Disable 'save on timeout' all together since that could lead us to very bad user experience:
             // You accidently increase the capacity to too high value and if you are not quick enough to 
change
             // it again, you'll not be able to correct this ever as we don't support shrinking of volumes.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]