Commit Graph

476 Commits

Author SHA1 Message Date
Carsten Haitzler e574adfed7 add single-instance launching infra support for e17 as well as launch
tracking for ibar.



SVN revision: 76793
2012-09-18 10:00:37 +00:00
Carsten Haitzler 6669ca71a3 provide a way to select backlight device or output and then use it.
SVN revision: 76709
2012-09-16 10:43:17 +00:00
Mike Blumenkrantz 542501a85a e_config has a new option that can be enabled to switch file moving to use the old behavior of cp->rm instead of the new mv behavior
SVN revision: 76675
2012-09-14 15:13:51 +00:00
Carsten Haitzler 887dfcf3d9 e17 xkb patch building on ecore new event api. patch from:
http://trac.enlightenment.org/e/ticket/1306

but modified formatting and no theme changes.



SVN revision: 75410
2012-08-18 11:41:23 +00:00
Mike Blumenkrantz 11b99c6513 fileman's "Use Single Click" option now toggles a global config option which is picked up by fileselector widgets, also added a menu item to the right click efm menu to toggle this on a case-by-case basis
ticket #663


SVN revision: 74230
2012-07-20 10:25:02 +00:00
Cedric BAIL 67da94d22e e: avoid buffer overrun.
SVN revision: 73922
2012-07-16 10:47:37 +00:00
Chidambar Zinnoury d4b871bafd e: add a configuration value to group new windows with others from the same app.
We may want to alert the user it appeared though (make it urgent?).

 See r70370, fixes #40.


SVN revision: 73856
2012-07-14 18:00:57 +00:00
Mike Blumenkrantz 838a240e9b fix amazing chain crash when upgrading configs
SVN revision: 73421
2012-07-06 15:10:27 +00:00
Mike Blumenkrantz 42ceb58540 merge a big e17 doc patch
ticket #91


SVN revision: 73408
2012-07-06 10:53:22 +00:00
Mike Blumenkrantz 575967808a desklock config now allows you to configure the image shown on each screen
also fixes ticket #753


SVN revision: 73339
2012-07-05 12:33:33 +00:00
Mike Blumenkrantz 188b7d676f set config values for multiscreen flip from previous commit
SVN revision: 73263
2012-07-04 09:38:35 +00:00
Mike Blumenkrantz ba64e79b7c add edge binding config option to enable edge bindings on multihead
ticket #906


SVN revision: 73262
2012-07-04 09:32:05 +00:00
Mike Blumenkrantz d147505875 damn typos
SVN revision: 73006
2012-06-28 13:27:31 +00:00
Mike Blumenkrantz b05f7bb2fc make profile stringshared
SVN revision: 73005
2012-06-28 13:22:13 +00:00
Mike Blumenkrantz 655df74446 formatting
SVN revision: 73001
2012-06-28 12:19:36 +00:00
Vincent Torri c3b0637802 e17: whitespaces--
SVN revision: 72561
2012-06-21 06:19:43 +00:00
Mike Blumenkrantz f784bff213 replace e17 logging "system" with custom eina log domain
SVN revision: 72089
2012-06-13 15:17:23 +00:00
Cedric BAIL c2a29811d5 e: massiv warning cleanup !
SVN revision: 70756
2012-05-04 09:38:52 +00:00
Cedric BAIL 2d0970da9a e: warning--.
SVN revision: 70751
2012-05-04 02:34:56 +00:00
Michael BOUCHAUD 7743a24db2 e: make e_powersave values configurable
SVN revision: 70698
2012-05-03 20:16:34 +00:00
Carsten Haitzler 5a00507e2b xkb config put into core. xkb layout is set on startup now (last one
used). removed setting up and deletion of keybindings - now its in
normal keybindings config territory. set them up yourself. much more
solid now. happy.



SVN revision: 70552
2012-04-30 09:52:05 +00:00
Vincent Torri c30aaf8dde e17: remove some shadow variables
SVN revision: 70190
2012-04-15 08:09:56 +00:00
Leif Middelschulte 752cf8040b Fix missing CRTC index in e_config;Don't add mode 'disabled' to runtime.
SVN revision: 70015
2012-04-11 15:08:03 +00:00
Leif Middelschulte 95f33ad549 Make conf_display work again (primary output resolution st/ld).
SVN revision: 69547
2012-03-21 23:39:11 +00:00
Leif Middelschulte b27aec4ad5 Refactoring e_randr, big time.
SVN revision: 68114
2012-02-18 16:49:07 +00:00
Mike Blumenkrantz 294a0fbed2 add a slider for backlight dimming on a timer in dpms controls
as I have no devices which contain a controllable backlight, someone else will have to test/fix this


