summaryrefslogtreecommitdiff
path: root/debian/patches/09_cap_always_settable.dpatch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/09_cap_always_settable.dpatch')
-rw-r--r--debian/patches/09_cap_always_settable.dpatch23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/09_cap_always_settable.dpatch b/debian/patches/09_cap_always_settable.dpatch
new file mode 100644
index 0000000..c44c4ab
--- /dev/null
+++ b/debian/patches/09_cap_always_settable.dpatch
@@ -0,0 +1,23 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 09_cap_always_settable.dpatch by <jblache@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Remove check for SANE_CAP_ALWAYS_SETTABLE. The flag was never part of
+## DP: the standard and has been removed upstream in SANE 1.0.20.
+
+@DPATCH@
+diff -urNad xsane-0.996~/src/xsane-back-gtk.c xsane-0.996/src/xsane-back-gtk.c
+--- xsane-0.996~/src/xsane-back-gtk.c 2009-06-26 11:40:52.000000000 +0200
++++ xsane-0.996/src/xsane-back-gtk.c 2009-06-26 11:57:30.528586816 +0200
+@@ -2612,10 +2612,7 @@
+ continue;
+ }
+
+- if (!(opt->cap & SANE_CAP_ALWAYS_SETTABLE))
+- {
+- gtk_widget_set_sensitive(xsane.element[i].widget, sensitive);
+- }
++ gtk_widget_set_sensitive(xsane.element[i].widget, sensitive);
+ }
+
+ if (xsane.xsanemode_widget)