Commit graph

421 commits

Author SHA1 Message Date
Doug Torrance 2167b4c354 wmmenu: Fix -Wsign-compare compiler warning.
Use size_t instead of int since comparing with sizeof.
2015-01-24 18:40:48 +00:00
Doug Torrance 28ea752c44 wmmenu: Fix -Wunused-value compiler warnings. 2015-01-24 18:40:48 +00:00
Doug Torrance 93bb8f6267 wmmenu: Fix -Woverlength-strings compiler warning.
Instead of printing one giant string for the help text, we print each line
individually.
2015-01-24 18:40:48 +00:00
Doug Torrance 1bda233d76 wmmenu: Fix -Wdeprecated-declarations compiler warnings.
The function gdk_pixbuf_unref is deprecated.  We replace it with
g_object_unref.  This requires linking against gobject-2.0.
2015-01-24 18:40:48 +00:00
Doug Torrance aa1149d5f9 wmmenu: Fix -Wunused-result compiler warning.
Print a warning message if system() fails.
2015-01-24 18:40:48 +00:00
Doug Torrance a29eaa2fb2 wmmenu: Replace deprecated DAInitialize() from libdockapp.
Patch from Gentoo [1].

[1] http://mirrors.telepoint.bg/gentoo-portage/x11-plugins/wmmenu/files/wmmenu-1.2-support-libdockapp-0.5.0.patch
2015-01-24 18:40:48 +00:00
Doug Torrance 906ed7723c wmmenu: Update to compile with modern GDK-PixBuf.
In particular,
- We need to link against gdk_pixbuf-2.0 in addition to
  gdk_pixbuf_xlib-2.0.
- The header gdk-pixbuf-xlib.h has been moved to the gdk-pixbuf-xlib
  directory.
- The function gdk_pixbuf_new_from_file now requires two arguments.
- We need to define GdkColor ourselves since we don't include gdk.h.

Inspired by a patch by Nerijus Baliunas [1].

[1] http://lists.windowmaker.org/dev/msg07994.html
2015-01-24 18:40:48 +00:00
Doug Torrance 3f77d709f9 wmmenu: Update Makefile.
In particular,
- Remove option to compile with deprecated GDK-PixBuf 1.0.
- Remove *ROOT variables; libdockapp should be in the default include search
  path and X11R6 directories are deprecated.
- Remove /opt/gtk2/bin from PIXBUF_CFG; pkg-config is likely elsewhere.
- Remove CPPFLAGS from CFLAGS and INCDIRS and DEFINES from CFLAGS; we  don't
  want these to disappear if user defines different flags.

Inspired in part by similar patches in Gentoo [1] and by Nerijus Baliunas [2].

[1] http://mirrors.telepoint.bg/gentoo-portage/x11-plugins/wmmenu/files/wmmenu-1.2-Makefile.patch
[2] http://lists.windowmaker.org/dev/msg07994.html
2015-01-24 18:40:48 +00:00
Doug Torrance ef546fc369 wmmenu: Add version 1.2 to repository.
Obtained from [1] at the request of Nerijus Baliunas [2].

[1] https://web.archive.org/web/20110720231607/http://www.fcoutant.freesurf.fr/download/wmmenu-1.2.tar.gz
[2] http://lists.windowmaker.org/dev/msg07991.html
2015-01-22 23:13:20 +00:00
Doug Torrance da9608cbd8 Add wmfsm information for dockapps webpage. 2015-01-22 16:21:12 +00:00
Doug Torrance c312b63d2d wmfsm: Bump to version 0.35. 2015-01-22 11:12:11 +00:00
Doug Torrance 7d029d2db1 wmfsm: Update README with new installation instructions. 2015-01-22 11:12:11 +00:00
Doug Torrance e8d40e3115 wmfsm: Combine ChangeLog and ChangeLog.old.
As ChangeLog is no longer automatically generated by arch, there is no need
to keep these files separate.
2015-01-22 11:12:10 +00:00
Doug Torrance b117ac7474 wmfsm: Impove version number handling.
In particular,
- Add new --version command line option.  (This was already documented in
  the manpage.)  Remove this information from the --help text.  Also took
  the opportunity to properly align the --fire line in the --help text.
- Remove WMFSM_VERSION macro in favor of PACKAGE_VERSION from autconf.
- Remove hard-coded version number at top of source file for
  maintainability.
2015-01-22 11:12:10 +00:00
Doug Torrance d379db1092 wmfsm: Update with new contact information. 2015-01-22 11:12:10 +00:00
Doug Torrance d9d5dd1343 wmfsm: Add -a command line option to select appearance at runtime.
Also update Makefile to install appearance XPMs during "make install".
2015-01-22 11:12:10 +00:00
Doug Torrance fa0bdfaeba wmfsm: Add --with-xpm option to configure to select appearance at compile time.
Note that wmfsm/wmfsm_master.xpm has been removed, as it is now created as a
symlink during configure.  It is also removed by "make clean".
2015-01-22 11:12:10 +00:00
Doug Torrance 9c22691eda wmfsm: Remove TODO; all the items have been done. 2015-01-22 11:12:10 +00:00
Doug Torrance 9b9ef2f6d2 wmfsm: Fix -Wunused-result compiler warnings.
In particular, if fscanf does not read the expected number of items from
/etc/mtab, print a warning message.
2015-01-22 11:12:10 +00:00
Doug Torrance 331af1daa2 wmfsm: Update COPYING from http://www.gnu.org/licenses/gpl-2.0.txt. 2015-01-22 11:12:10 +00:00
Doug Torrance 18898f871f wmfsm: Update Free Software Foundation address in copyright header. 2015-01-22 11:12:10 +00:00
Doug Torrance 70c80a41a5 wmfsm: Remove trailing whitespace. 2015-01-22 11:12:10 +00:00
Doug Torrance bec2a56a92 wmfsm: Update sample configuration file.
Patch by Arthur Korn <arthur@korn.ch> to fix Debian bug #226298 [1].

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?archive=yes&bug=226298
2015-01-22 11:12:10 +00:00
Doug Torrance 2401e76fa4 wmfsm: Improve manpage.
In particular,
- Apply, with some modification, a patch by Jari Aalto
  <jari.aalto@poboxes.com> to clarify the format of the configuration file.
  See [1].