SVN revision: 67487
2012-01-24 10:01:28 +00:00
Carsten Haitzler e46322a104 oooooh e can check for its own updates now. :) kind of generic to be
able to do more too.



SVN revision: 66621
2011-12-29 10:45:49 +00:00
Carsten Haitzler 9f8ff9682f remove some more unused config vars and mark config vars that have gui
controls.



SVN revision: 66524
2011-12-26 07:26:39 +00:00
Carsten Haitzler 7fd02afae4 and remove virtual roots config that isnt ever used or able to be
enabled or tested...also remove the config vals from profiles.



SVN revision: 66514
2011-12-26 06:32:21 +00:00
Carsten Haitzler cdb864ed8e remove all traces of selecting engine in e17 - wont actuallly ever be
needed beyond compositor. :)



SVN revision: 66513
2011-12-26 06:24:59 +00:00
Leif Middelschulte 2ac2fdf1c2 Create event for "Loading e_config finished."
It is bad how this works right now. Fail by design/documentation.
E.g. subsys a is waiting for event b_e (generated by subsys b) to happen.
If a is loaded before b, b_e isn't initialized and a waits for the wrong event.

Consequently either their must be specified value for non initialized events
(e.g. 0) or all events must be initialized in a central place, so
emitters'/listeners' order is irrelevant.

SVN revision: 66217
2011-12-14 17:37:22 +00:00
Leif Middelschulte 7c96041e21 Several minor e_randr related fixes.
Don't free e_config stuff.
Improve debug messages wording.

SVN revision: 66215
2011-12-14 17:37:10 +00:00
Mike Blumenkrantz 9225575511 grammarize
SVN revision: 66164
2011-12-13 15:02:48 +00:00
Sebastian Dransfeld c2527ef23f e_config: Fix file size detection
Dear all,

I found a bug in e_config. The e didn't make the configuration backup files.
It was because of my wrong patch (svn rev.64684). I fixed this bug.
Please check the new patch file.

Patch by Doyoun Kang

SVN revision: 65224
2011-11-15 07:39:24 +00:00
Mike Blumenkrantz bc6ff37c70 more crashes--
SVN revision: 64914
2011-11-07 23:41:59 +00:00
Mike Blumenkrantz 970335809a someone forgot to break this case statement. how embarrassing for this person and his family.
SVN revision: 64876
2011-11-07 22:13:01 +00:00
Mike Blumenkrantz 696204e49a and maybe use the right variable name here
SVN revision: 64875
2011-11-07 22:11:32 +00:00
Mike Blumenkrantz d082be3165 hey let's not crash here
SVN revision: 64874
2011-11-07 22:10:24 +00:00
Carsten Haitzler 20e8feca2c i'll put in leif's randr code - even though it's buggy, it's the best
way for it to be worked on by people for release.



SVN revision: 64801
2011-11-06 06:41:39 +00:00
Doyoun Kang b516fb6bb1 From: Doyoun Kang <doyoun.kang@samsung.com>
Subject: [E-devel] [Patch] e_config config save patch

I found a problem in e_config. There is no code to check file size when the e makes the
configuration backup files. Even if the file size is 0, the e copies it to backup file.
So, I added code to check the size of the file. Please check the attached patch file.



SVN revision: 64684
2011-11-03 10:54:33 +00:00
Carsten Haitzler 52e23870a3 revert parts of patch that committed randr to e... don't want that
right now until rest of patch is in.



SVN revision: 64629
2011-11-02 01:36:10 +00:00
Carsten Haitzler 0b4f2529f9 overkill doing "Gadget nameofgadget in the menu. just nameofgadget
will do. also it wasnt translated anyway.



SVN revision: 64624
2011-11-01 22:33:38 +00:00
Viktor Kojouharov 96ff415a02 fully remove the BG panning.
add a float_set message directed towards the bg object on desk show


