On 4/26/06, Gopalarathnam Venkatesan <[EMAIL PROTECTED]> wrote:
On 4/24/06, Van Munin Chhieng <[EMAIL PROTECTED]> wrote:
> Hello e17 users,
>
> I have to say those that never use e17 or any e-series never know what they
> are missing.
>
> Does anyone know where I can find document of how to make edj file for
> background. I have looked at user document but did not find anything.
> Did I miss something from the e17 website ?
>
Here's a small shell procedure I use for making wallpaper. The usage
is "make_wallpaper background1 background2 ...".
HTH :)
Save the following snippet as "make_wallpaper".
--------------------- cut -----------------------
#!/bin/sh
for i
do
target=`basename $i .jpg`.edj
workFile="/tmp/wallpaper.$$"
cat >$workFile <<__EOF__
images {
image, "$i" LOSSY 95;
}
collections {
group {
name, "desktop/background";
parts {
part {
name, "background_image";
mouse_events, 0;
description {
state, "default" 0.0;
rel1 {
relative, 0.0 0.0;
offset, 0 0;
}
rel2 {
relative, 1.0 1.0;
offset, -1 -1;
}
image {
normal, "$i";
}
fill {
origin {
relative, 0.0 0.0;
offset, 0 0;
}
size {
relative, 1.0 1.0;
offset, 0 0;
}
}
}
}
}
}
}
__EOF__
edje_cc $workFile $target
rm -f $workFile
done
--------------------paste ---------------------
--
Gopalarathnam Venkatesan
http://gopalarathnam.com/
--
"THE ONLY PLACE WHERE SUCCESS COMES BEFORE WORK IS IN THE DICTIONARY."
by Donald Kendall