- Escape minus signs to avoid hyphen-used-as-minus-sign Lintian warning in
  the Debian package.
- Remove docbook-to-man comments to avoid manpage-has-errors-from-man
  Lintian warning in the Debian package.
- Add commas between short and long options for readability.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?archive=yes&bug=226274
2015-01-22 11:12:10 +00:00
Doug Torrance aef6c49d83 wmfsm: Apply further Debian patches.
The individual patches no longer seem to exist, so I submit them together.
According to debian/changelog entries by Arthur Korn <arthur@debian.org>,
these patches include:
* fixed memleak introduced in 0.34-2 with the patch by Timo Benk.
  global char *mp[] was assigned the result of stdup() repeatedly
  without free. My ugly fix is to free it all up at the beginning of
  readFileSystems(). Now I'm a proud Perl coder ... closes: #196057
* memleak news: avoid it if there are more than 9 filesystems too.
* Fixed filesystem name corruption, thanks to Ralf Horstmann and Cristian
  Ionescu-Idbohrn for the patch.
2015-01-22 11:12:10 +00:00
Doug Torrance 3eb9307a7b wmfsm: Read newly mounted filesystems.
Patch by Timo Benk <t_benk@web.de> to fix Debian bug #186826 [1].

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?archive=yes&bug=186826
2015-01-22 11:12:10 +00:00
Doug Torrance b143ff46a6 wmfsm: Hide "system" file systems.
Patch [1] by roma1390 and Michele Noberasco to fix Gentoo bug #50148 [2].

[1] http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-plugins/wmfsm/files/wmfsm-0.34.linux-fs.patch
[2] https://bugs.gentoo.org/show_bug.cgi?id=50148
2015-01-22 11:12:10 +00:00
Doug Torrance 443124b998 wmfsm: Autotools updates.
In particular,
- Update AM_INIT_AUTOMAKE to silence "two- and three-arguments forms are
  deprecated" warnings.
- Update AC_DEFINEs to silence "missing template" warnings.
2015-01-22 11:12:10 +00:00
Doug Torrance 4ece1f4ee8 wmfsm: Rename configure.in to configure.ac. 2015-01-22 11:12:10 +00:00
Doug Torrance 8f6c8d13a6 wmfsm: Remove autotools-generated files. 2015-01-22 11:12:10 +00:00
Doug Torrance 34d838198a wmfsm: Add version 0.34 to repository.
Obtained from [1].

[1] http://snapshot.debian.org/archive/debian/20050312T000000Z/pool/main/w/wmfsm/wmfsm_0.34.orig.tar.gz
2015-01-22 11:11:18 +00:00
Doug Torrance 59949f4749 wmbattery: Bump to version 2.46. 2015-01-17 15:02:06 +00:00
Ludwig Nussel 9db8262d65 wmbattery: update upower support
* reuse dbus connection
* set delay to actually refresh values
2015-01-17 15:02:06 +00:00
Ludwig Nussel bdc9f33956 wmbattery: make it work without libapm
libapm and apm.h are not necessarily available on Linux either so make it work
without.
2015-01-17 15:02:06 +00:00
Carlos R. Mafra 8345c9ca76 wmnet: increase polling delay to 0.1 sec and maxrate to 120kb 2015-01-11 21:31:40 +00:00
Carlos R. Mafra 49944a01ae wmnet: simplify updateStats_dev() a bit
There is no need to have a variable holding the interface name and
doing the exercise of stripping the trailing colon. It is enough
to just compare the line to check whether it contains the device
name. And only if it does we sscanf() its contents.
2015-01-11 21:04:02 +00:00
Carlos R. Mafra cd4947f139 wmnet: Cope with interface name longer than 6 characters
After a recent change in the kernel (their commit 6e094bd) my
wireless interface name is 8 characters long, wlp3s0b1. But
the wmnet code to read the received bytes

	totalbytes_in = strtoul(&buffer[7], NULL, 10);

assumed that the interface name in /proc/net/dev would be 6 characters
long (and would start reading at position 7).

In the linux kernel mailing list I reported the regression and none
other than Al Viro replied,

> I am not sure if 'wmnet' could do this better (any suggestions?),

*snort*

well, yes - it's called scanf().  And if one is really, really nervous
about the overhead of <gasp> parsing a bunch of integers (as if fopen/
fgets/fclose alone won't cost enough to make constantly calling that
sucker a bad idea), just use ptr + <something> - 6 instead of
&buffer[<something>] in there.  That thing has just found where the
colon was (and replaced it with NUL), so dealing with "the first field
turned out to be too long and shifted everything past it" isn't hard.

******

I also took the oportunity to remove the unused variables diffpackets_{in,out}
2015-01-11 13:16:40 +00:00
Doug Torrance e3c0e9452b Add wmcalc information for dockapps webpage. 2015-01-10 20:45:59 +00: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