Commit Graph

111 Commits

Author SHA1 Message Date
Richard Barnes 1a79294f41 Change to something more like ClickToFocus. The gadgets won't *keep* the focus
unless you click them. This probably needs a little more work...


SVN revision: 1449
1999-11-28 22:33:31 +00:00
Richard Barnes c588207445 Make focusing between an epplet and it's gadget's work a little better. Basically added sloppy-focus. The epplet remembers which gadget last had focus and, if none currently have focus and the last_gadget was a textboxes, passes key events to it.
SVN revision: 1448
1999-11-28 22:08:49 +00:00
Tom Gilbert 6508a63aa4 Sun Nov 28 20:04:45 GMT 1999
(gilbertt)

Fixed some overzealous free()ing (no checks) in Epplet_gadget_destroy()


SVN revision: 1426
1999-11-28 16:31:23 +00:00
Richard Barnes 7194de932b Textbox bugfixes (I hope), thanks for bitching, guys *ducks*
SVN revision: 1418
1999-11-27 17:58:33 +00:00
Richard Barnes 962a738516 You can paste to textboxes now....whoopty d00.
SVN revision: 1417
1999-11-27 16:17:16 +00:00
Michael Jennings 89085f3eee Wed Nov 24 18:33:45 PST 1999
(KainX)

Major restructuring and cleanup.  I think the new standard should be pretty
self-explanatory, but let me know if you have any questions.  CVS developers,
PLEASE read epplets/Makefile.am carefully to see how it all works now.

Icons are stored in epplets/icons/ and are installed into
$EROOT/epplet_icons/.  All miscellaneous data files (including images) are
stored in epplets/<epplet name>-data/ and are installed into
$EROOT/epplet_data/<epplet name>/.  Also note that, if you're going to use the
same old aircut3.ttf and bg.png in your help section, add your epplet's name
to NEED_BG and NEED_FONT in epplets/Makefile.am.  Do NOT commit duplicates of
those two files.


SVN revision: 1394
1999-11-24 23:36:51 +00:00
Michael Jennings 715f7a2a62 Wed Nov 24 12:11:04 PST 1999
(KainX)

Added checks for epplet image classes on startup.  Adapted from a patch by
Troy Pesola <troy.pesola@network.com>.


SVN revision: 1392
1999-11-24 17:16:39 +00:00
Richard Barnes 9e0f00c611 Tue Nov 16 17:10:44 EST 1999
(StriderZ)

Added a textbox cursor.


SVN revision: 1318
1999-11-16 21:02:11 +00:00
Michael Jennings ce2f577578 Fri Nov 12 15:57:40 PST 1999
(KainX)

Wrap-around history.


SVN revision: 1285
1999-11-12 23:32:49 +00:00
Michael Jennings 09b6b3bc6b *achoo*
SVN revision: 1280
1999-11-12 20:27:52 +00:00
Michael Jennings 488eb806c3 Gr.
SVN revision: 1277
1999-11-12 19:54:11 +00:00
Richard Barnes f1e7e6151e look at the Changelog...dammit
SVN revision: 1271
1999-11-12 17:47:01 +00:00
Michael Jennings afd07cdf4d And what was *he* thinking?
SVN revision: 1266
1999-11-12 07:05:48 +00:00
Michael Jennings cecae87687 What was I thinking?
SVN revision: 1265
1999-11-12 07:00:14 +00:00
Richard Barnes 56a24754fd Textboxes can scroll now. It's a little weird cuz the right "limit" moves
around. I need to fix the way it figures out where to stop spitting out
chars since upper/lowercase chars are not all the same width. I'll look into
it unless someone has some insight on this.


SVN revision: 1264
1999-11-12 05:36:31 +00:00
Richard Barnes bf855d9279 Ok. E-Exec now does command history of up to 15 items. Added
Epplet_change_textbox. Not thoroughly tested, but isn't that what users
are for? *runs*


SVN revision: 1261
1999-11-12 03:46:39 +00:00
Michael Jennings fa94387121 Thu Nov 11 11:55:02 PST 1999
(KainX)

