Commit graph

21 commits

Author SHA1 Message Date
Doug Torrance 726e538471 wmbutton: Use version number from autoconf. 2017-07-16 10:39:52 +01:00
Doug Torrance 8ba7f5d982 wmbutton: Add entry for v0.7.0 to ChangeLog. (Based on git log.) 2017-07-16 10:39:52 +01:00
Doug Torrance f2f9f49ab0 wmbutton: Split ChangeLog off from README into its own file.
This will fix the 'no-upstream-changelog' Lintian warning in the Debian
package.
2017-07-16 10:39:52 +01:00
Doug Torrance 70854de371 wmbutton: Use autotools for build. 2017-07-16 10:39:52 +01:00
Doug Torrance a9c5c38e4f wmbutton: Rename sample.wmbutton to wmbutton.conf, as this will be its name after installation. 2017-07-16 10:39:52 +01:00
Doug Torrance 612921ae43 Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
Weland Treebark 9f5ea8c8d7 wmbutton: fail early on missing config
wmbutton will happily start and display what otherwise looks like a
functioning display even if none of the possible configuration files
exist. However, the application promptly exits as soon as it has to show
a tooltip. This isn't nice. It looks like a crash to an unsuspecting
user. Terminal output is shown, of course, leading to a decently quick
diagnostic, but the fail isn't early enough to be useable.

The trivial fix is to check if the local configuration file (specified
as a command line argument or defaulting to ~/.wmbutton) or the global
configuration file can be open. If neither can be open, we bail out
early.

This *still* has the problem of only really being functional in a
terminal. A graphical error box would definitely be preferable and is a
possible improvement.

Signed-off-by: Weland Treebark <weland@blinkenshell.org>
2014-05-28 21:20:02 +01:00
Rodolfo García Peñas (kix) 3a8ed84af3 wmbutton: Escape minus sign in manpage
The minus signs should be escaped to avoid problems with the parsers.
2012-08-22 18:42:06 +01:00
Rodolfo García Peñas (kix) caae33b0f0 wmbutton: Makefile install rewritten
The current Makefile script doesn't work properly, because the path
for /etc doesn't use DESTDIR and the installation path for $(DESTDIR)/usr/bin
is not created before installing the binary file in the folder.

LDFLAGS are needed in some distros to build the package, for example Debian.

This patch solves these problems.
2012-08-22 18:40:45 +01:00
Rodolfo García Peñas (kix) 6f2ffca0e2 wmbutton: New version 0.7.0
This patch changes the wmbutton version to 0.7.0
2012-08-21 20:52:30 +01:00
Rodolfo García Peñas (kix) 501be68377 wmbutton: initTooltip has no argument
The function initTooltip don't have arguments, so their can be removed.
Now the function prototype has the void argument set.
2012-08-21 20:52:24 +01:00
Rodolfo García Peñas (kix) 1400c7f7a6 wmbutton: wmbutton.h and wmb_libs.c code clean
This patch is a code clean patch:

- Removes spaces and tabs at end of line.
- Remove curly brackets not needed.
- Change spaces by tabs.
- Add spaces after and before operators.
- Removes spaces not needed.
- Better code style.
- Added void as function argument.
2012-08-21 20:52:18 +01:00
Rodolfo García Peñas (kix) cc68392ccb wmbutton: Middle button enabled by default
The mouse middle button should be enabled by default (see the help
and the manpage). This patch solves this bug.

The MIDMOUSE definition is removed because the value of MIDMOUSE
changes the middle button behaviour. Now, the middle button always works,
except if the user uses the -m argument.

Now the manpage and the help show the same info.
2012-08-21 20:52:12 +01:00
Rodolfo García Peñas (kix) 991c54732d wmbutton: Added manpage
The manpage is added. This manpage was initially written for Debian,
but now is adapted to upstream (I removed a paragraph... nothing more).
2012-08-21 20:52:08 +01:00
Rodolfo García Peñas (kix) 77a89054f5 wmbutton: wmbutton.c code clean
This patch is a code clean patch:

- Removes spaces and tabs at end of line.
- Remove curly brackets not needed.
- Change spaces by tabs.
- Add spaces after and before operators.
- Removes spaces not needed.
- Better code style.
2012-08-21 20:52:03 +01:00
Rodolfo García Peñas (kix) e07b2facf2 wmbutton: Better Makefile
This patch is based in the code wrote by Christian Aichinger
for the Debian distribution.

Changes are:

- Removed the compilation of ctags by default
- Changed the include /usr/X11R6/include/X11 to /usr/include
- Created install option
2012-08-21 20:51:58 +01:00
Rodolfo García Peñas (kix) fbdcee1386 wmbutton: Version simplification
This patch is based in the code wrote by Christian Aichinger
for the Debian distribution.

The patch simplify the version number in the code.
2012-08-21 20:51:53 +01:00
Rodolfo García Peñas (kix) de5602b957 wmbutton: Support for global conf file
This patch is based in the code wrote by Christian Aichinger
for the Debian distribution.

The patch includes the /etc/wmbutton.conf as global configuration
file. This file is readed if $home/.wmbutton don't exists.
2012-08-21 20:51:48 +01:00
Rodolfo García Peñas (kix) 83e2e0f2f9 wmbutton: .wmbutton file renamed
The file .wmbutton is a hidden file, and is better to distribute
it as sample configuration file (sample.wmbutton).

Based on Christian Aichinger's patch.
2012-08-21 20:51:25 +01:00
Rodolfo García Peñas (kix) 2c6831ca68 wmbutton: Correct path for X11 libs
The X11 libraries are now in include/X11 folder, instead of include
folder. Now is possible to compile the application in new systems.

This patch changes the wmbutton version in the README file too.

Based on Christian Aichinger's patch.
2012-08-21 20:50:48 +01:00
Rodolfo García Peñas (kix) 6dcdbf0e6e wmbutton dockapp added
The original wmbutton 0.6.1 is added to the repository.

wmbutton is a dockapp with nine buttons (3x3), capable of launch 27
different applications using the left, middle and right buttons.
2012-08-21 20:40:59 +01:00