From d24cf6b18a1090fd0759eb0c87cd5293bf637810 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Mon, 20 Jul 2009 13:55:38 +0000 Subject: [PATCH] don't use obsolete SANE_CAP_ALWAYS_SETTABLE macro (#507823) --- xsane-0.996-sane-backends-1.0.20.patch | 15 +++++++++++++++ xsane.spec | 7 ++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 xsane-0.996-sane-backends-1.0.20.patch diff --git a/xsane-0.996-sane-backends-1.0.20.patch b/xsane-0.996-sane-backends-1.0.20.patch new file mode 100644 index 0000000..e00e852 --- /dev/null +++ b/xsane-0.996-sane-backends-1.0.20.patch @@ -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) diff --git a/xsane.spec b/xsane.spec index cfa50d5..1d2918a 100644 --- a/xsane.spec +++ b/xsane.spec @@ -3,13 +3,14 @@ Name: xsane Summary: X Window System front-end for the SANE scanner interface Version: 0.996 -Release: 7%{?dist} +Release: 8%{?dist} Source0: http://www.xsane.org/download/%{name}-%{version}.tar.gz Source1: xsane.desktop Source2: xsane.conf.in Patch0: xsane-0.995-xdg-open.patch Patch1: xsane-0.995-eula-license-size.patch Patch2: xsane-0.995-close-fds.patch +Patch3: xsane-0.996-sane-backends-1.0.20.patch License: GPLv2+ URL: http://www.xsane.org/ Group: Applications/Multimedia @@ -54,6 +55,7 @@ done %patch0 -p1 -b .xdg-open %patch1 -p1 -b .eula-license-size %patch2 -p1 -b .close-fds +%patch3 -p1 -b .sane-backends-1.0.20 %build %configure --enable-gimp @@ -117,6 +119,9 @@ fi %config(noreplace) %{_sysconfdir}/gimp/plugins.d/xsane.conf %changelog +* Mon Jul 20 2009 Nils Philippsen 0.996-8 +- don't use obsolete SANE_CAP_ALWAYS_SETTABLE macro (#507823) + * Tue Jul 7 2009 Tom "spot" Callaway 0.996-7 - don't own %%{_datadir}/applications/ (filesystem package owns it)