Okay, I've fixed the API issue with Epplet_modify_config(), and I've fixed the
weird Epplet_reset_textbox() behavior.  (For the record, there was never a
buffer overflow here.  The textbox contents are dynamically allocated and
resized.)

I also tweaked some of Tom's changes both for style and more robustness.  I
also fixed the OK dialog error the "right" way.  The real problem was not
calling Esync() before exiting. :-)

Now if only I could talk Tom into putting a newline at the end of his
ChangeLog entries.... ;-)


SVN revision: 1254
1999-11-11 19:47:17 +00:00
Michael Jennings e92371b257 Wed Nov 10 20:49:04 PST 1999
(KainX)

Oh my goodness.  This should resolve all the textbox silliness.  (At least all
that I've run across so far....)


SVN revision: 1252
1999-11-11 04:47:15 +00:00
Richard Barnes f7bb9a97d5 uh...uhuhuhuuhuh...this is gonna be cool...
SVN revision: 1250
1999-11-11 03:02:47 +00:00
Christian Kreibich e53ba939fd ... and another :)
SVN revision: 1246
1999-11-11 00:00:56 +00:00
Christian Kreibich 0c7ae75e29 Minor fix ...
SVN revision: 1245
1999-11-10 23:58:34 +00:00
Christian Kreibich 811247cb78 Esnprintf is in the house now :)
SVN revision: 1242
1999-11-10 23:37:53 +00:00
Michael Jennings f84d88b726 Fixes.
SVN revision: 1239
1999-11-10 22:46:14 +00:00
Richard Barnes ad52573105 Finally got the crap working right...geez. Give a man cvs access and he
immediately attempts to render it incompilable....is that a word?


SVN revision: 1230
1999-11-09 20:10:10 +00:00
Richard Barnes 33c5d7a413 Let's try this again...
SVN revision: 1229
1999-11-09 19:02:15 +00:00
Richard Barnes a01fd817d4 whoops
SVN revision: 1228
1999-11-09 18:51:02 +00:00
Richard Barnes d3aaee7924 Added some textbox gadget stuff. Still not fully functional, but has it's uses.
SVN revision: 1226
1999-11-09 18:24:35 +00:00
Christian Kreibich 19eec1c40e Epplet_run_command() now returns the exit code of
the command.


SVN revision: 1177
1999-11-04 15:43:04 +00:00
Michael Jennings 55639cbe7d Thu Nov 4 16:00:26 PST 1999
(KainX)

E-Slides, a slideshow epplet.  This is just the initial version; more features
coming soon.  :-)

Also some API additions/bugfixes.


SVN revision: 1176
1999-11-04 14:53:40 +00:00
Michael Jennings b794daa500 Tue Nov 2 13:31:28 PST 1999
(KainX)

An update from Matt McClanahan <cardinal@dodds.net> to his previous patch.


SVN revision: 1144
1999-11-02 12:47:08 +00:00
Christian Kreibich 5f56c8e8b4 Fixed a potential segfault if people insist on calling
Epplet_add_config without a prior Epplet_load_config.


SVN revision: 1134
1999-11-02 07:45:00 +00:00
Mandrake 73dc223221 Sun Oct 31 15:07:43 PST 1999
(Mandrake)

gave gilbertt access to put screenshoot in CVS.  YOU NEED TO MODIFY THE
CHANGELOG THOUGH.  fixed some warnings here and there.  I don't like warnings


SVN revision: 1076
1999-10-31 14:36:30 +00:00
Carsten Haitzler 8c3bb5530a add patches for std buttons for popups.. and fix epplets...
SVN revision: 1040
1999-10-28 23:30:09 +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
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 fdae9c86f4 sync when unremembering..........
SVN revision: 979
1999-10-25 23:54:10 +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 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 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
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 0c6a67c2d4 add about call......
SVN revision: 821
1999-10-13 21:13:40 +00:00
Carsten Haitzler df793d4b3d E-clock changed.. much sexier now :)
SVN revision: 817
1999-10-13 19:04:05 +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
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