sane-project-website/old-archive/1997-11/0039.html

112 wiersze
4.3 KiB
HTML

<!-- received="Mon Nov 3 15:00:51 1997 PST" -->
<!-- sent="Mon, 3 Nov 1997 22:47:27 +0100 (MET)" -->
<!-- name="Oliver.Rauch@Wolfsburg.DE" -->
<!-- email="Oliver.Rauch@Wolfsburg.DE" -->
<!-- subject="Re: SANE + UMAX" -->
<!-- id="199711032147.WAA11743@Babylon5.wolfsburg.de" -->
<!-- inreplyto="345E1F33.3FC3A418@llamacom.com" -->
<title>sane-devel: Re: SANE + UMAX</title>
<h1>Re: SANE + UMAX</h1>
<a href="mailto:Oliver.Rauch@Wolfsburg.DE"><i>Oliver.Rauch@Wolfsburg.DE</i></a><br>
<i>Mon, 3 Nov 1997 22:47:27 +0100 (MET)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#39">[ date ]</a><a href="index.html#39">[ thread ]</a><a href="subject.html#39">[ subject ]</a><a href="author.html#39">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0040.html">Oliver.Rauch@Wolfsburg.DE: "Re: gamma-bind infinite loops in 0.67"</a>
<li> <b>Previous message:</b> <a href="0038.html">Matto Marjanovic: "gamma-bind infinite loops in 0.67"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Hello Ben,<br>
<p>
<i>&gt; I'm trying to get SANE to work with my UMAX S6E... It shows up find and</i><br>
<i>&gt; I have it under /dev/scanner... I once got scanimage to do something, it</i><br>
<i>&gt; moved the scanner at least, but now it doesn't work. Xscanimage never</i><br>
<i>&gt; worked... It usually just sits for a while and then has a segmentation</i><br>
<i>&gt; fault. I have no idea where to begin. Does anyone have any ideas?</i><br>
<p>
Which sane-version do you use?<br>
<p>
Please use sane-0.67 with sane-0.67-umax-fix.diff.gz<br>
or just use sane-0.66<br>
<p>
For color-mode you need to set the preview-patch that is runtime-<br>
selectable since version 0.66<br>
<p>
For xscanimage you have to use gtk+971025 with the patch that has been<br>
published in this mailling list, I connect it to the end of this mail.<br>
I hope that the fixed gtk will be available soon!<br>
<p>
If you have any problems after that, do<br>
export SANE_DEBUG_UMAX=128<br>
<p>
and send me the output!<br>
<p>
Bye<br>
Oliver<br>
<p>
--------------------------------------------------------------------<br>
<p>
diff -ru gtk+971025/gdk/gdk.c gtk+971025-gtd/gdk/gdk.c<br>
--- gtk+971025/gdk/gdk.c Fri Oct 17 11:44:27 1997<br>
+++ gtk+971025-gtd/gdk/gdk.c Fri Oct 31 13:19:23 1997<br>
@@ -207,7 +207,7 @@<br>
int argc_orig = *argc;<br>
char **argv_orig;<br>
<br>
- argv_orig = malloc (argc_orig * sizeof(char*));<br>
+ argv_orig = malloc ((argc_orig + 1) * sizeof(char*));<br>
for (i = 0; i &lt; argc_orig; i++)<br>
argv_orig[i] = g_strdup ((*argv)[i]);<br>
argv_orig[argc_orig] = NULL;<br>
<p>
<p>
<br>
diff -ru gtk+971025/gtk/gtkmain.c gtk+971025-gtd/gtk/gtkmain.c<br>
--- gtk+971025/gtk/gtkmain.c Thu Oct 2 23:15:31 1997<br>
+++ gtk+971025-gtd/gtk/gtkmain.c Fri Oct 31 19:45:53 1997<br>
@@ -932,9 +932,24 @@<br>
tmp_list = idle_functions;<br>
while (tmp_list)<br>
{<br>
+ GList *rp = 0;<br>
+<br>
idlef = tmp_list-&gt;data;<br>
<br>
- if (gtk_idle_invoke_function (idlef) == FALSE)<br>
+ /* Search the remove_ lists to see if the current idlef has<br>
+ * been added (since we started running the idle_functions<br>
+ * list). If it's been added, skip it. (We'll remove it<br>
+ * from the list later --- see below...<br>
+ */<br>
+ for (rp = remove_idles; rp; rp = rp-&gt;next)<br>
+ if (*(gint*)rp-&gt;data == idlef-&gt;tag)<br>
+ break;<br>
+ if (!rp &amp;&amp; remove_idles_by_data)<br>
+ for (rp = remove_idles_by_data; rp; rp = rp-&gt;next)<br>
+ if (*(gpointer*)tmp_list-&gt;data == idlef-&gt;data)<br>
+ break;<br>
+ <br>
+ if (!rp &amp;&amp; gtk_idle_invoke_function (idlef) == FALSE)<br>
{<br>
tmp_list2 = tmp_list;<br>
tmp_list = tmp_list-&gt;next;<br>
<p>
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0040.html">Oliver.Rauch@Wolfsburg.DE: "Re: gamma-bind infinite loops in 0.67"</a>
<li> <b>Previous message:</b> <a href="0038.html">Matto Marjanovic: "gamma-bind infinite loops in 0.67"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>