# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/sane-frontends/scan-button.patch # Copyright (C) 2006 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- Changelog 18 Jan 2006 09:20:59 -0000 1.198 Changelog 1 Mar 2006 11:05:51 -0000 2006-03-01 Rene Rebe * src/xscanimage.c: Fixed scan_button sensitivity after a failure at sane_start time, e.g. no documents. Formerly the button was left inactive. Index: src/xscanimage.c =================================================================== RCS file: /cvsroot/sane/sane-frontends/src/xscanimage.c,v retrieving revision 1.38 diff -u -r1.38 xscanimage.c --- ./src/xscanimage.c 18 Jan 2006 09:20:29 -0000 1.38 +++ ./src/xscanimage.c 1 Mar 2006 11:05:56 -0000 @@ -4,6 +4,7 @@ Andreas Beck Tristan Tarrant David Mosberger-Tang + Rene Rebe Copyright (C) 1997, 1998 Andreas Beck, Tristan Tarrant, and David Mosberger @@ -1092,6 +1093,7 @@ if (status != SANE_STATUS_GOOD) { gsg_set_sensitivity (dialog, TRUE); + gtk_widget_set_sensitive (scan_win.scan_button, TRUE); snprintf (buf, sizeof (buf), "Failed to start scanner: %s", sane_strstatus (status)); gsg_error (buf); @@ -1112,6 +1114,7 @@ if (scan_win.param.lines == -1) { gsg_set_sensitivity (dialog, TRUE); + gtk_widget_set_sensitive (scan_win.scan_button, TRUE); snprintf (buf, sizeof (buf), "Hand-Scanner mode not supported"); gsg_error (buf); scan_done (); @@ -1153,6 +1156,7 @@ if (scan_win.param.depth > 8) { gsg_set_sensitivity (dialog, TRUE); + gtk_widget_set_sensitive (scan_win.scan_button, TRUE); snprintf (buf, sizeof (buf), "Separate channel transfers are not supported " "with %d bits/channel.", scan_win.param.depth); @@ -1197,6 +1202,7 @@ if (scan_win.param.depth > 8) { gsg_set_sensitivity (dialog, TRUE); + gtk_widget_set_sensitive (scan_win.scan_button, TRUE); snprintf (buf, sizeof (buf), "The Gimp doesn't support images " "with %d bits/channel.", scan_win.param.depth); gsg_error (buf);