xscanimage patch: progress updation

Matto Marjanovic (maddog@mir.com)
Wed, 29 Apr 1998 20:49:14 -0400 (EDT)

Here is a microscopic patch for xscanimage... it simply changes
"gdk_events_pending" to "gtk_events_pending".

I've always been annoyed by how my progress bar never updates at
a useful pace, if it appears at all. This solves the problem
beautifully --- and, I think "gdk_" was a typo to boot, since
a) the GTK+ Tutorial says "gtk_", and
b) the progress update function should generate GTK events,
not GDK events, I would think.

-matt m.

--- xscanimage.c-dist Sun Apr 26 11:46:31 1998
+++ xscanimage.c Wed Apr 29 20:36:41 1998
@@ -587,7 +629,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)

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