i just can't stop tweaking the operationslist =)

* src/Win_GParted.cc: i just can't stop tweaking the operationslist =)
This commit is contained in:
Bart Hakvoort 2004-10-11 16:08:12 +00:00
parent fa5698e115
commit bf8e065a0b
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2004-10-11 Bart Hakvoort <gparted@users.sf.net>
* src/Win_GParted.cc: i just can't stop tweaking the operationslist =)
2004-10-11 Bart Hakvoort <gparted@users.sf.net> 2004-10-11 Bart Hakvoort <gparted@users.sf.net>
* src/Device.cc (Read_Disk_Layout): logic unallocated space wasn't read correctly, fixed. * src/Device.cc (Read_Disk_Layout): logic unallocated space wasn't read correctly, fixed.

View File

@ -490,7 +490,6 @@ void Win_GParted::Add_Operation( OperationType operationtype, const Partition &
Gtk::TreeIter iter = liststore_operations->children().end() ; Gtk::TreeIter iter = liststore_operations->children().end() ;
iter-- ; iter-- ;
treeview_operations .set_cursor( (Gtk::TreePath) (Gtk::TreeRow) *iter); treeview_operations .set_cursor( (Gtk::TreePath) (Gtk::TreeRow) *iter);
} }
void Win_GParted::Refresh_Visual( ) void Win_GParted::Refresh_Visual( )
@ -676,7 +675,7 @@ void Win_GParted::open_operationslist()
int x,y; this ->get_size( x, y ); int x,y; this ->get_size( x, y );
y -= 300; 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 ); vpaned_main.set_position( t );
while (Gtk::Main::events_pending()) Gtk::Main::iteration(); 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 ); int x,y; this ->get_size( x, y );
y -= 210 ; //height of whole app - menubar - visualdisk - statusbar .... 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 ); vpaned_main.set_position( t );
while (Gtk::Main::events_pending()) Gtk::Main::iteration(); while (Gtk::Main::events_pending()) Gtk::Main::iteration();
@ -1182,6 +1181,7 @@ void Win_GParted::activate_apply()
//wipe operations... //wipe operations...
operations.clear(); operations.clear();
liststore_operations ->clear();
close_operationslist() ; close_operationslist() ;
//reset new_count to 1 //reset new_count to 1