Re: xscanimage patch: progress updation

Hugo van der Kooij (hvdkooij@caiw.nl)
Thu, 30 Apr 1998 10:55:26 +0200 (MET DST)

On Wed, 29 Apr 1998, David Mosberger-Tang wrote:

> >>>>> On Wed, 29 Apr 1998 20:49:14 -0400 (EDT), Matto Marjanovic <maddog@mir.com> said:
>
> Matto> Here is a microscopic patch for xscanimage... it simply
> Matto> changes "gdk_events_pending" to "gtk_events_pending".
>
> Thanks for this suggestion. I changed all occurrences of
> gdk_events_pending to gtk_events_pending (there are a total of four
> lines that had to be changed).

Resulting in:

--------B<--------B<--------B<--------B<--------B<--------B<--------
--- sane-0.72/frontend/gtkglue.c.dist Fri Apr 3 09:49:45 1998
+++ sane-0.72/frontend/gtkglue.c Thu Apr 30 10:40:00 1998
@@ -293,7 +293,7 @@

while (!cancel && !ok)
{
- if (!gdk_events_pending ())
+ if (!gtk_events_pending ())
usleep (100000);
gtk_main_iteration ();
}
--- sane-0.72/frontend/preview.c.dist Fri Apr 3 11:21:05 1998
+++ sane-0.72/frontend/preview.c Thu Apr 30 10:40:58 1998
@@ -674,7 +674,7 @@
if (p->input_tag < 0)
{
display_maybe (p);
- while (gdk_events_pending ())
+ while (gtk_events_pending ())
gtk_main_iteration ();
}
}
--- sane-0.72/frontend/xscanimage.c.dist Sat Apr 4 06:39:14 1998
+++ sane-0.72/frontend/xscanimage.c Thu Apr 30 10:34:12 1998
@@ -446,7 +446,7 @@
}
while (gsg_message_dialog_active)
{
- if (!gdk_events_pending ())
+ if (!gtk_events_pending ())
usleep (100000);
gtk_main_iteration ();
}
@@ -587,7 +587,7 @@
progress_update (scan_win.progress,
scan_win.bytes_read / (gfloat) scan_win.num_bytes);
if (scan_win.input_tag < 0)
- while (gdk_events_pending ())
+ while (gtk_events_pending ())
gtk_main_iteration ();

switch (scan_win.param.format)
--------B<--------B<--------B<--------B<--------B<--------B<--------

Hugo.

+------------------------+------------------------------+
| Hugo van der Kooij | Hugo.van.der.Kooij@caiw.nl |
| Oranje Nassaustraat 16 | http://www.caiw.nl/~hvdkooij |
| 3155 VJ Maasland | (De man met de rode hoed) |
+------------------------+------------------------------+
"Computers let you make more mistakes faster than any other invention in
human history, with the possible exception of handguns and tequila."
(Mitch Radcliffe)

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com