[gimp/metadata-browser] Bug 681016 - GIMP Makes use of the non-windows friendly sleep function



commit 0ece6070901033ebb76d227989d1ce59fac3c7bb
Author: Michael Henning <drawoc darkrefraction com>
Date:   Mon Jul 30 16:08:18 2012 -0400

    Bug 681016 - GIMP Makes use of the non-windows friendly sleep function
    
    Replace references to the function sleep with g_usleep.
    sleep() isn't available on windows.

 app/dialogs/lebl-dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/dialogs/lebl-dialog.c b/app/dialogs/lebl-dialog.c
index 320b4d1..be5191b 100644
--- a/app/dialogs/lebl-dialog.c
+++ b/app/dialogs/lebl-dialog.c
@@ -759,7 +759,7 @@ inv_expose (GtkWidget *widget, GdkEventExpose *event)
 	gdk_flush ();
 
 	if (inv_do_pause) {
-		sleep (1);
+		g_usleep (G_USEC_PER_SEC);
 		inv_do_pause = FALSE;
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]