SVN revision: 64102
2011-10-16 14:53:27 +00:00
Massimo Maiurana e82fbc1825 typo
SVN revision: 63749
2011-10-02 13:53:10 +00:00
Hannes Janetzek 44fe00ffa9 e17: more work on xsettings
- app theme chooser
- add option to disable 'settings daemon'


SVN revision: 63615
2011-09-27 01:56:08 +00:00
Hannes Janetzek 82e3f628c0 e17: merge config for xsettings
SVN revision: 63593
2011-09-24 23:31:43 +00:00
Hannes Janetzek 1656a81310 e17: add xsettings. add option to icon config to use same theme for applications
SVN revision: 63591
2011-09-24 22:05:15 +00:00
Carsten Haitzler 9e0032aabf and allow config to suspend even if on AC power (ie if disabled wont
suspend on blank if connected to AC)



SVN revision: 62656
2011-08-21 11:02:33 +00:00
Carsten Haitzler d88e160f25 as per e17 release todo:
|| LOW  || Power    || Add suspend/hibernate w/ screen blank or low battery config option ||             ||     || ||

:)



SVN revision: 62655
2011-08-21 10:44:23 +00:00
Carsten Haitzler b44809cfe8 use PATH_MAX
SVN revision: 62445
2011-08-14 14:45:38 +00:00
Michael BOUCHAUD 80e43bd500 e: merge backlight default value.
SVN revision: 62359
2011-08-11 20:49:45 +00:00
Christopher Michael 1a13f8c26f E: Make E work with the new XCB stuffs. This breaks out e_alert into
it's own utility (as per raster's request/idea). Remove explicit
x_clags in Makefile.am(s) as they are no longer needed.

NB: I added some additional libs to the precache stuffs (even tho it's
not used right now). Also a newer e_main (more optimized).

NB: IF you are brave and want to test this, build evas w/ xcb, build
ecore w/ xcb, then rebuild E. Also, disable building opengl in both
evas & ecore (it's not ready for public consumption when paired w/ xcb).



SVN revision: 61680
2011-07-25 09:40:18 +00:00
Carsten Haitzler 52d8eedc93 add options to run/support other desktop env's as well as load std x
stuff.



SVN revision: 61364
2011-07-14 08:18:55 +00:00
Carsten Haitzler 6c3695a900 dont complain about the file rename for first rev of profile.cfg
SVN revision: 60980
2011-07-04 09:43:29 +00:00
Carsten Haitzler e0eeb1def3 get e17 to use the ecore pos map call to do accel/decel for shading,
and while we're at it allow more modes... like bouncing. pretty cool
to have bouncing shaded windows :)



SVN revision: 60476
2011-06-18 14:38:54 +00:00
Carsten Haitzler 26a35cdf01 backlight config tab, module, slider and core in. somehow doesnt work
with hal atm even tho i think i sent the right dbus req. hmmm. get
response.. of 0 for getting bl. for xrandr it works.



SVN revision: 60242
2011-06-12 15:05:22 +00:00
Carsten Haitzler d705653ead e17 gets itself the ability to set environment variables (for itself..
and anything thats a child that it launches) with... a GUI.. for all
the people who go "so.. how can i set an environment variable"... ie
peopl who dont know how to customis bashrc's or write xinitrc's and
use them etc.. which these days is a LOT of people... :(

note - it's advanced for people with advanced needs, thus its not the
most friendly dialog.. but it works. :)



SVN revision: 59369
2011-05-13 11:39:04 +00:00
Carsten Haitzler e1070cc338 first step in removing container win (compositor can replace it al
with its own objects directly and expose comp canvas to gadgets/fm and
so on just like container canvas does now. a lot of e's code can be
simplified if we went totally compositing... worry about that for e18,
but for now put in hooks).



SVN revision: 58112
2011-03-27 02:24:19 +00:00
Hannes Janetzek 7f457f1911 e17: add option to have gadcon client settings menu in toplevel again.
added e_menu_item_new_relative(E_Menu, E_Menu_Item *rel) which appends 
 new item to rel or prepends it when rel is NULL.

changed e_gadcon_util_client_menu_append to to take only the gadget menu
 and returns the new toplevel menu that should be shown by gcc
 depending on the setting this is a new menu with gadget menu as submenu
 or the gadet_menu with gadget menu items appended

