Commit Graph

73 Commits

Author SHA1 Message Date
Carsten Haitzler b8afba1e49 startup smoothing - smoothen startup with preload and defer to loop start
this moves a bunch of things that were being don after loop starts to
before so they don't interrupt framerate as well as launch a thread
that preloads file(s) - for now just edj theme files so stuff is
pre-cached by the time loop starts later so we don't stall s much
leading to smoother startup/fade in and better framerate. it's really
visible (especially on my rpi3).
2019-09-14 18:47:20 +01:00
Carsten Haitzler 7cceed1337 e thumb - be consistent and use safe run for restarting thumbnailer
fix inconsistency in using ecore_exe_run and the e_util wrapper...

@fix
2018-04-12 20:56:46 +09:00
Mike Blumenkrantz 99db9e2557 more E_BITFIELD conversions 2017-11-08 09:22:24 -05:00
Carsten Haitzler b9d166f804 use safer ecore_exe flags that close stdin/out/err if possible
this is specifically needed for wayland but is relevant to x with
startx too ... dont let processes that e runs like apps inherit
stdin/out/err as it may be a tty and thus allow apps to do nasty
things with that tty.

@fix
2017-09-23 23:10:35 +09:00
Carsten Haitzler dd4cd1ce73 e thumb - silence alignment warning - valid code
the code is right as the int array is at the start of the allocation
that should be aligned to all types anyway. but it's noise that
distracts.
2017-02-12 16:25:35 +09:00
Derek Foreman 73aecd73ab Replace all timer_add with timer_loop_add
So yeah, I've literally used sed to replace every occurrence of
ecore_time_add() with ecore_timer_loop_add() because I'm reasonably
confident that no part of E has a legitimate need for timer based on the
exact current time.

It would be really nice if I'm not wrong. :)

The reason for this is the incredible spew of clock_gettime() calls I'm
seeing on an ARM system (that should have a vdso for gettime, but...)
This can amount to thousands of system calls per second.

 #YOLO
2017-02-03 15:52:28 -06:00
Carsten Haitzler b55ce098bf e thumb - support signal emits and desk pan msgs for thumbs
this in theory allows pan desk thumbs to work... but hey ... they are
broken anyway... :)

@fix
2017-01-28 16:08:46 +09:00
Chris Michael 0a94e8ba71 enlightenment: Make E build again with EFL from git
sed -i 's/EAPI/E_API/g'

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07 15:13:10 -04:00
Mike Blumenkrantz 471dcb24cb __UNUSED__ -> EINA_UNUSED
this has been bugging me forever. __UNUSED__ is no longer a valid macro here.
2015-03-18 18:09:09 -04:00
Mike Blumenkrantz ae7ca9105f Hi,
here is a patch.

 1. free() already null-checks the passed argument, so it is not
    necessary to do 'if(x) free(x)'.

 2. Moved some '{free(x); x = NULL}' to E_FREE.

 3. In e_start_main.c, 'buf' is allocated with the size of the
    two arguments + '=', so we don't need to check for lenght;
    we should use sprintf().

 thanks
Maxime Villard


SVN revision: 81364
2012-12-19 14:20:34 +00:00
Mike Blumenkrantz d1b1e0be06 finally fix annoying null safety errors on shutdown
SVN revision: 75853
2012-08-30 08:44:00 +00:00
Mike Blumenkrantz 5c3db51baf fix bad stringshare use in e_thumb
SVN revision: 73818
2012-07-13 14:54:43 +00:00
Mike Blumenkrantz 36c7e47745 formatting
SVN revision: 72948
2012-06-27 13:30:40 +00:00
Vincent Torri c3b0637802 e17: whitespaces--
SVN revision: 72561
2012-06-21 06:19:43 +00:00
Carsten Haitzler 71e3978df0 fix thumb key fetch for color sorting!
SVN revision: 71342
2012-05-23 03:38:07 +00:00
Vincent Torri c30aaf8dde e17: remove some shadow variables
SVN revision: 70190
2012-04-15 08:09:56 +00:00
Carsten Haitzler 0078d30bdc segv's waiting to happen wrong api calls on wrong object types - check
to protect.



SVN revision: 66707
2011-12-31 14:35:05 +00:00
Hannes Janetzek bc5f550546 e17/efm: show mime icons when thumbnail failed
SVN revision: 61654
2011-07-24 20:36:52 +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
Sebastian Dransfeld 3c12d4daba __UNUSED__ last
SVN revision: 54193
2010-11-05 18:40:31 +00:00
Christopher Michael 290fd324b2 Add unused.
SVN revision: 51332
2010-08-18 19:52:32 +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
Cedric BAIL c6a118d738 * e: remove warning due to Ecore API change.
SVN revision: 49833
2010-06-24 16:19:12 +00:00
Christopher Michael 8dbdeb73da Check event handlers are valid before trying to delete them.
Use PATH_MAX.
Fix formatting/whitespace.



SVN revision: 44990
2010-01-08 20:17:07 +00:00
Carsten Haitzler 88d2d262e5 1. for some reason the po's needed a lot of updates - msgmerge thiks so
2. use preload for icons a lot.



SVN revision: 43191
2009-10-22 06:47:02 +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
Carsten Haitzler b592a9176f 1. fix thumb to not use preload thread - i spotted bugs. concurrency ones.
2. also write a sort id (harmless - doesnt affect anything). useful for...
sorting.




