aboutsummaryrefslogtreecommitdiff
path: root/graphics/sane-frontends/files
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2019-11-16 14:53:24 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2019-11-16 14:53:24 +0000
commitf8d5150220a85ef7588004397b24097f96f55c12 (patch)
treebd31cf75b2a1e85163d74b87807b560312959c7a /graphics/sane-frontends/files
parentf55f173987852b6ae0ee6f9c925b5d55614e5f9c (diff)
Notes
Diffstat (limited to 'graphics/sane-frontends/files')
-rw-r--r--graphics/sane-frontends/files/patch-src_gtkglue.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/graphics/sane-frontends/files/patch-src_gtkglue.c b/graphics/sane-frontends/files/patch-src_gtkglue.c
new file mode 100644
index 000000000000..48e27d483268
--- /dev/null
+++ b/graphics/sane-frontends/files/patch-src_gtkglue.c
@@ -0,0 +1,29 @@
+commit ddd90b1502a263d03938b1e45a57684d576993ba
+Author: Nils Philippsen <nils@redhat.com>
+Date: Fri Jul 31 16:25:58 2009 +0200
+
+ patch: sane-backends-1.0.20
+
+ Squashed commit of the following:
+
+ commit 0c84326fa37bb309481c4d2658ab6cb17c9f0e85
+ Author: Nils Philippsen <nils@redhat.com>
+ Date: Fri Jul 31 16:18:59 2009 +0200
+
+ use SANE_CAP_ALWAYS_SETTABLE only if available
+
+--- src/gtkglue.c.orig 2005-04-16 13:12:07 UTC
++++ src/gtkglue.c
+@@ -1476,8 +1476,12 @@ gsg_set_sensitivity (GSGDialog * dialog, int sensitive
+ || opt->type == SANE_TYPE_GROUP || !dialog->element[i].widget)
+ continue;
+
++#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
+ }
+ }
+