From daf868dbbdb3b10e310cf1ac78e2cb250e04513c Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Fri, 26 Jun 2009 11:58:33 +0200 Subject: Imported Debian patch 0.996-2 --- debian/patches/09_cap_always_settable.dpatch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 debian/patches/09_cap_always_settable.dpatch (limited to 'debian/patches/09_cap_always_settable.dpatch') 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 +## +## 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) -- cgit v1.2.3