From bf8e065a0b97ff16a3e59d1645c1e1937afce3a9 Mon Sep 17 00:00:00 2001 From: Bart Hakvoort Date: Mon, 11 Oct 2004 16:08:12 +0000 Subject: [PATCH] i just can't stop tweaking the operationslist =) * src/Win_GParted.cc: i just can't stop tweaking the operationslist =) --- ChangeLog | 4 ++++ src/Win_GParted.cc | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index db166596..ff6e0d3b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-10-11 Bart Hakvoort + + * src/Win_GParted.cc: i just can't stop tweaking the operationslist =) + 2004-10-11 Bart Hakvoort * src/Device.cc (Read_Disk_Layout): logic unallocated space wasn't read correctly, fixed. diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc index e2e883b2..b0408c6f 100644 --- a/src/Win_GParted.cc +++ b/src/Win_GParted.cc @@ -490,7 +490,6 @@ void Win_GParted::Add_Operation( OperationType operationtype, const Partition & Gtk::TreeIter iter = liststore_operations->children().end() ; iter-- ; treeview_operations .set_cursor( (Gtk::TreePath) (Gtk::TreeRow) *iter); - } void Win_GParted::Refresh_Visual( ) @@ -676,7 +675,7 @@ void Win_GParted::open_operationslist() int x,y; this ->get_size( x, y ); y -= 300; - for ( int t=vpaned_main.get_position() ; t > y ; t-=3 ) + for ( int t=vpaned_main.get_position() ; t > y ; t-=5 ) { vpaned_main.set_position( t ); while (Gtk::Main::events_pending()) Gtk::Main::iteration(); @@ -691,7 +690,7 @@ void Win_GParted::close_operationslist() int x,y; this ->get_size( x, y ); y -= 210 ; //height of whole app - menubar - visualdisk - statusbar .... - for ( int t=vpaned_main.get_position() ; t < y ; t+=3 ) + for ( int t=vpaned_main.get_position() ; t < y ; t+=5 ) { vpaned_main.set_position( t ); while (Gtk::Main::events_pending()) Gtk::Main::iteration(); @@ -1182,6 +1181,7 @@ void Win_GParted::activate_apply() //wipe operations... operations.clear(); + liststore_operations ->clear(); close_operationslist() ; //reset new_count to 1