Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bug #165: Deletion of unnecessary null pointer checks | Markus Elfring | 2014-08-22 | 3 | -19/+10 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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> | ||||
* | Refactored rotation in key-handler | Bert Münnich | 2014-08-20 | 1 | -11/+12 |
| | |||||
* | Added actions for tag addition & removal to key-handler | Bert Münnich | 2014-08-20 | 2 | -1/+20 |
| | |||||
* | Unified rotate actions in key-handler; use lossless operation based on file type | Bert Münnich | 2014-08-18 | 1 | -18/+13 |
| | |||||
* | 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 | 3 | -7/+5 |
| | |||||
* | Simplified thumbnail selection and marks | Bert Münnich | 2014-08-17 | 3 | -19/+15 |
| | |||||
* | Increased contrast in default color set | Bert Münnich | 2014-08-17 | 1 | -2/+2 |
| | |||||
* | Added command to remove all image marks, bound to Ctrl-m; fixes issue #163 | Bert Münnich | 2014-08-17 | 5 | -0/+18 |
| | |||||
* | Full redraw when removing files during thumbnail reloading; fixes issue #164 | Bert Münnich | 2014-08-17 | 2 | -1/+3 |
| | |||||
* | Fixed wrong thumbnail-to-file mappings caused by file deletions | Bert Münnich | 2014-08-16 | 4 | -22/+24 |
| | |||||
* | Pass marked files to external key handler in thumbnail mode; fixes issue #135 | Bert Münnich | 2014-08-16 | 6 | -56/+76 |
| | |||||
* | Count number of marked files | Bert Münnich | 2014-08-16 | 2 | -3/+11 |
| | |||||
* | Unified file index variable for image & thumbnail mode | Bert Münnich | 2014-08-16 | 4 | -78/+65 |
| | |||||
* | Generalized thumbnail loading, allows easier reloading of thumbnails later on | Bert Münnich | 2014-08-16 | 4 | -10/+16 |
| | |||||
* | Made argument of s_strdup const | lucas8 | 2014-08-01 | 3 | -3/+3 |
| | |||||
* | Overhauled window drawing, yet again; fixes issue #155 | Bert Münnich | 2014-07-28 | 6 | -75/+54 |
| | | | | | | | | - Buffer for window content is bigger than the window, minimizes artifacts when window is resized - Back to using XSetWindowBackgroundPixmap() instead of XCopyArea(), no need to handle exposure events; X server can show gray background directly after resize event before sxiv redraws the window contents | ||||
* | Revised handling of GIF animations | Bert Münnich | 2014-07-25 | 9 | -49/+36 |
| | | | | | | - New option `-a`: Play animations at startup - Ctrl-Space toggles animation for all GIF files - Infinite loop for all animations | ||||
* | Added support for multiple commands per key/button mapping; elegant fix for ↵ | Bert Münnich | 2014-07-23 | 4 | -22/+22 |
| | | | | issue #150 | ||||
* | Revised command structure and key and mouse button mappings | Bert Münnich | 2014-07-23 | 8 | -380/+324 |
| | |||||
* | Show key handler status in bar while it is running | Bert Münnich | 2014-06-15 | 3 | -8/+20 |
| | |||||
* | Create thumbnail cache dir automatically | Bert Münnich | 2014-06-10 | 3 | -91/+61 |
| | |||||
* | Small fix for thumbnail cropping | Bert Münnich | 2014-06-10 | 2 | -2/+2 |
| | |||||
* | Use thumbnails in EXIF tags; requirement for libexif is back | Bert Münnich | 2014-06-09 | 6 | -221/+107 |
| | |||||
* | Merge branch 'barthalion/master' | Bert Münnich | 2014-05-31 | 1 | -0/+4 |
|\ | |||||
| * | Fix build with giflib >= 5.1.0. | Bartłomiej Piotrowski | 2014-05-27 | 1 | -0/+4 |
| | | |||||
* | | Use integers for mouse mappings and buttons 6+7 for horizontal scrolling | Bert Münnich | 2014-05-31 | 2 | -10/+12 |
|/ | | | | Fixes issue #143 | ||||
* | Timeout initial redraw | Miroslav Koskar | 2014-05-24 | 1 | -1/+1 |
| | |||||
* | Add a section about key-handler to the man page. | Artem Bezsmertnyi | 2014-05-24 | 2 | -1/+17 |
| | |||||
* | Stable version 1.2 | Bert Münnich | 2014-04-24 | 2 | -1/+12 |
| | |||||
* | Do not center window on screen, workaround for issue #9 | Bert Münnich | 2014-04-21 | 2 | -3/+3 |
| | |||||
* | Use a checkerboard background for alpha layer; fixes issue #138 | Bert Münnich | 2014-04-06 | 11 | -46/+45 |
| | |||||
* | Use real path of all files internally, requires _XOPEN_SOURCE>=500, fixes ↵ | Bert Münnich | 2014-03-17 | 2 | -9/+22 |
| | | | | issue #137 | ||||
* | Warn once when external key combo is used and key-handler not installed | Bert Münnich | 2014-02-18 | 2 | -5/+15 |
| | |||||
* | Check for background image allocation failure | Bert Münnich | 2014-02-07 | 2 | -2/+3 |
| | |||||
* | Use separate background image for alpha layer; fixes issue #132 | Bert Münnich | 2014-02-06 | 2 | -9/+31 |
| | |||||
* | Removed command line option -F | Bert Münnich | 2014-02-05 | 7 | -52/+21 |
| | |||||
* | Set scale mode at startup via argument to -s option | Bert Münnich | 2014-02-04 | 3 | -12/+20 |
| | |||||
* | Revised scale mode and zoom level handling | Bert Münnich | 2014-02-04 | 5 | -33/+21 |
| | | | | | | | - 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 | ||||
* | Removed fit-win-to-img command | Bert Münnich | 2014-02-04 | 7 | -65/+5 |
| | |||||
* | Preserve panning when switching images; fixes issue #131 | Bert Münnich | 2014-02-04 | 4 | -57/+29 |
| | |||||
* | Check if window manager supports fullscreen; related to issue #128 | Bert Münnich | 2014-02-02 | 2 | -0/+44 |
| | |||||
* | Unified X atom initialization | Bert Münnich | 2014-02-02 | 4 | -15/+30 |
| | |||||
* | Merged pull request #129 | Bert Münnich | 2014-01-31 | 8 | -16/+33 |
|\ | |||||
| * | Fix tabs and wording | András Mohari | 2014-01-31 | 1 | -3/+3 |
| | | |||||
| * | Use a prefix key to execute the key handler | András Mohari | 2014-01-31 | 4 | -5/+25 |
|/ | | | | | | The default prefix key is C-x, and can be changed in config.def.h. The first key pressed after the prefix key will be passed the external key handler, unless the key is Escape, which is used to cancel the prefix. | ||||
* | Use logo in README | Bert Münnich | 2014-01-15 | 1 | -2/+1 |
| | |||||
* | Added window icons; fixes issue #125 | Bert Münnich | 2014-01-15 | 10 | -0/+320 |
| | |||||
* | Fixed -z option argument parsing; fixes issue #127 | Bert Münnich | 2014-01-15 | 2 | -2/+2 |
| | |||||
* | Double click on thumbnail to open image | Bert Münnich | 2014-01-11 | 2 | -7/+12 |
| |