More fixes - Alex
[terminatorX.git] / src / tX_loaddlg.cc
index 8cf7ed17ac2ae67669006ce99f4a3f82e5b9f790..317daa3aedd7430e37069960f7b1f5514f9cbe85 100644 (file)
@@ -50,7 +50,7 @@ gfloat ld_old_prog;
 #define add_widget_fix(wid); gtk_box_pack_start(GTK_BOX(vbox), wid, WID_FIX);\
        gtk_widget_show(wid);
 
-#define gtk_flush(); while (gtk_events_pending()) gtk_main_iteration(); gdk_flush();
+#define gtk_flush(); { int ctr=0; while (gtk_events_pending()) { ctr++; if (ctr>5) break; gtk_main_iteration(); gdk_flush(); }}
 
 
 int ld_create_loaddlg(int mode, int count)
@@ -173,6 +173,7 @@ void ld_set_progress(gfloat progress)
        if (progress!=ld_old_prog)
        {
                gtk_progress_bar_update(GTK_PROGRESS_BAR(ld_single_p), progress);
+               
                gtk_flush();
        }