diskusage applet now works with fileutils



-----BEGIN PGP SIGNED MESSAGE-----

Hi all,

The diskusage applet now works with the stuff from GNU fileutils.

To anybody wanting to do something similar:

* look at gnome-common/gnome-fileutils.m4 - it defines
  GNOME_FILEUTILS_CHECKS which you need to include in your
  configure.in

* import the unchanged sources from GNU fileutils 3.16 (files
  'lib/{mountlist.h,mountlist.h,fsusage.c,fsusage.h}).

* in mountlist.c apply this patch:

	--- mountlist.c 1998/05/22 10:11:21     1.1.1.1
	+++ mountlist.c 1998/05/22 18:18:06     1.2
	@@ -34,10 +34,17 @@
	 #include <strings.h>
	 #endif
	 
	+#include <glib.h>
	+
	+#undef xmalloc
	+#undef xrealloc
	+#undef xstrdup
	+
	+#define xmalloc g_malloc
	+#define xrealloc g_realloc
	+#define xstrdup g_strdup
	+
	 char *strstr ();
	-char *xmalloc ();
	-char *xrealloc ();
	-char *xstrdup ();
	 void error ();
	 
	 #ifdef HAVE_SYS_PARAM_H

  In general, you can cd into gnome-core/applets/diskusage and say

  $ cvs diff -u -r GNU_FILEUTILS mountlist.c

* look at gnome-core/applets/diskusage/diskusage_read.c on how to use the
  information from these files (it's really very simple).

Martin
  
- -----------------------------------------------------------------
   Martin Baulig - Angewandte Mathematik - Universitaet Trier

   baulig@castor.uni-trier.de, http://www.home-of-linux.org/
   Key: 1024-bit key with ID C8178435 created 1997/01/24 
   ID:  67 C1 84 A0 47 F5 11 C5  5F 68 4C 84 99 05 C3 92
   Finger me for public key or fetch finger.txt from the url above
- ------------------------------------------------------------------


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQCVAwUBNWXD8oA8K7jIF4Q1AQFzvAP/TUgtHqrzGXitdfI6/xDSSOY6FXMMNG5C
ZJXEv0kDp7cMTCYAbUxFkEdtHkl10W75nYYKV7dS/+MdwWzkYgk02nNy+EIQgK7d
iQxEgqxc4XEZuHYr8rOsUIvQ8udwNvwZ9xvZD3BxGmPjAiCKYyseinhfZYFDp3Cn
RMPa8PtphsI=
=Mk4D
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]