sane-frontends-1.0.14-sane-backends-1.0.20.patch 930 B

1234567891011121314151617181920212223242526272829303132
  1. commit ddd90b1502a263d03938b1e45a57684d576993ba
  2. Author: Nils Philippsen <nils@redhat.com>
  3. Date: Fri Jul 31 16:25:58 2009 +0200
  4. patch: sane-backends-1.0.20
  5. Squashed commit of the following:
  6. commit 0c84326fa37bb309481c4d2658ab6cb17c9f0e85
  7. Author: Nils Philippsen <nils@redhat.com>
  8. Date: Fri Jul 31 16:18:59 2009 +0200
  9. use SANE_CAP_ALWAYS_SETTABLE only if available
  10. diff --git a/src/gtkglue.c b/src/gtkglue.c
  11. index ba5cbf5..ec81f45 100644
  12. --- a/src/gtkglue.c
  13. +++ b/src/gtkglue.c
  14. @@ -1476,8 +1476,12 @@ gsg_set_sensitivity (GSGDialog * dialog, int sensitive)
  15. || opt->type == SANE_TYPE_GROUP || !dialog->element[i].widget)
  16. continue;
  17. +#ifdef SANE_CAP_ALWAYS_SETTABLE
  18. if (!(opt->cap & SANE_CAP_ALWAYS_SETTABLE))
  19. gtk_widget_set_sensitive (dialog->element[i].widget, sensitive);
  20. +#else
  21. + gtk_widget_set_sensitive (dialog->element[i].widget, sensitive);
  22. +#endif
  23. }
  24. }