[gimp] Bug 681016 - GIMP Makes use of the non-windows friendly sleep function
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 681016 - GIMP Makes use of the non-windows friendly sleep function
- Date: Wed, 1 Aug 2012 22:43:39 +0000 (UTC)
commit 4929474ec3d124468395e0ac17f4e72a819216f3
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]