[gparted] Set top vertical alignment for multi-line field and value label pairs



commit 72aa552469cadbad3bcf42e1861352ee3e067130
Author: Curtis Gedak <gedakc gmail com>
Date:   Sat Apr 26 14:43:07 2014 -0600

    Set top vertical alignment for multi-line field and value label pairs
    
    A LVM volume group can contain more than one member and comprise a
    multi-line entry.  As such set the "Members" field header and value
    label pair to top vertical alignment.

 src/Dialog_Partition_Info.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Dialog_Partition_Info.cc b/src/Dialog_Partition_Info.cc
index 5b31a59..0dac5dc 100644
--- a/src/Dialog_Partition_Info.cc
+++ b/src/Dialog_Partition_Info.cc
@@ -381,7 +381,7 @@ void Dialog_Partition_Info::Display_Info()
                                2, 3, top++, bottom++, Gtk::FILL ) ;
 
                //Members
-               table ->attach( * Utils::mk_label( "<b>" + Glib::ustring( _("Members:") ) + "</b>"),
+               table ->attach( * Utils::mk_label( "<b>" + Glib::ustring( _("Members:") ) + "</b>", true, 
false, false, 0.0 /* ALIGN_TOP */ ),
                                1, 2, top, bottom, Gtk::FILL ) ;
 
                std::vector<Glib::ustring> members ;
@@ -398,7 +398,7 @@ void Dialog_Partition_Info::Display_Info()
                                members_str += members[i] ;
                        }
                }
-               table ->attach( * Utils::mk_label( members_str, true, false, true ), 2, 3, top++, bottom++, 
Gtk::FILL ) ;
+               table ->attach( * Utils::mk_label( members_str, true, false, true, 0.0 /* ALIGN_TOP */ ), 2, 
3, top++, bottom++, Gtk::FILL ) ;
        }
 
        //Right field & value pair area


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