Zdenek Dohnal
6d9554dbf0
lib: Remove bundled implementation of glibc funcs
...
The functions implemented in the files are common at present, so IMHO we
can start using the system ones.
This prevents licensing issues (frontends has to mention the file's
license in case it is bundled in) and security issues (in case of
security issue the fix has to be applied to all bundled files as well).
2023-02-09 15:56:03 +01:00
Zdenek Dohnal
22d951a407
src/scanadf.c: Use scanadf_exit() when listing devices
...
It prevents segfault in genesys backend when exiting - the backend wants
to use a function which is already freed.
2022-10-12 12:27:31 +02:00
Ralph Little
02478dc10b
scanadf: added missing call to sane_exit()
...
Failure to call sane_exit() which causes issues in genesys backend
termination.
2021-08-24 20:30:25 -07:00
Ralph Little
009b99cb02
xscanimage: don't set curves that are hidden and uncreated.
2021-08-24 20:20:33 -07:00
Ralph Little
7ebdf2cd62
scanadf: fixes for various compilation warnings
2021-04-06 09:27:09 -07:00
Zdenek Dohnal
6eefbc70f5
scanadf.c: implement dedicated exit function to prevent SIGSEGV
2020-08-20 13:23:08 +02:00
m. allan noah
1928f945ee
ifdef some code to compile with current sane-backends
2010-05-24 15:29:51 -04:00
Julien BLACHE
745efdeabb
Fix word list handling when the current value is not in the list
2009-11-14 10:55:02 +01:00
Stéphane Voltz
c554cfce37
fixed handling of SANE_CAP_ALWAYS_SETTABLE existence in gsg_set_sensitivity()
...
- when SANE_CAP_ALWAYS_SETTABLE doesn't exit, let gsg_set_sensitivity()
call gtk_widget_set_sensitive()
2009-06-24 21:38:04 +02:00
Julien BLACHE
aed8faa20e
Add basic .gitignore files
2009-05-04 14:46:32 +02:00
Stéphane Voltz
9d6c0a1c08
- added printing of estimated scan time remaining in progress
...
popup, based on a patch by
Jonas Berlin <xkr47@outerspace.dyndns.org>
2008-09-23 19:37:56 +00:00
Julien BLACHE
fe7c5b707c
Get option descriptor for option 0 before getting the value for option 0.
2008-08-05 09:04:51 +00:00
Stéphane Voltz
5e96223e49
- switched to SANE 1.1
...
- handling of SANE_STATUS_WARMING_UP after sane_start() calls
- xscanimage's progress dialog improvement
2008-06-06 04:29:44 +00:00
Gerard Klaver
7336b06465
For Gray mode added time stamp option, remove compiler warning
2008-04-30 10:12:21 +00:00
Rene Rebe
749cc8af23
Fixed scan_button sensitivity after a failure
...
at sane_start time, e.g. no documents. Formerly the button was left
inactive.
This bug already got on my nerves for quite some time now 8-).
2006-03-01 11:07:34 +00:00
Gerhard Jaeger
5113e3de39
Fixed bug reported by Johannes Meixner, see
...
http://lists.alioth.debian.org/pipermail/sane-devel/2006-January/015941.html
2006-01-18 09:20:29 +00:00
Henning Geinitz
395252831d
Call set_gimp_PLUG_IN_INFO only if gimp 1.2 is used (from Franz Bakan
...
<fbakan@gmx.net>).
2005-12-31 12:48:45 +00:00
Rene Rebe
f79f2c3016
2005-12-04 Rene Rebe <rene@exactcode.de>
...
* src/scanadf.c doc/scanadf.man: Added -p, --pipe option to scanadf
to pass data to the scripts via stdin and thus process the image
data parallel to the scan.
2005-12-04 20:37:58 +00:00
Julien BLACHE
9f48c4e386
src/xcam.c: remove dead code in load_defaults().
2005-09-20 17:27:23 +00:00
Henning Geinitz
5d80e69c32
Added missing DISTFILE.
2005-09-18 12:10:15 +00:00
Oliver Rauch
7ff739994d
*** empty log message ***
2005-05-31 21:02:57 +00:00
Gerard Klaver
062ecdfea2
- moved 2 DBG lines from above to below variable declarations
...
(OS/2 compiler error bugreport Franz Bakan)
- Changed declaration for "remaining" from SANE_Int to size_t
2005-05-10 18:58:16 +00:00
Gerard Klaver
bf8310305e
-moved lines for generating frame count, fps and fps avarage value from nex_frame to input_available routine.
...
-solved bug for fps values > 1
tested with qcam backend and connectix b/w camera
2005-05-07 14:12:57 +00:00
Gerard Klaver
98f467fd31
xcam.c
...
-added TXT button for option text line adding to image
with name, date and time info.
font_6x11.h file and add_text routine taken from the (GPLed)
webcam.c file, part of xawtv, (c) 1998-2002 Gerd Knorr.
add_text was modified for this program (xcam_add_text).
-added RGB/BGR button option to switch the colors if needed.
-solved segment fault when no usb scanner/vidcam devices
is attached to system ( bug report from Henning Meier-Geinitz)
-patch update for recording feature (SANE bugreport 300224)
added SAVE Frame button, output filename box.
With Save Frame button image can be saved as
.pnm .pgm .pbm or .ppm file
-added info row with x, y, image-size, fps count, fps, fps_ava
-added -V and -h option (version and help
-added option -B -buffersize so instead of default input buffer of
32*1024 a buffer of 1024*1024 can be chosen, so for vidcams for example
640x480, usb 2.0, 30fps less time is needed to fill input buffer.
fond_6x11.h file added
Also some small updates to (for debug output):
xscanimage.c
preview.c
gtkglue.c
2005-04-11 20:09:04 +00:00
Henning Geinitz
eff8cec616
Wait for scan-scripts so all files are handled before leaving scanadf. Patch
...
from Tristan Hill <stan@saticed.me.uk>, bug #300993 .
2004-10-30 17:28:20 +00:00
Henning Geinitz
2dfb50d908
Don't try to print non-readable options. Don't try to write non-writable options
...
(bug #300621 ). Don't print warnings for options without constraints.
2004-10-03 19:16:57 +00:00
Henning Geinitz
37309355cb
Added -N option to stop scanadf from overwriting files (patch from Paul Walmsley
...
<paul@booyaka.com>).
2004-07-09 17:12:06 +00:00
Julien BLACHE
097c5a1563
src/gtkglue.h: looks like someone wanted GSGDialog.twocolumn to an int rather than a GtkWidget *. Fixed.
2004-04-29 19:21:54 +00:00
Julien BLACHE
80bc9c79ad
src/preview.c: make the preview work when it's resized (wrt selection).
2004-04-20 17:47:41 +00:00
Julien BLACHE
9df191fbe9
Fixed xcam GUI layout, so it doesn't blow away when resized.
2004-04-19 20:50:36 +00:00
Henning Geinitz
51e4a48d36
Used "us" for microsecond as the UTF8 text didn't work with GTK 1.2. See bug
...
#300621 .
2004-04-12 13:04:24 +00:00
Gerard Klaver
3b1166e02f
See bugreport 300621, patch from Mattias Ellert.
...
Solves xcam and xscanimage bug: warning Invalid UTF8 string passed to pango_layout_set_text() when using SANE_UNIT_MICROSECOND used by for example
testbackend (Read delay)
2004-04-09 17:14:50 +00:00
Gerard Klaver
dc41a0c10f
patch for bug/wishlist 300450, add display option one or two column.
2004-04-05 19:16:53 +00:00
Henning Geinitz
52b1cce372
Set sensitivity to false when scanning or previewing. This change fixes some
...
problems that accour when preview ist started again while preview is running.
See bug #300220 , #300219 , and #300218 .
2004-04-02 19:23:31 +00:00
Julien BLACHE
5d73974220
* src/xscanimage.c: fix select_device_callback() to return 0, fixing
...
a minor yet annoying bug in the device chooser (radio buttons didn't
toggle their status when clicked).
2004-04-02 14:23:38 +00:00
Julien BLACHE
72d9904d34
* src/xscanimage.c: add a call to gimp_extension_ack(), conforming
...
to the GIMP 2.0 plug-in API. Also initial the status to GIMP_PDB_CALLING_ERROR.
2004-01-25 12:58:31 +00:00
Julien BLACHE
a63c2b0d1c
* src/xscanimage.c: reverse the #ifdef ENABLE_GIMP_1_3 logic, we
...
now have ENABLE_GIMP_1_2 when GIMP 1.2 is explicitely wanted.
* configure.in: make GIMP 2.0 the default.
* include/sane/config.h: replace ENABLE_GIMP_1_3 by ENABLE_GIMP_1_2.
* aclocal.m4, acinclude.m4: include the AM_PATH_GIMP_2_0 macros,
which replaces the AM_PATH_GIMP_1_4 macro.
2004-01-22 10:15:42 +00:00
Henning Geinitz
215717250a
Added checks for the return values of SANE API functions.
2003-12-15 22:15:14 +00:00
Henning Geinitz
df76db9165
Added debug messages to most functions.
2003-12-15 21:44:27 +00:00
Henning Geinitz
a3916abf5c
Check if the gamma value is not negative and
...
<255. based on a patch from Patch from Gerard Klaver
<gerard@gkall.hobby.nl>, bug #300251 .
2003-10-05 12:54:10 +00:00
Henning Geinitz
7c21720af4
Make sure that we save only to files with extension pnm (and similar). Patch
...
from Gerard Klaver <gerard@gkall.hobby.nl>, bug #300239 .
2003-09-30 15:37:12 +00:00
Henning Geinitz
a7ebacf58c
Support for gimp version 1.3.17 (patch from Julien BLACHE <jb@jblache.org>).
2003-07-28 18:37:01 +00:00
Henning Geinitz
5d667fc5cb
Avoid integer overflow when calculating the size of very big images.
2003-07-17 14:10:37 +00:00
Henning Geinitz
3e995a1037
Fix for API-change in gimp 1.3.15 (patch from Julien BLACHE <jb@jblache.org>).
2003-06-25 21:09:28 +00:00
Henning Geinitz
5f8686e82f
Added GIMP 1.3 support. Added support for autoheader. Patch from Julien
...
BLACHE <jb@jblache.org>.
2003-03-23 14:44:31 +00:00
Henning Geinitz
3db20ca424
Added acinclude.m4 to create aclocal.m4 automatically. Added GTK2
...
support. Check for GTK2 only if the gimp plugin is disabled. If GTK2 is not
available, we'll fallback to a lower version if available. Patch from Julien
BLACHE <jb@jblache.org>. Check that setting resolution option in preview
succeeded. Otherwise we may use the main resolution setting accidently.
2003-03-22 16:45:11 +00:00
Henning Geinitz
292013c9da
Use a scrollbar if the options dialog gets too big. Patch from Julien BLACHE
...
<jb@jblache.org>.
2003-03-22 16:33:49 +00:00
Henning Geinitz
d91a32870f
Move gimp menu entries to File/Acquire/xscanimage/*. Patch from Julien BLACHE
...
<jb@jblache.org>.
2003-02-02 00:32:34 +00:00
Henning Geinitz
5e1ff368cb
Tell gimp which resolution we used for the scan. Based on patch from Aurelien
...
Jarno <lists@aurel32.net>.
2003-02-02 00:21:07 +00:00
Henning Geinitz
7d659fe7a3
Used shift values also for 15/16 bit modes.
2003-01-24 15:08:26 +00:00