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

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