Commit Graph

49 Commits

Author SHA1 Message Date
Kim Woelders ef5b344116 Change Epplet_send_ipc() to printf() style
And eliminate ECommsSend().
2022-03-10 07:46:01 +01:00
Kim Woelders 23cb0977a4 Trivial cleanups around *alloc functions
- Replace malloc+memset with calloc
- Remove unnecessary casts
- Some cosmetics
2022-01-18 18:51:43 +01:00
Kim Woelders b76845e265 Introduce Epplet_Exit()
Avoiding some code duplication.
2021-09-02 07:16:31 +02:00
Kim Woelders b436df8d7a Centralize setting up atexit(Epplet_cleanup) 2021-09-02 07:16:31 +02:00
Kim Woelders d1ca9c1c1c Drop pointer test for free() 2021-09-02 07:16:30 +02:00
Kim Woelders 87a3dbceac Change E[v]snprintf -> [v]snprintf 2021-08-31 07:49:36 +02:00
Kim Woelders 9d0e6438db Drop unnecessary headers 2021-08-31 07:11:23 +02:00
Kim Woelders 83e1e71bee Introduce Epplet_adjust_priority()
Avoiding some code duplication.
2021-08-31 07:11:23 +02:00
Kim Woelders 49aafdaf62 Change Epplet_dialog_ok() to printf() style
.. avoiding some format-truncation warnings.
2018-08-13 13:22:08 +02:00
Kim Woelders 7895a582ce Warning fix for gcc 7. 2017-02-12 20:16:35 +01:00
Kim Woelders 2ea5042e00 Warning cleanups - epplets. 2016-08-19 09:31:22 +02:00
Kim Woelders ee7cfd147d Indent.
SVN revision: 77224
2012-09-30 09:41:07 +00:00
Lucas De Marchi 9c2a943418 Apply badzero.cocci, badnull.cocci and badnull2.cocci
Since badzero.cocci depends on coccinelle knowledge about a variable being a pointer
and about a function returning a pointer, maybe there are false negatives.



SVN revision: 51092
2010-08-13 17:04:13 +00:00
Kim Woelders 123d3649c2 Fix some warnings on 64 bit platforms.
SVN revision: 46479
2010-02-25 20:09:34 +00:00
Kim Woelders 793ebd0127 Remove RCS tags and debian remnants.
SVN revision: 35629
2008-08-23 15:56:25 +00:00
Kim Woelders 6f9b038c1e Now that we are playing around here - Indent!
SVN revision: 22149
2006-04-15 22:04:48 +00:00
Mike Frysinger 48180d5fb0 if we were passed invalid arguments, make sure we set cnt to 0
SVN revision: 22146
2006-04-15 20:00:21 +00:00
Kim Woelders 69cdceaaf7 Leak--.
SVN revision: 22091
2006-04-13 11:56:04 +00:00
Kim Woelders becd974d33 Fix some mem leaks.
SVN revision: 22089
2006-04-13 11:03:49 +00:00
Kim Woelders 198896156a Fix for e16.8 compatibility.
SVN revision: 22069
2006-04-12 19:24:08 +00:00
Kim Woelders 528b750a2c Move to Imlib2. Build for e16.8.
- This is a quick and dirty port to imlib2. It's posible to clean/speed up
  things considerably here and there.
- It's not unlikely that I missed some spots that require fixups.


SVN revision: 21639
2006-03-31 22:56:17 +00:00
Tom Gilbert e88ba0c353 fix segfault
SVN revision: 4158
2001-01-27 20:22:43 +00:00
Michael Jennings 009a3ac0b5 Sat Jul 29 19:23:46 PDT 2000
(KainX)

Added a randomizing function to E-Slides.


SVN revision: 2937
2000-07-30 02:08:06 +00:00
Michael Jennings cad9ae4512 Wed Jan 19 12:32:56 PST 2000
(KainX)

If we run out of images, don't just sit and spin like an idiot.  Tell the user
there's a problem and let them fix it.


SVN revision: 1951
2000-01-19 20:33:47 +00:00
Michael Jennings e4cf75a03e Wed Jan 5 20:11:40 PST 2000
(KainX)

New version number and copyright dates that include 2000.


SVN revision: 1859
2000-01-05 16:24:01 +00:00
Michael Jennings 5d3a26f2ad Tue Jan 4 20:57:24 PST 2000
(KainX)

Final preparations for the release of 0.5.


SVN revision: 1850
2000-01-04 17:25:23 +00:00
Tom Gilbert 5efc360e31 Sat Dec 11 17:47:32 GMT 1999
(gilbertt)

Don't try to open "/dev/null" as an image either.

Prevents those:

IMLIB ERROR: Cannot load image: /dev/null
All fallbacks failed.

messages. I have just used a NULL parameter instead, which I believe is
correct.


SVN revision: 1591
1999-12-11 12:18:21 +00:00
Tom Gilbert d0198b2cda Sat Dec 11 13:27:54 GMT 1999
(gilbertt)

Urm. I don't know if this was intended, but E-Slides never actually
Epplet_gadget_show()'s its image... Don't know when this happened...


SVN revision: 1590
1999-12-11 07:57:46 +00:00
Michael Jennings 276863160e Tue Dec 7 17:13:06 PST 1999
(KainX)

