Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix: crashing on bad exif thumbnail (#75) | N-R-K | 2021-09-29 | 1 | -1/+1 |
| | | | | | | | | | this does not need to be a fatal error. if im is NULL we're going to load it with imlib2 anyways. one other problem this solves is that before, due to the fatal error, the tmpfile opened under /tmp wouldn't get cleaned up. Closes: https://github.com/nsxiv/nsxiv/issues/69 | ||||
* | add .mark.foreground to Xresources | NRK | 2021-09-17 | 1 | -1/+1 |
| | | | | | since we're already allowing both window and bar colors to be customizable, it doesn't make sense to not allow so for mark color. | ||||
* | Rename, Update Docs and Prepare for Release (#9) | Berke Kocaoğlu | 2021-09-16 | 1 | -8/+9 |
| | | | | | | | 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> | ||||
* | set title based on prefix and suffix (#23) | qsmodo | 2021-09-16 | 1 | -0/+2 |
| | | | | | | 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> | ||||
* | Custom bar colors (#10) | Guilherme Freire | 2021-09-16 | 1 | -3/+3 |
| | | | | | | | | | * set bar and text colors independently * change xresources to Program.class.resource * rename color variables to win/bar_bg/fg * change default bar colors to match window colors | ||||
* | Use normal win colors in fullscreen mode | Bert Münnich | 2019-07-16 | 1 | -8/+3 |
| | | | | Fixes issues #361 and #367 | ||||
* | Fix comparison broken by signedness | Bert Münnich | 2019-03-15 | 1 | -16/+17 |
| | | | | Warning generated on MacOS, reported in issue #350. | ||||
* | Align compile-time color options with X resource colors | Bert Münnich | 2019-01-23 | 1 | -4/+4 |
| | | | | Two colors are more than enough! | ||||
* | Respect updated path format when cleaning cache | Kacper Gutowski | 2018-07-30 | 1 | -11/+2 |
| | | | | | | Since d8114e8 the file name is used for caching as-is without adding .jpg at the end, but sxiv -c still expected old format causing it to remove all fresh thumbnails. | ||||
* | Don't skip dot files when cleaning cache | Kacper Gutowski | 2018-07-30 | 1 | -1/+1 |
| | |||||
* | Reject text files resembling TGA images | Bert Münnich | 2017-11-23 | 1 | -8/+2 |
| | | | | | | | | | | | | | | | | | | | Fixes issue #295 The imlib2 TGA loader returns an imlib image handle without any actual data when given a text file like this: T Content-Type: application/javascript Content-Length: 3836 Last-Modified: Wed, 23 Sep 2015 12:25:47 GMT Etag: "56029a4b-efc" Expires: Sat, 20 Aug 2016 15:14:33 GMT Cache-Control: max-age=604800, public Accept-Ranges: bytes Fortunately, `imlib_image_get_data()` returns NULL in this case, so that we can use it as an additional check when opening files. | ||||
* | One header file for type definitions and function declarations | Bert Münnich | 2017-10-16 | 1 | -8/+4 |
| | |||||
* | Add -p flag to disable writing of cache and temporary files | Antti Korpi | 2017-09-08 | 1 | -1/+5 |
| | | | | Closes #285. | ||||
* | Fix unused-variable warnings in conditionally compiled code | Bert Münnich | 2016-12-28 | 1 | -3/+2 |
| | |||||
* | Only open regular files; fixes issue #252 | Bert Münnich | 2016-10-20 | 1 | -6/+10 |
| | |||||
* | Allow opening directories non-recursively | Paride Legovini | 2016-09-28 | 1 | -1/+1 |
| | |||||
* | Use Xft for font loading and text drawing | Bert Münnich | 2016-08-06 | 1 | -4/+4 |
| | |||||
* | Build-time option for default thumbnail size; fixes issue #207 | Bert Münnich | 2015-12-20 | 1 | -2/+2 |
| | |||||
* | Simplified r_mkdir() | Bert Münnich | 2015-10-28 | 1 | -1/+2 |
| | |||||
* | Revised error handling | Bert Münnich | 2015-10-28 | 1 | -7/+8 |
| | | | | | | | - 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) | ||||
* | Prefix safe allocation functions with 'e' instead of 's_' | Bert Münnich | 2015-10-28 | 1 | -3/+3 |
| | |||||
* | Removed feature test macro definitions from source files | Bert Münnich | 2015-10-28 | 1 | -3/+2 |
| | |||||
* | Removed overcautious parameter checks | Bert Münnich | 2015-10-28 | 1 | -37/+1 |
| | |||||
* | Thumbnail cache file format depending on existance of alpha layer | Bert Münnich | 2015-07-22 | 1 | -4/+8 |
| | | | | Use PNG if image has alpha layer, JPG if not. Fixes issue #209 | ||||
* | Cache out of view thumbnails in the background | Bert Münnich | 2015-01-04 | 1 | -10/+22 |
| | |||||
* | Use bit-field for boolean flags in fileinfo struct | Bert Münnich | 2015-01-04 | 1 | -3/+3 |
| | |||||
* | Enforced thumbnail reloading after key handler | Bert Münnich | 2014-11-27 | 1 | -1/+1 |
| | |||||
* | Limit thumbnail selection border width to 4px | Bert Münnich | 2014-11-27 | 1 | -0/+1 |
| | |||||
* | Do not cache thumbnails, which are smaller than the maximum size | Bert Münnich | 2014-10-31 | 1 | -12/+22 |
| | |||||
* | Discard cached & EXIF thumbnails, which are smaller than the configured ↵ | Bert Münnich | 2014-10-31 | 1 | -12/+21 |
| | | | | maximum size | ||||
* | Fixed leakage of resources allocated by EXIF library | Bert Münnich | 2014-10-31 | 1 | -4/+4 |
| | |||||
* | Fixed segfault when run with -c | Bert Münnich | 2014-10-29 | 1 | -1/+1 |
| | |||||
* | Do not print could-not-open-warnings for files found by directory traversal | Bert Münnich | 2014-10-24 | 1 | -1/+2 |
| | |||||
* | Unified file count variable for image & thumbnail mode | Bert Münnich | 2014-09-30 | 1 | -21/+22 |
| | |||||
* | Set JPEG quality for thumbnail cache files | Bert Münnich | 2014-09-29 | 1 | -0/+1 |
| | |||||
* | Fixed thumbnail creation for files with big aspect ratio factor; fixes issue ↵ | Bert Münnich | 2014-09-29 | 1 | -1/+2 |
| | | | | #175 | ||||
* | Scale thumbnail selection border width with thumbnail size | Bert Münnich | 2014-09-29 | 1 | -7/+10 |
| | |||||
* | Moved thumbnail sizes array to config.def.h | Bert Münnich | 2014-09-29 | 1 | -7/+7 |
| | |||||
* | Refactored thumbnail size dependent calculations | Bert Münnich | 2014-09-29 | 1 | -11/+13 |
| | |||||
* | Added thumbnail zooming... | Bert Münnich | 2014-09-28 | 1 | -36/+68 |
| | | | | | | - Key mappings +/- are now general commands - Use JPG as thumbnail cache file format instead of PNG - Fixes issue #161 | ||||
* | Changed image mark in thumbnail view to small rectangle | Bert Münnich | 2014-09-27 | 1 | -4/+3 |
| | |||||
* | Revised thumbnail loading... | Bert Münnich | 2014-09-26 | 1 | -20/+52 |
| | | | | | | | - Only load the thumbnails that are currently visible in the window - Unload thumbnails that are leaving the visible area - Much less memory needed, but scrolling is now slower - This also unintentionally fixes issue #86 | ||||
* | Bug #165: Deletion of unnecessary null pointer checks | Markus Elfring | 2014-08-22 | 1 | -6/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function "free" performs input parameter validation. http://pubs.opengroup.org/onlinepubs/9699919799/functions/free.html It is therefore not needed to check a passed pointer before this function call. A corresponding update suggestion was generated by the software "Coccinelle" from the following semantic patch approach. http://coccinelle.lip6.fr/ @Remove_unnecessary_pointer_checks1@ expression x; @@ -if (x != \(0 \| NULL\)) free(x); @Remove_unnecessary_pointer_checks2@ expression x; @@ -if (x != \(0 \| NULL\)) { free(x); x = \(0 \| NULL\); -} @Remove_unnecessary_pointer_checks3@ expression a, b; @@ -if (a != \(0 \| NULL\) && b != \(0 \| NULL\)) +if (a) free(b); @Remove_unnecessary_pointer_checks4@ expression a, b; @@ -if (a != \(0 \| NULL\) && b != \(0 \| NULL\)) { +if (a) { free(b); b = \(0 \| NULL\); } Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> | ||||
* | Beautified thumbnail marks and selection border | Bert Münnich | 2014-08-18 | 1 | -14/+12 |
| | |||||
* | Further simplified thumbnail marks | Bert Münnich | 2014-08-18 | 1 | -5/+3 |
| | |||||
* | Simplified thumbnail selection and marks | Bert Münnich | 2014-08-17 | 1 | -12/+9 |
| | |||||
* | Fixed wrong thumbnail-to-file mappings caused by file deletions | Bert Münnich | 2014-08-16 | 1 | -12/+14 |
| | |||||
* | Pass marked files to external key handler in thumbnail mode; fixes issue #135 | Bert Münnich | 2014-08-16 | 1 | -4/+2 |
| | |||||
* | Unified file index variable for image & thumbnail mode | Bert Münnich | 2014-08-16 | 1 | -22/+23 |
| | |||||
* | Generalized thumbnail loading, allows easier reloading of thumbnails later on | Bert Münnich | 2014-08-16 | 1 | -1/+2 |
| |