SVN revision: 40166
2009-04-18 13:52:24 +00:00
Carsten Haitzler cbe9342be3 for e_thumb.. use preload!
SVN revision: 39866
2009-04-05 03:49:16 +00:00
Carsten Haitzler 0c41ae041e move internal binaries to subdir - patch from albin
SVN revision: 38414
2009-01-02 01:08:14 +00:00
Cedric BAIL 773d102291 This commit is huge. I did test it a lot on my computer, and it run fine here.
But is so big i fear i could have broken some piece of code. So report any wrong
behaviour to me (cedric on #edevelop).

So moving e17 and efreet to eina_hash. With a little efreet API break so they
must come together.


SVN revision: 38185
2008-12-17 15:33:43 +00:00
Cedric BAIL 1087de2397 Remove Evas list and replace them with Eina list.
No change for ->next and ->data access right now, as the patch is already
big enough.



SVN revision: 36962
2008-10-22 11:49:33 +00:00
Cedric BAIL 3d6749983b Switch to eina_stringshare.
This could also change the usage of string share in E17.



SVN revision: 36679
2008-10-15 15:12:56 +00:00
Sebastian Dransfeld 8e1c36d005 - nice config for thumbnailing. Needs config dialog.
- event for theme change.


SVN revision: 29381
2007-04-05 17:20:09 +00:00
Sebastian Dransfeld b150b36b93 Formatting.
SVN revision: 29008
2007-03-24 12:55:30 +00:00
Carsten Haitzler b2a0abb8eb a lot of patches - also my work on moving the IO stuff in e_fm to a slave
process to stop e from ever "locking up". this unfortunately breaks the other
source stuff and thus breaks the app editor config dialogs and anything using
fm2 for .desktop stuff from the e applications/all repo. i am doing this as i
expect this to go away with efreet anyway so not too much of an issue. not
all fm operatiosn work currently - note. so beware. it can view files though :)


SVN revision: 28528
2007-03-02 17:00:20 +00:00
rephorm 71fcf80be5 add e_thumb_icon_rethumb() - allows re-thumbing after changing e.g. the size to thumb at
use rethumb in desk preview


SVN revision: 26679
2006-10-18 03:31:45 +00:00
sebastid 02d2993d17 strdup -> evas_stringshare
SVN revision: 24266
2006-07-28 11:27:59 +00:00
Carsten Haitzler 10ffed6545 now THIS is cute -watch the thumbnails wobble when generated... or found
cached... most fun! let the power of edje be known! :)


SVN revision: 24150
2006-07-23 21:19:04 +00:00
Carsten Haitzler b9acc42122 bad raster! no coockie! fix segv - thanks valgrind
SVN revision: 24146
2006-07-23 14:05:39 +00:00
Carsten Haitzler 01efbd7683 and some major refinements of efm - the selector code - well its in e_test.c
is pretty much almost perfectly working. i have fixed up some e_thumb stuff
and allowed e_thumb to be more responsive and skip items that are known to be
"generated" and bring them ahead in the list of things to thumb - so kind of
a priority skiplist - process what it KNOWS will be already done first
quickly and leave the slower stuff until later. efm is fairly well refined
now - as above. the test selector works nicely. also added an almost-sha1
generator - use sha1 sums of the path for thumbs - less likelihood of
collisions. the prolbme is given the small size of the input data... it's
hard to do well - but anyway :)


SVN revision: 24128
2006-07-22 21:48:24 +00:00
sebastid d4aa3c882f Cleanup
SVN revision: 23993
2006-07-17 19:02:42 +00:00
Carsten Haitzler 0d57bcd376 shutdown thumbs properly
delat killing slave thumbnailers for 1 second after all thumbs pending are
finished (in case more get added soon)


SVN revision: 23755
2006-07-08 13:53:55 +00:00
Carsten Haitzler 71f3865361 slightly more responsive timer and reset object id's once there are none
around :)


SVN revision: 23754
2006-07-08 13:30:18 +00:00
Carsten Haitzler 2bf3acac8b actually see the delete req in the thumbnailer
SVN revision: 23753
2006-07-08 13:12:42 +00:00
Carsten Haitzler 50063cad9c new thumbnailer system. works a bit more like epsilon - launches a
special-purpose executable and hands off workd to do via ipc (well the exe
connects back to e's ipc port actually but either way - same thing). it can
actually launch any numebr of thumbnailers - the default is 2, but this means
it can make full use of smp systems. i need to make this # of thumbnailers
configurable and add a config dialog for it. this does mean thew bg/theme
etc. dialogs pop up much faster as they dont load all the thumbs to start -
its farmed off and ipc tells us when they are ready (and if already generated
- thats pretty damn fast). :) anyway - now thumbnailing works reliably
(thoguh i think the queue handling isnt quite that good - well when it comes
to interacting with efm... but i'll check into that later. dont worry though
- it does actually generate all the thumbs - it just may be busy generating
ones you don't see while it catches up).


SVN revision: 23750
2006-07-08 09:18:04 +00:00
Carsten Haitzler 12f620b919 formatting and kiwis thumbnailer fix - not entirely fixed tho
SVN revision: 23728
2006-07-06 06:16:21 +00:00
Carsten Haitzler 734e41b598 part of mmap/eet changes patch
SVN revision: 23414
2006-06-13 10:20:31 +00:00
Christopher Michael f4814dc96d Add thumbnailing for init screens :) (Thanks CodeWarrior)
Make Startup config dialog use static thumbnails in list now.


SVN revision: 23181
2006-06-05 11:48:26 +00:00
stffrdhrn 218717c8dc Clean up compile warnings:
* char * -> const char * for stringshare strings
 * char * -> const char * where needed in functions
 * remove unused vars in some places


SVN revision: 20912
2006-03-02 12:03:48 +00:00
David Walter Seikel fe96145090 More ecore_exe naming break'n'fix. Should be all done now.
SVN revision: 19832
2006-01-15 11:27:19 +00:00