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.
This commit is contained in:
Bart Hakvoort 2006-02-09 21:54:42 +00:00
parent a764f10df7
commit 2d8e245d7e
3 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2006-02-09 Bart Hakvoort <hakvoort@cvs.gnome.org>
* 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 <hakvoort@cvs.gnome.org>
* include/Win_GParted.h,

View File

@ -67,7 +67,7 @@ Dialog_Progress::Dialog_Progress( const std::vector<Operation> & 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

View File

@ -443,6 +443,10 @@ void VBox_VisualDisk::on_resize( Gtk::Allocation & allocation )
}
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 ) ;