#! /bin/sh /usr/share/dpatch/dpatch-run ## 04_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 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); } }