File: 0110-cap_always_settable.patch

package info (click to toggle)
sane-frontends 1.0.14-18.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,780 kB
  • sloc: ansic: 13,516; sh: 2,703; makefile: 466
file content (17 lines) | stat: -rw-r--r-- 662 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Author: <jblache@debian.org>
Description: Remove check for SANE_CAP_ALWAYS_SETTABLE; the flag is not part
of the standard and has been removed upstream in SANE 1.0.20.
Index: trunk/src/gtkglue.c
===================================================================
--- trunk.orig/src/gtkglue.c
+++ trunk/src/gtkglue.c
@@ -1476,8 +1476,7 @@ gsg_set_sensitivity (GSGDialog * dialog,
 	  || opt->type == SANE_TYPE_GROUP || !dialog->element[i].widget)
 	continue;
 
-      if (!(opt->cap & SANE_CAP_ALWAYS_SETTABLE))
-	gtk_widget_set_sensitive (dialog->element[i].widget, sensitive);
+      gtk_widget_set_sensitive (dialog->element[i].widget, sensitive);
     }
 }