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.
This commit is contained in:
Curtis Gedak 2014-04-26 14:43:07 -06:00 committed by Mike Fleetwood
parent 6efa623401
commit 72aa552469
1 changed files with 2 additions and 2 deletions

View File

@ -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