updated e-modules-extra comes in a minute


SVN revision: 57826
2011-03-17 17:08:36 +00:00
Andreas Volz 38766e9942 enable E to configure a another user path then ~/.e for special use cases
SVN revision: 57539
2011-03-06 10:31:44 +00:00
Eric Schuele 440c33eecf Allow users to remove border resistance on a per border basis.
SVN revision: 56745
2011-02-06 02:04:37 +00:00
Carsten Haitzler 51a5581c2e and actually complain when mv's fail too - and abort writes.
SVN revision: 55812
2011-01-03 04:52:48 +00:00
Carsten Haitzler 9dd44d1c6c more comments.
SVN revision: 55811
2011-01-03 04:44:29 +00:00
Carsten Haitzler 5afba4ed16 and disable other engines in choices. software only one left.
SVN revision: 55810
2011-01-03 04:41:57 +00:00
Carsten Haitzler 6b58638772 actually handle errors on all mv's of old config revs
SVN revision: 55809
2011-01-03 04:41:05 +00:00
Carsten Haitzler 7cf01e8430 why did you turn off config versioning devilhorns? back on!
SVN revision: 55808
2011-01-03 04:33:31 +00:00
Carsten Haitzler 098e678825 well well - e wasnt handling all of eet's errors. fixed. at least it's
picking up my permission denined error now.



SVN revision: 55807
2011-01-03 04:28:53 +00:00
Gustavo Sverzut Barbieri 6f2213cb25 convert init/shutdown to EINTERN, move some to _update().
Do not abuse the concept of e_*_init(), make them call-once and those
that needed multiple call are renamed to e_*_update(). To make sure
convert them to EINTERN so the symbols are not exported.

Actually I guess too much is exported as EAPI while they should be
EINTERN, but that would require manual investigation, while this patch
was basically created with sed + grep.



SVN revision: 54795
2010-11-22 15:21:32 +00:00
Mike Blumenkrantz 33f0bae5cb e_fm2_dbus prefix is now e_fm2_device for upcoming seamless integration with eeze
SVN revision: 53328
2010-10-13 02:53:25 +00:00
Lucas De Marchi 25113159a5 Fix common misspellings
Some misspellings were manually reverted since in E there are tons of .po with
phrases in other languages. Other than that all the changes in the following
files were reverted:

 * src/modules/illume/dicts/English_(US).dic
 * src/modules/illume-keyboard/dicts/English_(US).dic


Following misspellings were fixed:

acquited->acquitted
adres->address
adress->address
alreayd->already
aquire->acquire
arbitarily->arbitrarily
cant->can't
Capetown->Cape
carefull->careful
causalities->casualties
Celcius->Celsius
certian->certain
commandoes->commandos
considerd->considered
conveyer->conveyor
dependant->dependent
didnt->didn't
discontentment->discontent
doesnt->doesn't
everytime->every
exemple->example
existance->existence
existant->existent
existince->existence
Farenheit->Fahrenheit
forbad->forbade
funguses->fungi
guage->gauge
guerilla->guerrilla
guerillas->guerrillas
happend->happened
hasnt->hasn't
heros->heroes
inbetween->between
independant->independent
inital->initial
intrusted->entrusted
irregardless->regardless
isnt->isn't
knifes->knives
layed->laid
loosing->losing
marrage->marriage
midwifes->midwives
miniscule->minuscule
monickers->monikers
mroe->more
noone->no one
occured->occurred
omre->more
paralell->parallel
payed->paid
planed->planned
quitted->quit
quizes->quizzes
seperated->separated
seperate->separate
shoudl->should
similiar->similar
simplier->simpler
specifiying->specifying
teh->the
toke->took
torpedos->torpedoes
Tuscon->Tucson
unecessary->unnecessary
useage->usage
usefull->useful
useing->using
waht->what
wanna->want
whith->with
wich->which
withing->within




SVN revision: 52006
2010-09-08 23:59:07 +00:00
Leif Middelschulte cf91a2561a From: Leif Middelschulte <leif.middelschulte@gmail.com>
this is a little patch for e_randr related stuff.

- replace the saving of a monitor's EDID with a hash of it.
- rename a variable name



