From 2d8e245d7e025105e96077cfe1853268ee26ce6b Mon Sep 17 00:00:00 2001 From: Bart Hakvoort Date: Thu, 9 Feb 2006 21:54:42 +0000 Subject: [PATCH] set a min. width for detailstree instead of deducing it from the * src/Dialog_Progress.cc: set a min. width for detailstree instead of deducing it from the textlength. * src/VBox_VisualDisk.cc: small fix to reap 'lost' pixels. --- ChangeLog | 6 ++++++ src/Dialog_Progress.cc | 2 +- src/VBox_VisualDisk.cc | 6 +++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c40863e7..5c80d2cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-02-09 Bart Hakvoort + + * src/Dialog_Progress.cc: set a min. width for detailstree instead of + deducing it from the textlength. + * src/VBox_VisualDisk.cc: small fix to reap 'lost' pixels. + 2006-02-09 Bart Hakvoort * include/Win_GParted.h, diff --git a/src/Dialog_Progress.cc b/src/Dialog_Progress.cc index b71185bb..c4dfd65e 100644 --- a/src/Dialog_Progress.cc +++ b/src/Dialog_Progress.cc @@ -67,7 +67,7 @@ Dialog_Progress::Dialog_Progress( const std::vector & operations ) treeview_operations .append_column( "", treeview_operations_columns .operation_icon ); treeview_operations .append_column( "", treeview_operations_columns .operation_description ); treeview_operations .append_column( "", treeview_operations_columns .status_icon ); - treeview_operations .set_size_request( -1, 250 ) ; + treeview_operations .set_size_request( 500, 250 ) ; treeview_operations .set_rules_hint( true ) ; //fill 'er up diff --git a/src/VBox_VisualDisk.cc b/src/VBox_VisualDisk.cc index 88a4a178..eef0fa8f 100644 --- a/src/VBox_VisualDisk.cc +++ b/src/VBox_VisualDisk.cc @@ -442,7 +442,11 @@ void VBox_VisualDisk::on_resize( Gtk::Allocation & allocation ) MIN_SIZE-- ; } while ( TOTAL <= 0 && MIN_SIZE > 0 ) ; - + + //due to rounding a few px may be lost (max. 2), lets add these to the last partition. + if ( allocation .get_width() > calced ) + visual_partitions .back() .length += ( allocation .get_width() - calced ) ; + calc_position_and_height( visual_partitions, 0, 0 ) ; calc_used_unused( visual_partitions ) ; calc_text( visual_partitions ) ;