[gparted] Line wrap file system status value in the Information dialog (#771693)
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Line wrap file system status value in the Information dialog (#771693)
- Date: Wed, 5 Oct 2016 17:09:55 +0000 (UTC)
commit 770ce9a9e1a559250515184dde928ad19937f8d3
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Mon Sep 19 22:10:50 2016 +0100
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 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/Dialog_Partition_Info.cc b/src/Dialog_Partition_Info.cc
index 0bfcb6c..8fb073f 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( "<b>" + Glib::ustring( _("Status:") ) + "</b>" ),
- 1, 2,
- top, bottom,
- Gtk::FILL ) ;
+ table->attach( *Utils::mk_label( "<b>" + Glib::ustring( _("Status:") ) + "</b>",
+ 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]