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