Line wrap file system status value in the Information dialog (#771693)

Again this is to handle a long list of mount points for a single
partition.  To prevent the file system status value of "Mounted on [list
of 20 mount points]" causing the dialog to become wider than the screen,
line wrap the text.  This instead makes the dialog taller, which already
automatically scrolls vertically as needed.

Bug 771693 - Mount Point column is wider than the screen on openSUSE
             using btrfs root with lots of mounted subvolumes
This commit is contained in:
Mike Fleetwood 2016-09-19 22:10:50 +01:00 committed by Curtis Gedak
parent 1f4f0a4b67
commit 770ce9a9e1
1 changed files with 4 additions and 5 deletions

View File

@ -314,10 +314,9 @@ void Dialog_Partition_Info::Display_Info()
{ {
//status //status
Glib::ustring str_temp ; Glib::ustring str_temp ;
table ->attach( * Utils::mk_label( "<b>" + Glib::ustring( _("Status:") ) + "</b>" ), table->attach( *Utils::mk_label( "<b>" + Glib::ustring( _("Status:") ) + "</b>",
1, 2, true, false, false, 0.0 /* ALIGN_TOP */ ),
top, bottom, 1, 2, top, bottom, Gtk::FILL );
Gtk::FILL ) ;
if ( ! filesystem_accessible ) if ( ! filesystem_accessible )
{ {
/* TO TRANSLATORS: Not accessible (Encrypted) /* TO TRANSLATORS: Not accessible (Encrypted)
@ -416,7 +415,7 @@ void Dialog_Partition_Info::Display_Info()
str_temp = _("Not mounted") ; str_temp = _("Not mounted") ;
} }
table ->attach( * Utils::mk_label( str_temp, true, false, true ), 2, 3, top++, bottom++, Gtk::FILL ) ; table->attach( *Utils::mk_label( str_temp, true, true, true ), 2, 3, top++, bottom++, Gtk::FILL );
} }
//Optional, LVM2 Volume Group name //Optional, LVM2 Volume Group name