Pass correct timeout value to g_io_channel_win32_wait_for_condition

2000-08-01  Tor Lillqvist  <tml@iki.fi>

	* libgimp/gimp.c (gimp_extension_process): Pass correct timeout
	value to g_io_channel_win32_wait_for_condition (actually g_poll)
	to indicate infinite wait.
This commit is contained in:
Tor Lillqvist 2000-08-01 16:09:16 +00:00 committed by Tor Lillqvist
parent 261e3c6801
commit 0444ceddbf
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2000-08-01 Tor Lillqvist <tml@iki.fi>
* libgimp/gimp.c (gimp_extension_process): Pass correct timeout
value to g_io_channel_win32_wait_for_condition (actually g_poll)
to indicate infinite wait.
2000-08-01 Sven Neumann <sven@gimp.org>
* libgimp/gimputils.[ch]: added g_strcompress from glib-1.3

View file

@ -819,6 +819,12 @@ gimp_extension_process (guint timeout)
gimp_quit ();
}
#else
/* Zero means infinite wait for us, but g_poll and
* g_io_channel_win32_wait_for_condition use -1 to indicate
* infinite wait.
*/
if (timeout == 0)
timeout = -1;
if (g_io_channel_win32_wait_for_condition (_readchannel, G_IO_IN, timeout) == 1)
gimp_single_message ();
#endif