SVN revision: 51508
2010-08-22 03:49:34 +00:00
Lucas De Marchi 63f07459a0 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Carsten Haitzler b2332d5946 notes.
SVN revision: 51478
2010-08-21 03:27:21 +00:00
Carsten Haitzler ddb6cf998b disable union for randr config... THIS is causing problems... big time.
SVN revision: 51477
2010-08-21 02:51:54 +00:00
Christopher Michael f960b752fa Add __UNUSED__ where needed.
SVN revision: 51302
2010-08-18 17:27:48 +00:00
Leif Middelschulte 935774e161 From: Leif Middelschulte <leif.middelschulte@gmail.com>
patch for ecore-x xrandr 1.3 support - breaks previous api. final api
change (i know about) before we go alpha. in to svn we go.



SVN revision: 51109
2010-08-14 10:21:03 +00:00
Lucas De Marchi 6638a10e20 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Christopher Michael abb7c4287b Bump config generation for newly added geometry options.
SVN revision: 50084
2010-07-06 20:04:07 +00:00
Andreas Volz 6e35928dea added two new configuration options for the geometry_manipulation conf plugin:
int         geometry_auto_move; // GUI
   int         geometry_auto_resize_limit; // GUI

This does influence the configure_request algorithm in the way that the user could disable the window 
geometry move and resize feature that is useful for e.g. Gnome fileselector or gnome-terminal tabs.
There was a use case on the list where this was not nice so I created an option to disable it. If one thinks
a special e.src shouldn't activate this feature by default, please change it.

SVN revision: 50083
2010-07-06 19:49:48 +00:00
Cedric BAIL c6a118d738 * e: remove warning due to Ecore API change.
SVN revision: 49833
2010-06-24 16:19:12 +00:00
Carsten Haitzler 348d599f8b lock on suspend option++ (also on hibernate - same options)
SVN revision: 49354
2010-05-31 15:17:02 +00:00
Christopher Michael 16c373d23b Set any new bindings (when config gets upgraded) to the appropriate
status. (Oops, I missed a commit.)



SVN revision: 49321
2010-05-30 02:45:27 +00:00
Christopher Michael d2d1e49bf5 Add bindings for ACPI.
Add acpi bindings to config.
Add handlers in e_acpi for common/default acpi events.
Add actions for some missing ACPI events.
 - NB: Dim/Undim screen do nothing currently except a printf.



SVN revision: 49309
2010-05-29 19:57:13 +00:00
Mike Blumenkrantz 9d40d66091 step 3: migrate all function and variable names to generic dbus naming
SVN revision: 48488
2010-04-30 19:14:20 +00:00
Hannes Janetzek 26127d523f removing exebuf, left exebuf_terminal_cmd as it's used in other places
SVN revision: 48191
2010-04-20 23:25:42 +00:00
Carsten Haitzler b109ded5aa nice alert to tell u what went wrong
SVN revision: 47303
2010-03-17 03:40:21 +00:00
Sebastian Dransfeld 02b6e4db39 Ecore_Str.h -> Eina
SVN revision: 45740
2010-01-30 22:11:11 +00:00
Carsten Haitzler ca49f2dcbf config to turn off exec fail dialog
SVN revision: 45544
2010-01-25 07:38:48 +00:00
Carsten Haitzler dc87e6da83 s = NULL
SVN revision: 45027
2010-01-11 00:50:14 +00:00
Carsten Haitzler bbd8bddc1e try and be more robust on profile.cfg load.
SVN revision: 45014
2010-01-10 16:25:26 +00:00
Hannes Janetzek 91211ef9c4 reopen fileman and dialog windows after restart of e.
- modules using e_configure_registry_add must be modified to 
  use registry path as window class for this to work
- fileman now uses e_remember to remember position instead of 
  handling it separately
- added option to window remember for remembering dialogs and 
  fileman windows automatically


SVN revision: 42607
2009-09-21 20:36:35 +00:00
Hannes Janetzek 698aebad53 add option to keep border settings as they are when remember is set
SVN revision: 42430
2009-09-12 03:43:51 +00:00
Christopher Michael 6ab63682dd Fix API Inconsistency in regards to e_widget_min_size_* . Renamed to
e_widget_size_min_* . This Large commit should fix everything in svn that is
using those functions.



