don't use obsolete SANE_CAP_ALWAYS_SETTABLE macro (#507823)

This commit is contained in:
Nils Philippsen 2009-07-20 13:55:38 +00:00
parent b5dd21cf3f
commit d24cf6b18a
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,15 @@
diff -up xsane-0.996/src/xsane-back-gtk.c.sane-backends-1.0.20 xsane-0.996/src/xsane-back-gtk.c
--- xsane-0.996/src/xsane-back-gtk.c.sane-backends-1.0.20 2007-08-13 09:49:34.000000000 +0200
+++ xsane-0.996/src/xsane-back-gtk.c 2009-07-20 15:22:34.268802179 +0200
@@ -2612,10 +2612,7 @@ void xsane_back_gtk_set_sensitivity(int
continue;
}
- if (!(opt->cap & SANE_CAP_ALWAYS_SETTABLE))
- {
- gtk_widget_set_sensitive(xsane.element[i].widget, sensitive);
- }
+ gtk_widget_set_sensitive(xsane.element[i].widget, sensitive);
}
if (xsane.xsanemode_widget)

View File

@ -3,13 +3,14 @@
Name: xsane Name: xsane
Summary: X Window System front-end for the SANE scanner interface Summary: X Window System front-end for the SANE scanner interface
Version: 0.996 Version: 0.996
Release: 7%{?dist} Release: 8%{?dist}
Source0: http://www.xsane.org/download/%{name}-%{version}.tar.gz Source0: http://www.xsane.org/download/%{name}-%{version}.tar.gz
Source1: xsane.desktop Source1: xsane.desktop
Source2: xsane.conf.in Source2: xsane.conf.in
Patch0: xsane-0.995-xdg-open.patch Patch0: xsane-0.995-xdg-open.patch
Patch1: xsane-0.995-eula-license-size.patch Patch1: xsane-0.995-eula-license-size.patch
Patch2: xsane-0.995-close-fds.patch Patch2: xsane-0.995-close-fds.patch
Patch3: xsane-0.996-sane-backends-1.0.20.patch
License: GPLv2+ License: GPLv2+
URL: http://www.xsane.org/ URL: http://www.xsane.org/
Group: Applications/Multimedia Group: Applications/Multimedia
@ -54,6 +55,7 @@ done
%patch0 -p1 -b .xdg-open %patch0 -p1 -b .xdg-open
%patch1 -p1 -b .eula-license-size %patch1 -p1 -b .eula-license-size
%patch2 -p1 -b .close-fds %patch2 -p1 -b .close-fds
%patch3 -p1 -b .sane-backends-1.0.20
%build %build
%configure --enable-gimp %configure --enable-gimp
@ -117,6 +119,9 @@ fi
%config(noreplace) %{_sysconfdir}/gimp/plugins.d/xsane.conf %config(noreplace) %{_sysconfdir}/gimp/plugins.d/xsane.conf
%changelog %changelog
* Mon Jul 20 2009 Nils Philippsen <nils@redhat.com> 0.996-8
- don't use obsolete SANE_CAP_ALWAYS_SETTABLE macro (#507823)
* Tue Jul 7 2009 Tom "spot" Callaway <tcallawa@redhat.com> 0.996-7 * Tue Jul 7 2009 Tom "spot" Callaway <tcallawa@redhat.com> 0.996-7
- don't own %%{_datadir}/applications/ (filesystem package owns it) - don't own %%{_datadir}/applications/ (filesystem package owns it)