summaryrefslogtreecommitdiff
path: root/debian/patches/0110-cap_always_settable.patch
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-09-08 19:05:34 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-09-08 19:05:34 +0200
commit267f9007f6f0142853ba5f99f3f72a58f8fb857f (patch)
treef3869bbd7e4dcefff0c04a8eff4d3903abdc409d /debian/patches/0110-cap_always_settable.patch
parentac5d58282438345b4d12a24334efcc0299c15165 (diff)
Rename patches and remove not used debian/patches/scanadf-sigchld.diff
Diffstat (limited to 'debian/patches/0110-cap_always_settable.patch')
-rw-r--r--debian/patches/0110-cap_always_settable.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/0110-cap_always_settable.patch b/debian/patches/0110-cap_always_settable.patch
new file mode 100644
index 0000000..aef60f1
--- /dev/null
+++ b/debian/patches/0110-cap_always_settable.patch
@@ -0,0 +1,17 @@
+Author: <jblache@debian.org>
+Description: Remove check for SANE_CAP_ALWAYS_SETTABLE; the flag is not part
+of the standard and has been removed upstream in SANE 1.0.20.
+Index: trunk/src/gtkglue.c
+===================================================================
+--- trunk.orig/src/gtkglue.c
++++ trunk/src/gtkglue.c
+@@ -1476,8 +1476,7 @@ gsg_set_sensitivity (GSGDialog * dialog,
+ || opt->type == SANE_TYPE_GROUP || !dialog->element[i].widget)
+ continue;
+
+- if (!(opt->cap & SANE_CAP_ALWAYS_SETTABLE))
+- gtk_widget_set_sensitive (dialog->element[i].widget, sensitive);
++ gtk_widget_set_sensitive (dialog->element[i].widget, sensitive);
+ }
+ }
+