SVN revision: 42152
2009-09-01 13:34:42 +00:00
Cedric BAIL f8c05999e4 * e: Cleanup use of Eina data structure.
Patch from Peter van de Werken <pwerken-e@a-eskwadraat.nl>.


SVN revision: 41916
2009-08-21 15:08:49 +00:00
Gustavo Sverzut Barbieri dd6ec8ed02 fix #217: enlightenment_start -profile <profile> blocks further profile changes.
We should just set E_CONF_PROFILE from command line option or e_config
startup if we did not had this set before. This is because
ecore_app_restart() will use the same parameters and profile will be
there yet.



SVN revision: 41500
2009-07-26 17:01:42 +00:00
Christopher Michael 43e8b47bb3 Fix minor typo in comment. Nothing serious.
SVN revision: 41425
2009-07-19 02:24:12 +00:00
Gustavo Sverzut Barbieri 117998f8f1 gadman: use one gadcon per zone.
Before gadman was using a single gadcon for all zones, that lead to
problems like popup menus being incorrectly placed.

The correct solution is to mimic shelves and have one gadcon per zone,
including the top layer.

By: manio



SVN revision: 41312
2009-07-11 20:46:55 +00:00
Carsten Haitzler 00819897b6 wallpaper2 - select wallpaper that is used on start
version config - literally keep the last 9 config revisions (10 including the
current) and if config gets corrupted...it auto-falls back to the last good
one.



SVN revision: 41252
2009-07-06 09:43:58 +00:00
Gustavo Sverzut Barbieri 2af9f44b4f efm2 hal handling API - full changes.
1. Added E_FM_OP_EJECT command to e_fm_main. It unmounts volume
   before eject, if it necessary.
2. Added timeouts of mounting/unmounting/ejecting media, and
   it's moved to slave e_fm_main.c. Each timeout will generate
   *_MOUNT_ERROR, *_UNMOUNT_ERROR and *_EJECT_ERROR message.
3. Added auto mount on insert media and auto showing efm2 window
   on mount volume options to filemanager config.
4. Added mounted/unmounted glyphs to efm2 icons and track state
   code. Now each removable device have "M" glyph on icon if mounted
   and "U" when unmounted.
5. Added mount/unmount/eject commands to icon dropdown menu.
6. Russian translation of mew messages.
7. Other bugfixes and improvements for co-operation.

Now, efm2 contains all code to mount/umnount/eject removable media and
all code to provide corresponding user interface.
It can working independently from 'places' or co-operate with it.

By: Sergey Semernin



SVN revision: 40928
2009-06-07 00:00:41 +00:00
Viktor Kojouharov 648d75caab Larger backgrounds can now be set to scroll whenever a E changes between desks. Kind of like a transition, but uses only one (the first desk's), larger wallpaper instead of several wallpapers for all desks, and it overrides the transition settings if activated.
The option can currently be activated from Virtual Desktops Settings -> Advanced. A better home and preview would be better for these settings.

In more detail, this option can make a wallpaper, larger than the geometry of the zone, scroll appropriately with each desk change. Consider a nice panorama picture, which is as wide as the total desks' width. Then, at most, E will scroll the background by 1 / (number of desks) for each desk change. The direction of the scrolling is dependent on the desk change itself. Also, the user can specify a coefficient of maximum scrolling for each axis. If the coefficient is 0, the wallpaper will not move.

More advanced animations can be constructed with edje. The data item "directional_freedom" "(1|0) (1|0)" can toggle the actual wallpaper scrolling done by E for each axis. A message with the current x/y position, panning w|h, and zone w|h is sent to the background edje with each desk change animation tick. An example embryo script that handles the message, and changes a hypothetical "a1" part in the "e/desktop/background" group is shown below:

         public message(Msg_Type:type, id, ...) {
            if (type == MSG_INT_SET) {
               new x = getarg(2);
               new y = getarg(3);
  //	     new max_x = getarg(4);
  //	     new max_y = getarg(5);
  //	     new w = getarg(6);
  //	     new h = getarg(7);
               custom_state(PART:"a1", "default", 0.0);
               set_state_val(PART:"a1", STATE_FILL_POS, 0.0, 0.0, -x / 4, -y / 4);
               set_state(PART:"a1", "custom", 0.0);
            }
         }




SVN revision: 40543
2009-05-07 18:39:55 +00:00