From 770ce9a9e1a559250515184dde928ad19937f8d3 Mon Sep 17 00:00:00 2001 From: Mike Fleetwood Date: Mon, 19 Sep 2016 22:10:50 +0100 Subject: [PATCH] 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 --- src/Dialog_Partition_Info.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Dialog_Partition_Info.cc b/src/Dialog_Partition_Info.cc index 0bfcb6c7..8fb073f3 100644 --- a/src/Dialog_Partition_Info.cc +++ b/src/Dialog_Partition_Info.cc @@ -314,10 +314,9 @@ void Dialog_Partition_Info::Display_Info() { //status Glib::ustring str_temp ; - table ->attach( * Utils::mk_label( "" + Glib::ustring( _("Status:") ) + "" ), - 1, 2, - top, bottom, - Gtk::FILL ) ; + table->attach( *Utils::mk_label( "" + Glib::ustring( _("Status:") ) + "", + true, false, false, 0.0 /* ALIGN_TOP */ ), + 1, 2, top, bottom, Gtk::FILL ); if ( ! filesystem_accessible ) { /* TO TRANSLATORS: Not accessible (Encrypted) @@ -416,7 +415,7 @@ void Dialog_Partition_Info::Display_Info() 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