-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/05/2010 10:00 PM, Cedric BAIL wrote: > On Monday, July 5, 2010, Steve Jones <[email protected]> wrote: > On 07/05/2010 07:46 PM, [email protected] wrote: >>>> Hi, >>>> >>>> On Mon, Jul 5, 2010 at 8:38 PM, Steve Jones <[email protected]> >>>> wrote: >>>> The slideshow module switches between different pre-existing edj files, >>>> rather than creating them itself. If you set it to change all desktops, >>>> it calls e_bg_default_set as I'm already doing, and it works because >>>> it's using a different edj file each time. >>>> >>>> I'll keep hunting... >>>> >>>>> you could use two edj files. just write to the one which is not shown, >>>>> then switch them. >>>> >>>>> BR >>>> > > Yes, I could do that, or create a new edj file with a timestamp each > time and delete the old one. Strikes me as a bit ugly though. > > I'll see if I can spot what e does when it starts up - it must read the > edj at that point :) > > Steve. > >> I don't have access to source code right now, but i know that both >> edje and eet do call stat on the file, and should reload it on change. >> Maybe e is just checking that you change the name before passing the >> call to edje. Another question that may sounds stupid, but if you are >> creating each edje file, why dont you pack them at once in the same >> file ? >
You're absolutely right - e_bg_default_set checks the name of the edj file, and if it's the same it does nothing. I'm generating my edj files on a timed basis to update the bg every 5 minutes or so using a newly-generated image from XPlanet - that's why I'm recreating the edj each time. Steve. >>>> Steve. >>>> >>>> On 07/05/2010 12:03 AM, Christopher Michael wrote: >>>>>>> Check the code for the slideshow module >>>>>>> (e/trunk/E-MODULES-EXTRA/slideshow). It changes backgrounds on a timer >>>>>>> just like you are trying todo :) >>>>>>> >>>>>>> dh >>>>>>> >>>>>>> On 07/04/2010 05:41 PM, Steve Jones wrote: >>>>>>>> -----BEGIN PGP SIGNED MESSAGE----- >>>>>>>> Hash: SHA1 >>>>>>>> >>>>>>>> Hi List, >>>>>>>> >>>>>>>> I have a program that sets the default background edj file, and changes >>>>>>>> it periodically by calling e_bg_default_set. >>>>>>>> >>>>>>>> The first time I set the background, it works fine. However, if I >>>>>>>> overwrite the edj file and call e_bg_default_set again, nothing >>>>>>>> happens, >>>>>>>> as e decides (understandably) that since I've asked it to set the same >>>>>>>> background file it doesn't need to do anything. >>>>>>>> >>>>>>>> Is there a way round this? I've tried copy-and-pasting the code from >>>>>>>> e_bg_default_set, but it doesn't work (probably because I did it >>>>>>>> wrong). >>>>>>>> It's also code duplication, which is a Bad Thing. I assume there's an e >>>>>>>> API call somewhere, but I can't find it. >>>>>>>> >>>>>>>> TIA, >>>>>>>> Steve. >>>>>>> >>>> >>>>> > - > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >>>>> > >> - ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> >> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwyUoUACgkQJLjjO06+P99kpwCeMuhhXaL9LlQzCqa92WTfFAfK hlMAnjDAtpx9hYgkN8CIwa1A3wEigAsz =Yllt -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
