Commit Graph

23 Commits

Author SHA1 Message Date
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 ab93e42a20 add get data for timers :)
SVN revision: 919
1999-10-20 22:23:29 +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
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
Michael Jennings 77adef0a94 Oops.
SVN revision: 832
1999-10-15 19:43:49 +00:00
Carsten Haitzler f11a42a32c add dialog ok call for epplets :)
SVN revision: 825
1999-10-13 22:31:43 +00:00
Carsten Haitzler a8451a6ef0 not desktop remembeirng...
SVN revision: 824
1999-10-13 22:18:18 +00:00
Carsten Haitzler 9552ddec4a add abotu call....... to header file
SVN revision: 822
1999-10-13 21:14:51 +00:00
Carsten Haitzler 0c6a67c2d4 add about call......
SVN revision: 821
1999-10-13 21:13:40 +00:00
Michael Jennings b5265feaa9 Feh.
SVN revision: 819
1999-10-13 19:25:41 +00:00
Michael Jennings 278d66d3ad Make EROOT and EBIN available to all epplets.
SVN revision: 818
1999-10-13 19:20:44 +00:00
Carsten Haitzler df793d4b3d E-clock changed.. much sexier now :)
SVN revision: 817
1999-10-13 19:04:05 +00:00
Carsten Haitzler d401869aec more additions
SVN revision: 814
1999-10-13 18:14:25 +00:00
Carsten Haitzler 8f6736c21d some minor updates
SVN revision: 813
1999-10-13 18:14:19 +00:00
Carsten Haitzler 877b6eb61a make this compile :)
SVN revision: 811
1999-10-13 17:41:41 +00:00
Michael Jennings b53d6e8aac And again.
SVN revision: 810
1999-10-13 17:41:25 +00:00
Michael Jennings 560aad04d5 Build with automake. Don't try installing yet; that doesn't work, but
raster needs my work to this point, so here it is. :)


SVN revision: 808
1999-10-13 17:39:37 +00:00
Carsten Haitzler fb927ed081 add api..........
SVN revision: 807
1999-10-13 17:34:12 +00:00
Carsten Haitzler 6c64681206 imporoting epplets......
SVN revision: 806
1999-10-13 15:14:42 +00:00