summaryrefslogtreecommitdiffstats
path: root/options.c
AgeCommit message (Collapse)Author
2022-06-15Release version 30v30NRK
Co-authored-by: NRK <nrk@disroot.org> Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
2022-02-23use win-title script for customizing window title (#213)N-R-K
this removes the cli flag `-T` as well as related config.h options. Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
2022-02-13update copyright yearNRK
2021-11-20mark functions and vars as static (#146)N-R-K
the goal here to mark functions and variables not used outside the translation unit as static. main reason for this is cleanliness. however as a side-effect this can help compilers optimize better as it now has guarantee that a certain function won't be called outside of that translation unit. one other side-effect of this is that accessing these vars/function from config.h is now different. if one wants to access a static var/func from different translation unit in config.h, he would have to create a wrapper function under the right ifdef. for static functions one would also need to forward declare it. here's a dummy example of accessing the function `run_key_handler` from config.h under _MAPPINGS_CONFIG ``` static void run_key_handler(const char *, unsigned); bool send_with_ctrl(arg_t key) { run_key_handler(XKeysymToString(key), ControlMask); return false; } ```
2021-10-30-0 sends NULL separated file-list to key-handlerNRK
with this change `-0` is turned into a more generic switch which can be used to send NULL-separated file-list to the key-handler as well. this also means `-0` no longer implicitly enables `-o` Closes: https://github.com/nsxiv/nsxiv/issues/140
2021-10-28code-style: general cleanups (#137)N-R-K
* tns_clean_cache: remove unused function arg * remove malloc casting * improve consistency use sizeof(T) at the end * avoid comparing integers of different signedness * use Window type for embed and parent * remove unnecessary comparisons * remove cpp style comments * improve consistency: remove comma from the end of enumerator list * Removed useless _IMAGE_CONFIG defines * consistency: use the same order as snprintf * Resolve c89 warnings Co-authored-by: uidops <uidops@protonmail.com> Co-authored-by: Arthur Williams <taaparthur@gmail.com>
2021-10-28update copyright notice (#139)eylles
2021-09-21switch -0 to bottom in options.cNRK
2021-09-21add 0 to print_usageNRK
2021-09-21add -0 for outputting null-terminated list (#68)N-R-K
* add -0 for outputting null-terminated list this doesn't add much, if any, additional complexity to the codebase and can be quite handy for scripting purposes. Closes: https://github.com/nsxiv/nsxiv/issues/67 * Fix typo Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
2021-09-16Rename, Update Docs and Prepare for Release (#9)Berke Kocaoğlu
Co-authored-by: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Co-authored-by: N-R-K <79544946+N-R-K@users.noreply.github.com> Co-authored-by: NRK <nrk@disroot.org> Co-authored-by: Arthur Williams <taaparthur@gmail.com> Co-authored-by: eylles <ed.ylles1997@gmail.com>
2021-09-16set title based on prefix and suffix (#23)qsmodo
Co-authored-by: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Co-authored-by: NRK <nrk@disroot.org> Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
2021-09-16Implement fill scale modeBerke Kocaoğlu
2018-06-09New version schemeBert Münnich
VERSION string between releases is last release suffixed with '+'. Additionally, use output of git-describe instead of VERSION string, if it is not empty.
2017-10-16One header file for type definitions and function declarationsBert Münnich
2017-09-08Add -p flag to disable writing of cache and temporary filesAntti Korpi
Closes #285.
2016-12-01Merge djhejna/floatdelayBert Münnich
2016-11-28Merge dwminer/framerateBert Münnich
2016-11-28Support for DELAY as a floating point number including less than 1Don Hejna
second while maintaining backward compatibiitiy with integer arguments.
2016-11-27Add -A option to force framerate on animated imagesdwminer
2016-10-30Use -e for X window embeddingBert Münnich
2016-10-29added support for XEMBED into other windows (ie tabbed) with -wshuall
2015-10-28Revised error handlingBert Münnich
- Functions warn() and die() replaced by GNU-like error(3) function - Register cleanup() with atexit(3) - Functions called by cleanup() are marked with CLEANUP and are not allowed to call exit(3)
2015-10-28Removed feature test macro definitions from source filesBert Münnich
2014-07-25Revised handling of GIF animationsBert Münnich
- New option `-a`: Play animations at startup - Ctrl-Space toggles animation for all GIF files - Infinite loop for all animations
2014-02-05Removed command line option -FBert Münnich
2014-02-04Set scale mode at startup via argument to -s optionBert Münnich
2014-02-04Revised scale mode and zoom level handlingBert Münnich
- Scale mode is not reset to default value upon image loading anymore - New default key binding to change mode to scale-down - Removed scale mode setting from config.h - Removed -d command line option, as this is now the default at startup
2014-01-15Fixed -z option argument parsing; fixes issue #127Bert Münnich
2014-01-04Slideshow mode is back, in a simplified versionBert Münnich
2013-11-14Refactored remote changesBert Münnich
2013-11-13Add support for changing the gamma valueAndrás Mohari
2013-08-22Added options for anti-alias & alpha layer coloring to config.def.hBert Münnich
Also removed now obsolete -p command line option; fixes issue #98
2013-03-19New options: -[io], read/write files from/to stdin/outBert Münnich
Fixes issue #84
2013-02-08Refactored function definitions to use dangling braceBert Münnich
2013-02-08Updated/corrected license headerBert Münnich
2012-10-29New option: -N, set X window resource nameBert Münnich
2012-02-16Added option -b: disable barBert Münnich
2012-02-15Already in the year 2012Bert Münnich
2012-02-11Removed exif support; made gif support non-optionalBert Münnich
2011-10-14Updated contact informationBert Münnich
2011-10-13Strictly adhere to ANSI-C standardBert Münnich
2011-10-12Use void for empty argument listsBert Münnich
2011-09-29Made all conditionals more preciseBert Münnich
2011-09-29Transformed function macros in util.h to inline functionsBert Münnich
2011-09-26Added STREQ macroBert Münnich
2011-09-26make use of EXIT_ macrosrck
2011-09-12Much nicer handling of compile-time featuresBert
- *_SUPPORT enabled in config.h - XLIBS helper app prints lib flags needed for current settings
2011-09-11Added own bool typeBert
2011-09-10Added slideshow supportBert