summaryrefslogtreecommitdiff
path: root/debian/patches/04_cap_always_settable.dpatch
blob: e812c3db0c36b242124285f048d6f324b127a242 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh /usr/share/dpatch/dpatch-run
## 04_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 is not part
## DP: of the standard and has been removed upstream in SANE 1.0.20.

@DPATCH@
diff -urNad sane-frontends-1.0.14~/src/gtkglue.c sane-frontends-1.0.14/src/gtkglue.c
--- sane-frontends-1.0.14~/src/gtkglue.c	2005-04-16 15:12:07.000000000 +0200
+++ sane-frontends-1.0.14/src/gtkglue.c	2009-06-26 13:32:04.997585725 +0200
@@ -1476,8 +1476,7 @@
 	  || 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);
     }
 }