New dialog for E-NetGraph.  This is the only network epplet I use, so I don't
have any plans to add similar interfaces to the other net epplets, but I
recommend that *someone* does so.

Also, I modified E-Slides and E-NetGraph so that if the config file or the
default settings don't provide a valid image directory (for E-Slides) or a
valid network interface (E-NetGraph), rather than immediately exiting, you
will be presented with the config dialog.  Very handy.


SVN revision: 1544
1999-12-07 20:18:09 +00:00
Michael Jennings 7ee92cdd38 Mon Dec 6 21:48:52 PST 1999
(KainX)

Dialog for E-Biff too.


SVN revision: 1528
1999-12-07 00:59:24 +00:00
Michael Jennings 9cbe26bb39 Mon Dec 6 20:18:45 PST 1999
(KainX)

E-Slides now has a full-featured working config dialog.  Damn good work, Tom.


SVN revision: 1523
1999-12-06 23:29:54 +00:00
Michael Jennings 11e876b0a0 Duh =P
SVN revision: 1516
1999-12-06 17:49:31 +00:00
Michael Jennings be1583b088 Mon Dec 6 14:31:34 PST 1999
(KainX)

Applied Tom's patch to E-Slides to support maintaining the aspect ratio when
displaying images in the epplet window.  Also cleaned up the E-MoonClock code
and set the buffer size to 1024 so that everyone will hush. =)


SVN revision: 1515
1999-12-06 17:45:23 +00:00
Michael Jennings 180b8b08ea Added stuff to the focus in/out handlers. I skipped Tom's in case he's
testing shit. :-)


SVN revision: 1492
1999-12-03 19:52:28 +00:00
Michael Jennings 3fe418dd58 Added auto_setbg to automatically set your background to the current image
at every switch.


SVN revision: 1477
1999-12-01 23:23:17 +00:00
Michael Jennings 664df20d8c Wed Dec 1 19:11:13 PST 1999
(KainX)

For one thing, I think I've fixed the seg fault in E-MoonClock.  Here's
hoping.

I also added the background setting functionality to E-Slides, but this time
it was done *right*. :-)  Take a look and see for yourself.  If you look at
the code, it also demonstrates how to use E IPC to set backgrounds.


SVN revision: 1476
1999-12-01 23:09:48 +00:00
Michael Jennings 3e6a527f10 Mon Nov 29 20:34:40 PST 1999
(KainX)

All the network stats stuff has been moved to a centralized location, and all
the network stats epplets have been converted to use the new functions.  Thus,
all network epplets can now have a portable interface to the data without
having to worry about portability; the backend takes care of it.

I also added copyright statements and a license to all my epplets.  And I
removed my name from the E-Mountbox copyright since my contributions were
negligible. :-)


SVN revision: 1460
1999-11-30 00:52:31 +00:00
Michael Jennings 8e16291969 Mon Nov 29 16:03:53 PST 1999
(KainX)

Added support for specifying the width and height (in epplet units, 16 pixels)
of the E-Slides window.  -w <width> and -h <height> are the options.  The
default is the traditional 3x3, of course.  Note that this cannot be done via
config file options since the size is set before the config loader can be
called.


SVN revision: 1455
1999-11-29 20:23:05 +00:00
Michael Jennings a7ce9b2707 Tue Nov 23 11:03:39 PST 1999
(KainX)

Fixed a seg fault bug in E-Slides.


SVN revision: 1372
1999-11-23 16:19:42 +00:00
Michael Jennings 87ab8f2613 I'm tired of cleaning up these messes. Enough already.
SVN revision: 1366
1999-11-22 17:14:54 +00:00
Richard Barnes 2abef1bc16 Added an option to E-Slides config to change root bg when image changes.
SVN revision: 1363
1999-11-22 04:18:43 +00:00
Richard Barnes 910865b613 Added a button to set the bg to the current E-Slides pic
SVN revision: 1360
1999-11-22 01:44:12 +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
Tom Gilbert 5034d32be8 -------------------------------------------------------------------------------
Thu Nov 11 18:50:07 GMT 1999
(gilbertt)

*Hopes KainX doesn't kill him*

Fixed a couple of things.
o No longer tries to open subdirectories as images (my
.enlightenment/backgrounds directory contains only two subdirs, tiled and
fullscreen, previously it dumped core trying to open these as images).
o If there are no images in the dir, the Epplet_dialog_ok was never shown,
as it was followed by an exit(-1). It must be followed (at some point) by
Epplet_loop() to work.

KainX: If I broke it, you can kill me :)


SVN revision: 1253
1999-11-11 18:56:06 +00:00
Christian Kreibich 811247cb78 Esnprintf is in the house now :)
SVN revision: 1242
1999-11-10 23:37:53 +00:00
Michael Jennings 9b23a59f35 Fri Nov 5 10:44:18 PST 1999
(KainX)

The zoom button works now.  It executes an arbitrary command and replaces an
occurance of %s in the string with the current image filename.  The default
is "ee %s".


SVN revision: 1182
1999-11-05 09:27:39 +00:00
Michael Jennings 2bfe8aa360 Woops, forgot the edge conditions.
SVN revision: 1180
1999-11-04 17:45:57 +00:00
Michael Jennings 26f82eb3a2 Thu Nov 4 18:39:32 PST 1999
(KainX)

Several new features for E-Slides and some new icons.


SVN revision: 1179
1999-11-04 17:30:26 +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