summaryrefslogtreecommitdiff
path: root/debian/patches/fix_cap_always_settable.patch
diff options
context:
space:
mode:
authorJulien BLACHE <jblache@debian.org>2010-03-13 21:14:18 +0100
committerMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:50 +0000
commit05f0966f64f56ad3348ce8569324ee6c3e692aa8 (patch)
treee51d62e303adefd66617fa1857c174baf2034d68 /debian/patches/fix_cap_always_settable.patch
parent4aa3c3e04255085feb30735357bf7394c9788d81 (diff)
Imported Debian patch 0.996-4debian/0.996-4
Diffstat (limited to 'debian/patches/fix_cap_always_settable.patch')
-rw-r--r--debian/patches/fix_cap_always_settable.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/patches/fix_cap_always_settable.patch b/debian/patches/fix_cap_always_settable.patch
new file mode 100644
index 0000000..68945aa
--- /dev/null
+++ b/debian/patches/fix_cap_always_settable.patch
@@ -0,0 +1,21 @@
+Description: Remove check for SANE_CAP_ALWAYS_SETTABLE
+ The flag was never part of the standard and has been removed upstream
+ in SANE 1.0.20.
+Author: Julien BLACHE <jblache@debian.org>
+
+Index: xsane-0.996/src/xsane-back-gtk.c
+===================================================================
+--- xsane-0.996.orig/src/xsane-back-gtk.c 2010-03-13 20:43:00.696742544 +0100
++++ xsane-0.996/src/xsane-back-gtk.c 2010-03-13 20:43:03.360741649 +0100
+@@ -2622,10 +2622,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)