summaryrefslogtreecommitdiff
path: root/libgphoto2/gphoto2-widget.c
Commit message (Collapse)AuthorAgeFilesLines
* Add _DARWIN_C_SOURCE to most files that use string.h (#615)Rafał Hirsz2021-01-291-0/+1
| | | This change makes it possible to build libgphoto2 on macOS.
* Remove trailing whitespace from all *.h and *.c files.Siim Meerits2020-07-271-46/+46
|
* Adjust the semantics of gp_widget_changed to not clear the changed state.Marcus Meissner2016-11-201-7/+3
| | | | | | | Adjust the camlibs that use it (As this is mostly a internal function it should be ok to change.) Fixes https://github.com/gphoto/libgphoto2/issues/73
* From: Axel Waggershauser <awagger@web.de> ↵Marcus Meissner2014-07-221-59/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) introduce C_PARAMS and C_PARAMS_MSG along the lines of C_MEM 2) replace CHECK_NULL with C_PARAMS 3) replace the pattern if ( something ) return GP_ERROR_BAD_PARAMETERS; with C_PARAMS ( !something ); I went over the whole patch again to check that each 'something' condition is really inverted, so I dare to suggest you don't have to do that again ;). 4) replaced CHECK_LIST and CHECK_INDEX_RANGE with simple one-line C_PARAMS(...) expressions 5) a couple of hunks look like this - if (!inet_aton (buffer, &inp)) { - fprintf(stderr,"failed to scan for addr in %s\n", buffer); - return GP_ERROR_BAD_PARAMETERS; - } + C_PARAMS_MSG (inet_aton (buffer, &inp), so some 'lost' error messages get now properly piped into the gp_log mechanism. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15103 67ed7778-7388-44ab-90cf-0a291f65f57c
* From: Axel Waggershauser <awagger@web.de> ↵Marcus Meissner2014-07-211-20/+3
| | | | | | | | | | 3) use the fact that realloc() is defined to simply malloc if the first param is NULL, no need to manually distinguish between first and later allocations. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15098 67ed7778-7388-44ab-90cf-0a291f65f57c
* From: Axel Waggershauser <awagger@web.de> ↵Marcus Meissner2014-07-211-3/+1
| | | | | | | | | 2) don't check the pointer for NULL before calling free(), because free() checks it again. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15097 67ed7778-7388-44ab-90cf-0a291f65f57c
* From: Axel Waggershauser <awagger@web.de> ↵Marcus Meissner2014-07-211-11/+7
| | | | | | | | | | | here is a patch for (mostly) consistent usage of a generalized C_MEM macro for checking the return values of memory allocating functions, i.e. malloc, calloc, realloc and strdup. It is the C_MEM from libusb1.c, moved to gphoto2-port-log.h. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15096 67ed7778-7388-44ab-90cf-0a291f65f57c
* From: Axel Waggershauser <awagger@web.de> ↵Marcus Meissner2014-07-191-3/+3
| | | | | | | | | | | | | | | | | 7, 8, 9) same 3,4,5 but for libgphoto core 3, 4) strictly replacing gp_log( GP_LOG_DEBUG/ERROR, ... with GP_LOG_D/E in the libgphoto2 code. they are simple regex-replace patches. 5) fix some whitespace issues caused by 3 and 4 and remove any _(...) gettext macro usage for log messages git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15085 67ed7778-7388-44ab-90cf-0a291f65f57c
* updated fsf addressMarcus Meissner2014-01-011-2/+2
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14610 67ed7778-7388-44ab-90cf-0a291f65f57c
* better debuggingMarcus Meissner2010-06-301-3/+3
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@13105 67ed7778-7388-44ab-90cf-0a291f65f57c
* added gp_widget_set_readonly / get_readonlyMarcus Meissner2009-12-131-1/+43
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12556 67ed7778-7388-44ab-90cf-0a291f65f57c
* Fixed a bunch of C89 and SUS portability issues.Dan Fandrich2009-07-301-2/+2
| | | | | | | Fixed a buffer overflow in the AOX driver. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12305 67ed7778-7388-44ab-90cf-0a291f65f57c
* removed dynamic limits in widget code.Marcus Meissner2009-07-241-17/+34
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12263 67ed7778-7388-44ab-90cf-0a291f65f57c
* revert, wrong placeMarcus Meissner2009-07-111-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12226 67ed7778-7388-44ab-90cf-0a291f65f57c
* 200 widgets (needs to be dynamic actually)Marcus Meissner2009-07-111-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12225 67ed7778-7388-44ab-90cf-0a291f65f57c
* bump the number of subwidgetsMarcus Meissner2009-06-291-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12178 67ed7778-7388-44ab-90cf-0a291f65f57c
* fixed documentationMarcus Meissner2009-01-301-2/+2
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11788 67ed7778-7388-44ab-90cf-0a291f65f57c
* adjusted markup to be more doxygen helpfulMarcus Meissner2007-05-241-30/+51
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10300 67ed7778-7388-44ab-90cf-0a291f65f57c
* Consistently use #include <gphoto2/gphoto2-foo.h> everywhere.Hans Ulrich Niedermann2006-09-281-3/+3
| | | | | | | | | | This moves the header files to a new subdirectory gphoto2 in both libgphoto2 and libphoto2_port/libgphoto2. All references are adapted appropriately. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9221 67ed7778-7388-44ab-90cf-0a291f65f57c
* another set of doxygen annotation changes from Steve Fox.Marcus Meissner2006-05-251-141/+121
| | | | | | | removed the literal (c) symbol. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8818 67ed7778-7388-44ab-90cf-0a291f65f57c
* bump choices up to 100 max (for now).Marcus Meissner2005-09-081-6/+6
| | | | | | | should be a linked list or dynamic (will see when I find time). git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8236 67ed7778-7388-44ab-90cf-0a291f65f57c
* * gphoto2-widget.c: long choice lists may overflow the 64 entryMarcus Meissner2005-03-201-0/+4
| | | | | | | buffer. return errors when the list is full. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7656 67ed7778-7388-44ab-90cf-0a291f65f57c
* replace (c) and (C) by �Arnaud Launay2002-12-151-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5969 67ed7778-7388-44ab-90cf-0a291f65f57c
* <config.h> -> "config.h"Arnaud Launay2002-11-291-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5859 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2002-11-10 Lutz M�ller <lutz@users.sourceforge.net>Lutz Mueller2002-11-101-1/+1
| | | | | | | | * libgphoto2/gphoto2-widget.[c,h] (gp_widget_set_value): Make the argument const. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5588 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2002-01-27 Lutz M�ller <lutz@users.sourceforge.net>Colin Marquardt2002-01-271-2/+2
| | | | | | | | * libgphoto2/gphoto2-widget.c: Size of CameraWidget->[labelname] is now 256 instead of 32. Fixes long strings (esp. german translation). git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4021 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2002-01-15 Lutz M�ller <urc8@rz.uni-karlsruhe.de>Lutz Mueller2002-01-151-2/+2
| | | | | | | | | | More GPContext changes: * libgphoto2/gphoto2-context.[c,h]: Add message functionality * camlibs: Use it. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3886 67ed7778-7388-44ab-90cf-0a291f65f57c
* Localization fixes for konica driverLutz Mueller2001-10-271-1/+4
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2819 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2001-10-25 Colin Marquardt <colin@marquardt-home.de>Colin Marquardt2001-10-241-11/+11
| | | | | | | | * (Repository): s/retreiv/retriev/g * de.po: Update. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2728 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2001-10-14 Lutz M�ller <urc8@rz.uni-karlsruhe.de>Lutz Mueller2001-10-141-1/+1
| | | | | | | * libgphoto2/gphoto2-result.[c,h]: Documented. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2513 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2001-10-12 Lutz M�ller <urc8@rz.uni-karlsruhe.de>Lutz Mueller2001-10-121-55/+62
| | | | | | | | * include * libgphoto2: More renaming in order to make gtk-doc happy. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2499 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2001-10-12 Lutz M�ller <urc8@rz.uni-karlsruhe.de>Lutz Mueller2001-10-121-0/+795
* include/gphoto2-widget.h * include/gphoto2-filesys.h: Moved to ... * libgphoto2/gphoto2-widget.h * libgphoto2/gphoto2-filesys.h: ... here. * libgphoto2/widget.c * libgphoto2/filesys.c: Moved to ... * libgphoto2/gphoto2-widget.c * libgphoto2/gphoto2-widget.h: ... here. * include/Makefile.am * libgphoto2/Makefile.am: Updated. * camlibs/.../Makefile.am: Updated to reflect changes above git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2496 67ed7778-7388-44ab-90cf-0a291f65f57c