summaryrefslogtreecommitdiff
path: root/debian/patches/09_cap_always_settable.dpatch
diff options
context:
space:
mode:
authorJulien BLACHE <jblache@debian.org>2009-06-26 11:58:33 +0200
committerMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:48 +0000
commitdaf868dbbdb3b10e310cf1ac78e2cb250e04513c (patch)
treef22b5df3e5537f104a82e5aac181644bb0b49197 /debian/patches/09_cap_always_settable.dpatch
parentb85ae08349167bed47c71ed7ace8acd275b9ab22 (diff)
Imported Debian patch 0.996-2debian/0.996-2
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)