Commit Graph

520 Commits

Author SHA1 Message Date
Michael Jennings 0768fac75b Thu Oct 28 18:58:52 PDT 1999
(KainX)

Basic cleanups on the config stuff.  I made sure that all epplets using the
config subsystem are using atexit(), and I added the same re-prioritizing
code that my epplets have to E-Cpu and E-NetFlame so they wouldn't be as
CPU-intensive.  E-NetFlame has also been upgraded to v0.3 with bandwidth
patches from Shawn (the author), and it also has a config file option for
which interface to monitor (default "eth0") for those who might want to keep
an eye on ppp0.


SVN revision: 1037
1999-10-28 18:13:11 +00:00
Carsten Haitzler d0854e1e76 fix clock.....
SVN revision: 1016
1999-10-28 10:18:34 +00:00
Michael Jennings 187b738248 Tue Oct 26 17:44:38 PDT 1999
(KainX)

E-Sys, an uptime epplet that actually *works*. :-)


SVN revision: 992
1999-10-26 17:22:36 +00:00
Michael Jennings cc45df368c Oops. Shouldn't have done that little part. If the config file doesn't
exist, it's not necessarily an error.


SVN revision: 991
1999-10-26 16:17:24 +00:00
Michael Jennings 607ee975fe Tue Oct 26 16:06:43 PDT 1999
(KainX)

Okay, don't kill me.  I had to change the API again because it was broken.
Epplet_load_config() now takes no parameters.  I also renamed some functions,
which the following command should help you do:

perl -p -i.bak -e \
	's/config_data_with_def/config_def/g; s/_config_data/_config/g;' \
	<files>

That all goes on a single line, BTW.  And replace <files> with the names of
your .c files.  You must now specify any defaults by calling
Epplet_query_config_def() instead and passing the default to that function.

I also added the ability to right-justify label text by specifying a negative
x coordinate.  See E-Time for a sample.


SVN revision: 989
1999-10-26 15:48:35 +00:00
Carsten Haitzler 1886cd46f5 E-Power patches :)
SVN revision: 987
1999-10-26 14:00:12 +00:00
Michael Jennings d4fcc010d6 Tue Oct 26 14:15:39 PDT 1999
(KainX)

Fixed E-Time to look better.  Should fix the problem with non-BlueSteel
themes.


SVN revision: 986
1999-10-26 13:56:51 +00:00
Michael Jennings 94eac0fea1 Tue Oct 26 13:42:53 PDT 1999
(KainX)

First off, I removed some unneeded variables from E-MemWatch.  I also fixed a
reporting bug in E-Disk.

But most importantly, I fixed Epplet_change_label() to avoid changing a label
to the exact same string.  This is the best place to handle this situation,
because it saves resources (we already have both strings to compare) and, due
to the nature of epplets, the probability is very high that this function
would only (or at least primarily) be called from a timer callback.  So it
simplifies client code this way too.


SVN revision: 983
1999-10-26 13:26:21 +00:00
Carsten Haitzler fb6984b026 show the REAL memeory usage.. (wel closer to REAL)
SVN revision: 980
1999-10-26 00:35:54 +00:00
Carsten Haitzler fdae9c86f4 sync when unremembering..........
SVN revision: 979
1999-10-25 23:54:10 +00:00
Michael Jennings 50f2c6afc5 Mon Oct 25 23:43:23 PDT 1999
(KainX)

E-NetFlame was too spiffy for me to not add it. :-)


SVN revision: 973
1999-10-25 23:33:27 +00:00
Michael Jennings 02e42b0669 Helps if you actually commit the C file. =P
SVN revision: 970
1999-10-25 23:18:49 +00:00
Michael Jennings 89f9984f36 Mon Oct 25 23:28:31 PDT 1999
(KainX)

E-Disk, an epplet which gives you a numerical and graphical view of your disk
I/O.  It also keeps persistent bandwidth data, so the longer you run it, the
more accurately the percentage bars will portray your I/O bandwith usage.


SVN revision: 969
1999-10-25 23:18:29 +00:00
Michael Jennings 6c4efbae74 Mon Oct 25 16:49:48 PDT 1999
(KainX)

