Dash:
[t2-trunk.git] / package / graphic / sane-frontends / scan-button.patch
blob68a6171e128ad1ba3e3c6939172c2f1c452cc35e
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../sane-frontends/scan-button.patch
5 # Copyright (C) 2006 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Changelog 18 Jan 2006 09:20:59 -0000 1.198
18 Changelog 1 Mar 2006 11:05:51 -0000
19 2006-03-01 Rene Rebe <rene@exactcode.de>
21 * src/xscanimage.c: Fixed scan_button sensitivity after a failure
22 at sane_start time, e.g. no documents. Formerly the button was left
23 inactive.
25 Index: src/xscanimage.c
26 ===================================================================
27 RCS file: /cvsroot/sane/sane-frontends/src/xscanimage.c,v
28 retrieving revision 1.38
29 diff -u -r1.38 xscanimage.c
30 --- ./src/xscanimage.c 18 Jan 2006 09:20:29 -0000 1.38
31 +++ ./src/xscanimage.c 1 Mar 2006 11:05:56 -0000
32 @@ -4,6 +4,7 @@
33 Andreas Beck <becka@sunserver1.rz.uni-duesseldorf.de>
34 Tristan Tarrant <ttarrant@etnoteam.it>
35 David Mosberger-Tang <davidm@azstarnet.com>
36 + Rene Rebe <rene@exactcode.de>
38 Copyright (C) 1997, 1998 Andreas Beck, Tristan Tarrant, and David
39 Mosberger
40 @@ -1092,6 +1093,7 @@
41 if (status != SANE_STATUS_GOOD)
43 gsg_set_sensitivity (dialog, TRUE);
44 + gtk_widget_set_sensitive (scan_win.scan_button, TRUE);
45 snprintf (buf, sizeof (buf), "Failed to start scanner: %s",
46 sane_strstatus (status));
47 gsg_error (buf);
48 @@ -1112,6 +1114,7 @@
49 if (scan_win.param.lines == -1)
51 gsg_set_sensitivity (dialog, TRUE);
52 + gtk_widget_set_sensitive (scan_win.scan_button, TRUE);
53 snprintf (buf, sizeof (buf), "Hand-Scanner mode not supported");
54 gsg_error (buf);
55 scan_done ();
56 @@ -1153,6 +1156,7 @@
57 if (scan_win.param.depth > 8)
59 gsg_set_sensitivity (dialog, TRUE);
60 + gtk_widget_set_sensitive (scan_win.scan_button, TRUE);
61 snprintf (buf, sizeof (buf),
62 "Separate channel transfers are not supported "
63 "with %d bits/channel.", scan_win.param.depth);
64 @@ -1197,6 +1202,7 @@
65 if (scan_win.param.depth > 8)
67 gsg_set_sensitivity (dialog, TRUE);
68 + gtk_widget_set_sensitive (scan_win.scan_button, TRUE);
69 snprintf (buf, sizeof (buf), "The Gimp doesn't support images "
70 "with %d bits/channel.", scan_win.param.depth);
71 gsg_error (buf);