Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Nov 2019 14:53:25 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r517748 - head/graphics/sane-frontends/files
Message-ID:  <201911161453.xAGErPFZ016386@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sat Nov 16 14:53:24 2019
New Revision: 517748
URL: https://svnweb.freebsd.org/changeset/ports/517748

Log:
  graphics/sane-frontends: Unbreak after r517720
  
  gtkglue.c:1479:24: error: use of undeclared identifier 'SANE_CAP_ALWAYS_SETTABLE'
        if (!(opt->cap & SANE_CAP_ALWAYS_SETTABLE))
                         ^
  1 error generated.
  
  PR:		241225
  Reported by:	cmt
  Obtained from:	Fedora
  Pointy hat:	tobik

Added:
  head/graphics/sane-frontends/files/patch-src_gtkglue.c   (contents, props changed)

Added: head/graphics/sane-frontends/files/patch-src_gtkglue.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/sane-frontends/files/patch-src_gtkglue.c	Sat Nov 16 14:53:24 2019	(r517748)
@@ -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
+     }
+ }
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911161453.xAGErPFZ016386>