Blame SOURCES/sane-frontends-1.0.14-sane-backends-1.0.20.patch

8956ca
commit ddd90b1502a263d03938b1e45a57684d576993ba
8956ca
Author: Nils Philippsen <nils@redhat.com>
8956ca
Date:   Fri Jul 31 16:25:58 2009 +0200
8956ca
8956ca
    patch: sane-backends-1.0.20
8956ca
    
8956ca
    Squashed commit of the following:
8956ca
    
8956ca
    commit 0c84326fa37bb309481c4d2658ab6cb17c9f0e85
8956ca
    Author: Nils Philippsen <nils@redhat.com>
8956ca
    Date:   Fri Jul 31 16:18:59 2009 +0200
8956ca
    
8956ca
        use SANE_CAP_ALWAYS_SETTABLE only if available
8956ca
8956ca
diff --git a/src/gtkglue.c b/src/gtkglue.c
8956ca
index ba5cbf5..ec81f45 100644
8956ca
--- a/src/gtkglue.c
8956ca
+++ b/src/gtkglue.c
8956ca
@@ -1476,8 +1476,12 @@ gsg_set_sensitivity (GSGDialog * dialog, int sensitive)
8956ca
 	  || opt->type == SANE_TYPE_GROUP || !dialog->element[i].widget)
8956ca
 	continue;
8956ca
 
8956ca
+#ifdef SANE_CAP_ALWAYS_SETTABLE
8956ca
       if (!(opt->cap & SANE_CAP_ALWAYS_SETTABLE))
8956ca
 	gtk_widget_set_sensitive (dialog->element[i].widget, sensitive);
8956ca
+#else
8956ca
+	gtk_widget_set_sensitive (dialog->element[i].widget, sensitive);
8956ca
+#endif
8956ca
     }
8956ca
 }
8956ca