diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index 5893658..c7b940a 100644
--- a/src/Win_GParted.cc
+++ b/src/Win_GParted.cc
@@ -820,6 +820,7 @@ bool Win_GParted::Merge_Operations( unsigned int first, unsigned int second )
 
 void Win_GParted::Refresh_Visual()
 {
+	std::cout << "D: Refresh_Visual()" << std::endl;
 	std::vector<Partition> partitions = devices[ current_device ] .partitions ; 
 	
 	//make all operations visible
@@ -913,10 +914,16 @@ void Win_GParted::Refresh_Visual()
 		//Inform visuals of selection of the largest unallocated partition
 		drawingarea_visualdisk .set_selected( selected_partition ) ;
 		treeview_detail .set_selected( selected_partition ) ;
+		std::cout << "D:  Autoselected largest unallocated partition" << std::endl;
 	}
 
+	std::cout << "D:  GTK event loop "; std::cout.flush();
 	while ( Gtk::Main::events_pending() ) 
+	{
+		sleep(1); std::cout << "."; std::cout.flush();
 		Gtk::Main::iteration() ;
+	}
+	std::cout << " finished" << std::endl;
 }
 
 bool Win_GParted::Quit_Check_Operations()
