Commit graph

30 commits

Author SHA1 Message Date
Doug Torrance ef490d0670 wmcalc: Bump to version 0.7. 2018-09-11 06:28:25 -04:00
Doug Torrance a916fe2800 wmcalc: Add freedesktop.org desktop entry file. 2018-09-11 06:28:25 -04:00
Doug Torrance ff19c1226f wmcalc: Add icon for freedesktop.org icon themes. 2018-09-11 06:28:25 -04:00
Doug Torrance 0467087064 wmcalc: Use version number from autoconf. 2018-09-11 06:28:25 -04:00
Doug Torrance d90f29b5be wmcalc: Remove unused image files. 2018-09-11 06:28:25 -04:00
Doug Torrance 13b3710b02 wmcalc: Use autotools for build. 2018-09-11 06:28:25 -04:00
Doug Torrance ec62fab633 wmcalc: Null-termitate display string when clearing.
Often, the number currently being displayed has more than 10 digits.
However, when clearing the display, only the first 10 digits were cleared.
When a new number was entered, it would be prepended to any digits that
weren't cleared.  This behavior was invisible to the user, causing
incorrect calculations, e.g., Debian bug #564173:

1814 / 720 * 300 -> 7568.41111

But the correct answer is 755.833333.

The problem was that when the display was cleared, the string that stores
this number was not null-terminated.  Indeed, 1814 / 720 gives us
2.519444444 (6 4's), but only 2.51944444 (5 4's) is displayed.  When we
begin to multiply by 300, the final 4 remained, and so we really were
multiplying by 3004.
2018-08-29 23:14:02 -04:00
Doug Torrance 219e04f6ad Update mailing list links to new Google Groups. 2018-05-14 23:34:53 +01:00
Doug Torrance 1b4708cb92 Remove trailing whitespace in recently added dockapps. 2016-12-24 12:32:17 +00:00
Doug Torrance b44abc7a58 wmcalc: Fix reference to config file in manpage.
It incorrectly referenced the wmbutton config file instead.
2016-06-22 07:43:47 +02:00
Doug Torrance fc030713c4 wmcalc: Bump to version 0.6. 2015-08-23 08:35:36 +01:00
Doug Torrance a0d989abdf wmcalc: Move changelog from README to new ChangeLog file. 2015-08-23 08:35:36 +01:00
Doug Torrance 65d994a688 wmcalc: Fix manpage spelling.
Avoid Lintian warning in the Debian package.  Obtained from [1].

[1] https://sources.debian.net/src/wmcalc/0.5-1/debian/patches/fix_manpage_spelling.patch/
2015-08-23 08:35:36 +01:00
Doug Torrance cdc66d640f wmcalc: Fix typo in Makefile.
Correctly create the directory /usr/share/man/man1 instead of
/usr/share/man/man1/man1.

Obtained from the Debian package [1].

[1] https://sources.debian.net/src/wmcalc/0.5-1/debian/patches/fix_makefile_typo.patch/
2015-08-23 08:35:36 +01:00
Doug Torrance 66ea05ae67 wmcalc: Increase significant digits.
Patch by Antony Gelberg <antony@wayforth.co.uk> to fix Debian bug #320597 [1].
Obtained from the Debian package [2].

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=320597
[2] https://sources.debian.net/src/wmcalc/0.5-1/debian/patches/10_bts-320597_increase_significant_digits.patch/
2015-08-23 08:35:36 +01:00
Doug Torrance 050001c0f1 wmcalc: Bump to version 0.5. 2015-01-10 19:02:57 +00:00
Doug Torrance 773c07acd7 wmcalc: Remove C++ style comments. 2015-01-10 19:02:57 +00:00
Doug Torrance c3bef2f247 wmcalc: Fix -Woverflow compiler warnings. 2015-01-10 19:02:57 +00:00
Doug Torrance 544c36b79c wmcalc: Allow installation without root access.
Drop "-p -o root -g root" from the INSTALL_* Makefile variables and honor
the CONF Makefile variable for accessing the global config file instead of
hardcoding it as /etc.

These changes allow users without root access to install wmcalc in their home
directory.
2015-01-10 19:02:57 +00:00
Doug Torrance a43ce43092 wmcalc: Update README.
In particular,
- Update maintainer.
- Remove version-specific information.
- Update installation instructions.
- Add previously released version 0.4 to changelog.
2015-01-10 19:02:57 +00:00
Doug Torrance 0ac867513a wmcalc: Update COPYING from http://www.gnu.org/licenses/gpl-2.0.txt. 2015-01-10 19:02:57 +00:00
Doug Torrance 3803ee4cd5 wmcalc: Remove redundant .wmcalc*; essentially the same as wmcalc.conf. 2015-01-10 19:02:57 +00:00
Doug Torrance 6b282a4b4d wmcalc: Remove trailing whitespace. 2015-01-10 19:02:57 +00:00
Doug Torrance 587fe05cc1 wmcalc: Fix -Wunused-result compiler warning. 2015-01-10 19:02:57 +00:00
Doug Torrance d5d266d6d1 wmcalc: Fix -Warray-bounds compiler warning. 2015-01-10 19:02:57 +00:00
Doug Torrance 304860b38d wmcalc: Fix -Wunused-but-set-variable compiler warnings. 2015-01-10 19:02:57 +00:00
Doug Torrance 9d9d2500d7 wmcalc: Switch #include <XKBlib.h> to #include <X11/XKBlib.h>.
Otherwise, wmcalc fails to build.
2015-01-10 19:02:57 +00:00
Doug Torrance 550de54682 wmcalc: Update Makefile.
In particular,
- Drop INCLUDES and LIBINC variables; referenced deprecated X11R6 directories
  and INCLUDES unnecessarily included the default path.
- Switch hard-coded gcc for CC variable.
- Move hard-coded -02 and -Wall flags to new CFLAGS variable.
- Switch ${} to $() for consistency.
- Add new INSTALL_DIR variable for creating installation directories.
- Respect CPPFLAGS and LDFLAGS.
2015-01-10 19:02:57 +00:00
Doug Torrance 2f0aab0f8f wmcalc: Add manpage from Debian.
Obtained from:
http://snapshot.debian.org/package/wmcalc/0.3-7/

Additionally, add rule to Makefile to install new manpage.
2015-01-10 19:02:57 +00:00
Doug Torrance a50001bbe9 wmcalc: Add version 0.4 to repository.
Source obtained from:
ftp://ftp.afterstep.org/stable/rpms/misc-tarballs/wmcalc-0.4.tar.gz
2015-01-10 19:02:57 +00:00