From: Massimiliano C. <mca...@gm...> - 2008-01-17 23:27:48
|
Hi, here's the result of my first work on E's internals (and widgets): i wrote a simple addon that allow to select a wallpaper directly from get-e.org, actually only from static backgrounds. Requirements: ecore_file with libcurl support(updated > 14 january) How it works: My module get and parse a RSS feed from get-e.org, obtaining a list of images of static backgrounds that actually are available on get-e.org, downloading all images and shows it in efm. When you choose an image and click OK, the module get the real background you've choose, already in edj format, and copy it into ~/.e/e/backgrounds. Now the new wallpaper is available in the first window of wallpaper configuration dialog. Status: This is a preview. It works (just tested 5 minutes ago), and it works fine also without DSL connection (i'm testing it with GPRS/UMTS). I'm sure that something can be done in a better way, and it miss some cool features, like caching of results to avoid useless connections, and proxy support (i'm not sure but i think that it will be done by libcurl internals). Todo: Implement a way to use a image cache to avoid connections Test in proxy environment Animated backgrounds support Other sites support (Flickr,DeviantArt,...) Thanks: devilhorns and morlenxus for initial support, exhibit's guys for example code, raster for enthusiasm, kainx and englebass for support to make the attached diff :) If you like this way to get backgrounds from get-e.org, there's two other things that can be done easily in the same way: 0) animated backgrounds, 1) themes. Feel free to send a comment, to hate/love/commit it. Regards Massimiliano |