summaryrefslogtreecommitdiff
path: root/debian/patches/09_cap_always_settable.dpatch
blob: c44c4abcd23f5eeb91ab4397ac55b0960a60da79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)