diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc index 73d0297d..b971ac89 100644 --- a/src/Win_GParted.cc +++ b/src/Win_GParted.cc @@ -893,15 +893,21 @@ void Win_GParted::Refresh_Visual() set_valid_operations() ; + // Process Gtk events to redraw visuals with reloaded partition details + while ( Gtk::Main::events_pending() ) + Gtk::Main::iteration(); + if ( largest_unalloc_size >= 0 ) { - //Inform visuals of selection of the largest unallocated partition + // Flashing redraw work around. Inform visuals of selection of the + // largest unallocated partition after drawing those visuals above. drawingarea_visualdisk .set_selected( selected_partition ) ; treeview_detail .set_selected( selected_partition ) ; - } - while ( Gtk::Main::events_pending() ) - Gtk::Main::iteration() ; + // Process Gtk events to draw selection + while ( Gtk::Main::events_pending() ) + Gtk::Main::iteration(); + } } bool Win_GParted::Quit_Check_Operations()