[Xfce4-commits] r22608 - xarchiver/trunk/src

Giuseppe Torelli colossus at xfce.org
Tue Aug 1 13:26:09 UTC 2006


Author: colossus
Date: 2006-08-01 13:26:08 +0000 (Tue, 01 Aug 2006)
New Revision: 22608

Modified:
   xarchiver/trunk/src/iso.c
Log:
Fixed GUI freeze when extracting ISO images.


Modified: xarchiver/trunk/src/iso.c
===================================================================
--- xarchiver/trunk/src/iso.c	2006-08-01 13:21:09 UTC (rev 22607)
+++ xarchiver/trunk/src/iso.c	2006-08-01 13:26:08 UTC (rev 22608)
@@ -479,9 +479,6 @@
 	gchar *final_path = NULL;
 	gboolean result;
 
-	while (gtk_events_pending() )
-		gtk_main_iteration();
-
 	if (strstr (permission , "d") )
 	{
 		final_path = g_strconcat (destination_path, _filename,NULL);
@@ -521,8 +518,6 @@
 {
 	gchar *filename = NULL;
 	
-	while (gtk_events_pending() )
-		gtk_main_iteration();
 	if (archive->full_path == 0)
 	{
 		if (strstr (permission , "d") )
@@ -575,6 +570,8 @@
 
 	while (file_size > 0)
 	{
+		while (gtk_events_pending() )
+			gtk_main_iteration();
 		fseek(fsource, (off_t) file_offset << 11, SEEK_SET);
 		tlen = (file_size > sizeof (buf) ? sizeof (buf) : file_size);
 		fread (buf, 1 , tlen , fsource);



More information about the Xfce4-commits mailing list