OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.7 KiB

  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 ---
  16. Changelog 18 Jan 2006 09:20:59 -0000 1.198
  17. Changelog 1 Mar 2006 11:05:51 -0000
  18. 2006-03-01 Rene Rebe <rene@exactcode.de>
  19. * src/xscanimage.c: Fixed scan_button sensitivity after a failure
  20. at sane_start time, e.g. no documents. Formerly the button was left
  21. inactive.
  22. Index: src/xscanimage.c
  23. ===================================================================
  24. RCS file: /cvsroot/sane/sane-frontends/src/xscanimage.c,v
  25. retrieving revision 1.38
  26. diff -u -r1.38 xscanimage.c
  27. --- ./src/xscanimage.c 18 Jan 2006 09:20:29 -0000 1.38
  28. +++ ./src/xscanimage.c 1 Mar 2006 11:05:56 -0000
  29. @@ -4,6 +4,7 @@
  30. Andreas Beck <becka@sunserver1.rz.uni-duesseldorf.de>
  31. Tristan Tarrant <ttarrant@etnoteam.it>
  32. David Mosberger-Tang <davidm@azstarnet.com>
  33. + Rene Rebe <rene@exactcode.de>
  34. Copyright (C) 1997, 1998 Andreas Beck, Tristan Tarrant, and David
  35. Mosberger
  36. @@ -1092,6 +1093,7 @@
  37. if (status != SANE_STATUS_GOOD)
  38. {
  39. gsg_set_sensitivity (dialog, TRUE);
  40. + gtk_widget_set_sensitive (scan_win.scan_button, TRUE);
  41. snprintf (buf, sizeof (buf), "Failed to start scanner: %s",
  42. sane_strstatus (status));
  43. gsg_error (buf);
  44. @@ -1112,6 +1114,7 @@
  45. if (scan_win.param.lines == -1)
  46. {
  47. gsg_set_sensitivity (dialog, TRUE);
  48. + gtk_widget_set_sensitive (scan_win.scan_button, TRUE);
  49. snprintf (buf, sizeof (buf), "Hand-Scanner mode not supported");
  50. gsg_error (buf);
  51. scan_done ();
  52. @@ -1153,6 +1156,7 @@
  53. if (scan_win.param.depth > 8)
  54. {
  55. gsg_set_sensitivity (dialog, TRUE);
  56. + gtk_widget_set_sensitive (scan_win.scan_button, TRUE);
  57. snprintf (buf, sizeof (buf),
  58. "Separate channel transfers are not supported "
  59. "with %d bits/channel.", scan_win.param.depth);
  60. @@ -1197,6 +1202,7 @@
  61. if (scan_win.param.depth > 8)
  62. {
  63. gsg_set_sensitivity (dialog, TRUE);
  64. + gtk_widget_set_sensitive (scan_win.scan_button, TRUE);
  65. snprintf (buf, sizeof (buf), "The Gimp doesn't support images "
  66. "with %d bits/channel.", scan_win.param.depth);
  67. gsg_error (buf);