fixed handling of SANE_CAP_ALWAYS_SETTABLE existence in gsg_set_sensitivity()

- when SANE_CAP_ALWAYS_SETTABLE doesn't exit, let gsg_set_sensitivity()
  call gtk_widget_set_sensitive()
merge-requests/2/head
Stphane Voltz 2009-06-24 21:38:04 +02:00
rodzic aed8faa20e
commit c554cfce37
2 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -1,3 +1,7 @@
2009-06-24 Stéphane Voltz <stef.dev@free.fr>
* src/gtkglue.c: fixed handling of SANE_CAP_ALWAYS_SETTABLE existence
in gsg_set_sensitivity()
2008-09-23 Stéphane Voltz <stef.dev@free.fr>
* src/progress.c src/progress.h: add an estimated time remaining
on the progress window, based on a patch by Jonas Berlin

Wyświetl plik

@ -1478,6 +1478,8 @@ gsg_set_sensitivity (GSGDialog * dialog, int sensitive)
#ifdef SANE_CAP_ALWAYS_SETTABLE
if (!(opt->cap & SANE_CAP_ALWAYS_SETTABLE))
gtk_widget_set_sensitive (dialog->element[i].widget, sensitive);
#else
gtk_widget_set_sensitive (dialog->element[i].widget, sensitive);
#endif
}
}