Added a mode for open() since apparently some systems don't default to
(0666 | umask) like they should. :(


SVN revision: 967
1999-10-25 16:41:06 +00:00
Michael Jennings eb7aca7990 Oops.
SVN revision: 965
1999-10-25 10:59:05 +00:00
Michael Jennings d01fc8f7dc Sun Oct 24 13:05:15 PDT 1999
(KainX)

Added Epplet_query_config_data_with_def().  See the header file for syntax.
For some reason, the compiler didn't like it when I spelled out "default."


SVN revision: 964
1999-10-24 13:10:22 +00:00
Michael Jennings 0ce900fd91 Sun Oct 24 12:14:07 PDT 1999
(KainX)

Lock files now store PID's so that stale checks can be made.  It seems to
work here, but I'll need lots of testing.

PLEASE remove all .lock files from ~/.enlightenment/epplet_config/*/ and close
all running epplets before running any new ones!


SVN revision: 963
1999-10-24 12:21:17 +00:00
Mandrake 87606b4ccd Sat Oct 23 21:00:30 PDT 1999
(Mandrake)

Second patch from horms about popup entry removal


SVN revision: 961
1999-10-23 21:07:31 +00:00
Mandrake e75aa717fe Sat Oct 23 10:03:02 PDT 1999
(Mandrake)

Added patch from horms (horms@valinux.com) to allow you to remove popup entries


SVN revision: 958
1999-10-23 10:15:45 +00:00
Michael Jennings fec1a39d83 Sat Oct 23 00:15:29 PDT 1999
(KainX)

E-MemWatch, a memory/swap monitor.


SVN revision: 957
1999-10-23 00:39:21 +00:00
Michael Jennings 117ca28b7e Fri Oct 22 23:22:25 PDT 1999
(KainX)

Fixed configure.in so that user-specified $CFLAGS will be honored.  Also
removed all the warnings from compiling.


SVN revision: 955
1999-10-22 23:45:57 +00:00
Michael Jennings 0a4e2ce260 Fri Oct 22 22:48:20 PDT 1999
(KainX)

Multiple instance and config file support for E-Cpu, E-Net, and E-Biff. :-)


SVN revision: 954
1999-10-22 23:12:12 +00:00
Michael Jennings c274c25cfa E-Cpu now uses the new config stuff and supports multiple instances.
SVN revision: 952
1999-10-22 22:25:47 +00:00
Michael Jennings 9898d36b95 Fri Oct 22 21:43:33 PDT 1999
(KainX)

Alright, I've got the config stuff working as planned.  Epplet_Init() has the
same parameters as it used to.  If you use config files, make sure to call
Epplet_load_config() AFTER calling Epplet_Init() but BEFORE attempting to
access config data.

Also note the function name changes:  Epplet_save_config(),
Epplet_query_config_data(), and Epplet_modify_config_data().


SVN revision: 951
1999-10-22 22:09:18 +00:00
Christian Kreibich 5231296117 Ok, the config file management should work now. Lock files are used
for instance accounting, every epplet has its own directory in
~/.enlightenment/epplet_config/<epplet-name>, transparent config file
handling is provided. Users only need to query for settings and change
settings. Config settings are saved automatically on exit, which
means that users MUST call Epplet_cleanup() before exiting. Every
epplet instance has its own config file. Also added a mechanism for
defining default settings.

Updated all epplets accordingly.

Look at ConfigTestEpplet.c for the details. It shows what instance it
is running as and keeps a record on how many times that instance
has been run in the config files.


SVN revision: 949
1999-10-22 16:43:22 +00:00
Carsten Haitzler a2dabc9c23 stuffffffff :)
SVN revision: 922
1999-10-21 11:26:10 +00:00
Carsten Haitzler f335cedd01 add epplet from john slee that chnages desktop areas :) great example of
using IPC to control E form an epplet :)


SVN revision: 921
1999-10-21 09:07:38 +00:00
Carsten Haitzler ab93e42a20 add get data for timers :)
SVN revision: 919
1999-10-20 22:23:29 +00:00
Carsten Haitzler 52b332315b fix segv in E-Cpu
SVN revision: 905
1999-10-20 16:09:34 +00:00
Michael Jennings 41a6d75874 Tue Oct 19 14:21:41 PDT 1999
(KainX)

Added 7of9 mode to E-Biff just for raster. :-)
Also fixed some bugs with the config file stuff.  If you're going to parse a
config file, *honor* it for pete's sake! =P


SVN revision: 885
1999-10-19 15:27:44 +00:00
Mandrake e873ec708e and the same EMix -> Emix typo hits us again
SVN revision: 884
1999-10-19 14:08:38 +00:00
Mandrake 0a479dd54e we were a bit too liberal with slashes.
SVN revision: 883
1999-10-19 14:05:02 +00:00
Carsten Haitzler 10755b7a3d damn u automake! :-)
SVN revision: 882
1999-10-19 14:01:58 +00:00
Carsten Haitzler 6b2fb62520 :)
SVN revision: 881
1999-10-19 14:00:27 +00:00
Carsten Haitzler d4d43070b1 fix that :)
SVN revision: 880
1999-10-19 13:57:06 +00:00
Carsten Haitzler 1f1ae81ca2 added Emix epplet... :) fixed EBiff icon to be smaller :)
SVN revision: 879
1999-10-19 13:46:24 +00:00
Michael Jennings 6ff06d5752 You can't use ${DATA} guys. Changed to ${IMAGES}.
SVN revision: 877
1999-10-19 11:45:30 +00:00
Christian Kreibich 5a07fb6ef3 In config files, treat lines starting with '#' as comments.
SVN revision: 874
1999-10-19 10:32:49 +00:00
Carsten Haitzler 2cb8aa709e no 0x there....
SVN revision: 872
1999-10-19 10:19:13 +00:00
Carsten Haitzler df0ef9387b rememebr works again
SVN revision: 868
1999-10-19 00:43:27 +00:00
Mandrake 7cbbb004ee Mon Oct 18 18:13:35 PDT 1999
(Mandrake)

fixed another Makefile.am bug


SVN revision: 865
1999-10-18 19:22:29 +00:00
Carsten Haitzler 64ffdbf7b2 better default label if you dont have apm.. :)
SVN revision: 864
1999-10-18 19:15:32 +00:00
Mandrake 46813490cc Mon Oct 18 16:02:50 PDT 1999
(Mandrake)

fixed Makefile.am in epplets to actually build some directories it asked for.
added ChangeLog


SVN revision: 842
1999-10-18 17:13:26 +00:00
Christian Kreibich e5d23bbf3c The beginnings of a config file manager. Mostly works,
but I haven't tested it enough yet.

The idea is to run
Epplet_load_config_file("~/.whaterver");
assuming that the config file looks e.g. this:

a_number 	123
some_word 	hello
my_string 	hello world

and then query for the keys in the first column using

char * s;

s = Epplet_query_config_file("my_string");
if (s)
  {
    /* s is now "hello world". */
  }


Hope that's a good idea.

Cheers,
-- Christian.


SVN revision: 838
1999-10-18 15:50:58 +00:00
Carsten Haitzler 0a414ad2c2 add 2 calls :)
SVN revision: 836
1999-10-18 15:04:54 +00:00
Carsten Haitzler 6470e903a9 add a battery meter epplet :) - okj someoen else did already but min looks
sexy and i wrote it on the plane flight back from ALS :)


SVN revision: 835
1999-10-18 14:55:46 +00:00
Michael Jennings 77adef0a94 Oops.
SVN revision: 832
1999-10-15 19:43:49 +00:00
Michael Jennings 18d5bff668 Pass make distcheck
SVN revision: 831
1999-10-15 19:04:44 +00:00
Michael Jennings cb07d706f8 E-Biff 0.3.
Features a new layout, a new icon, and config file support.


SVN revision: 830
1999-10-15 18:53:49 +00:00
Michael Jennings db2fbd36ad Doh?
Doh.


SVN revision: 829
1999-10-15 14:11:05 +00:00