Commit Graph

75 Commits

Author SHA1 Message Date
Carsten Haitzler 2c9405b92f fix preload of e icon when already loaded to show new icon
didn't stack right always. had if (x) not if (!x) ...
2020-06-21 23:54:17 +01:00
Mike Blumenkrantz 99db9e2557 more E_BITFIELD conversions 2017-11-08 09:22:24 -05: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 45b6536a20 e_icon - remove icon cache code - its disabled anyway with ifdefs
this isnt used so it just adds complexity/code to work on. remove it.
it would need a rewrite anyway as using a single file is hugely
inefficient as eet has to doa full rewrite of the file every
modification... it also duplicated icons in memory and dint load
directly from file etc. so... remove anyway.
2017-01-10 10:32:51 +09:00
Carsten Haitzler 8d6b834d57 e_icon - handle load failure and dont display icon object
also some XXX fixme notes i found along the way
2017-01-09 18:24:25 +09:00
Carsten Haitzler 3779086a63 e icon - use new skip header async preload to make icon loads async
now they can be trule async hopefully stopping things like application
menu from stalling while loading icons header... which is really nasty
with svg's. this actually makes icons async by default which is really
EXACTLY what you want. this also prepares for later making edje loads
async.

@feature
2017-01-02 09:51:57 +09:00
Yomi 0dc33a5aeb Fix misspellings in E's files.
Summary: Fix misspellings and spaces in E's files.

Reviewers: zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2676
2015-06-16 16:10:21 -04: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 9887db64e8 try hicolor icon theme as fallback for fdo icon setting if user's theme fails
fix T2142
2015-04-30 12:32:31 -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
Igor Murzov 1f6ff4deb7 e_icon: Fix typo 2014-08-05 14:08:47 +04:00
Mike Blumenkrantz f2f45428ff +e_icon_edje_get() 2014-03-27 16:47:18 -04:00
Mike Blumenkrantz ef0f3322ad remove some weird gif hackaround in e_icon which breaks memfile gifs 2013-09-02 14:37:52 +01:00
Mike Blumenkrantz 287ef17734 undeprecate e_icon_object_set and rename to e_icon_image_object_set for clarity 2013-06-14 14:41:37 +01:00
Mike Blumenkrantz d0310ee6de fix e_icon animation when reusing evas object images 2013-06-14 14:41:37 +01:00
Mike Blumenkrantz 9e8e755cdf formatting: all at once
SVN revision: 82625
2013-01-11 10:34:29 +00:00
Mike Blumenkrantz 271f92f912 ahh never too late for an API/ABI break. e_icon_file_get now returns edje group, which fixes fileman border icons
ticket #rasternaggedme


SVN revision: 81387
2012-12-19 17:00:10 +00:00
Daniel Juyung Seo 206acb6eb6 e e_icon.c: also return false on null icon.
SVN revision: 80598
2012-12-10 11:33:45 +00:00
José Roberto de Souza 463617699c From: José Roberto de Souza <zehortigoza@profusion.mobi>
Subject: [E-devel] [PATCH] e: Return EINA_FALSE if icon path was not
found



SVN revision: 80567
2012-12-10 06:58:58 +00:00
Carsten Haitzler d1581b714f group ptrs together.
SVN revision: 80407
2012-12-07 02:48:30 +00:00
Carsten Haitzler 2697a5f84d delay fdo re-loads/hunts by 0.1 sec after any resize event for
smoother anim.



SVN revision: 79654
2012-11-25 12:30:09 +00:00
Mike Blumenkrantz 04d594af98 wherever cedric commits, b0rks will follow
SVN revision: 78422
2012-10-25 07:53:38 +00:00
Cedric BAIL 1d2b6034b0 e: don't drop cache if icon is animated.
We want to use the scale cache and drop the source icon
for all static icon on screen. But for the few of them that
do resize and animate, we need to keep that data or it will
slow a us down a lot. So now we play nicely with our SCALE_HINT.


SVN revision: 78419
2012-10-25 07:28:24 +00:00
Mike Blumenkrantz a8beb0950c fix usage of PATH_MAX when not working with files
SVN revision: 75518
2012-08-22 07:02:41 +00:00
Mike Blumenkrantz d199c58904 finally kill off the last of the e_icon_object_set uses;
this function was being abused in 100% of cases to do something other than the intended use of just setting an evas image into an e_icon. I've added e_icon_edje_object_set which is the edje version and will, hopefully, make things more clear and avoid confusion in the future
e_widget_image now calls the proper e_icon functions and is far less likely to trigger a magic failure


SVN revision: 74213
2012-07-20 07:52:53 +00:00
Mike Blumenkrantz 10907a3b10 set edje flag in e_icon for edje objects instead of always using strcmp to check
SVN revision: 74210
2012-07-20 07:26:16 +00:00
Mike Blumenkrantz 8e44f1d39b add a really annoying and obvious warning for misuse of e_icon_object_set
SVN revision: 72076
2012-06-13 09:13:15 +00:00
Mike Blumenkrantz ceea15f961 fix another magic failure in e_icon
SVN revision: 71983
2012-06-12 07:23:00 +00:00
Mike Blumenkrantz b0079e53ad formatting
SVN revision: 71982
2012-06-12 07:20:44 +00:00
Mike Blumenkrantz f62441abf9 use edje error stuff here to fix magic fail
SVN revision: 71937
2012-06-11 08:36:13 +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 5c26822c3f e17: icon chache (still disabled): keep cache file open for a bit. this really speeds things up :)
SVN revision: 63239
2011-09-06 21:23:35 +00:00
Hannes Janetzek c231278a4b e17: e_icon cleanup
SVN revision: 62947
2011-08-29 14:02:20 +00:00
Hannes Janetzek f6ce3f2b04 e17:e_icon: some safety checks for iconcache, cleanups
SVN revision: 62936
2011-08-29 08:30:23 +00:00
Hannes Janetzek a29cf19398 e17: add icon cache for speeding up mainly svg icon load on slow devices. and make everything smooth :)
- need to be build with USE_ICON_CACHE defined 


SVN revision: 62842
2011-08-26 00:44:45 +00:00
Carsten Haitzler 28d6049319 ... allow non edj files as wallpapers... if u try. :)
SVN revision: 62340
2011-08-11 10:39:37 +00:00
Christopher Michael bf0920a753 E17: When using edje icons, grab the current obj clip before we delete
it, and restore the previous clip after the image has been added.

(some formatting cleanups here too).



SVN revision: 59313
2011-05-11 04:56:42 +00:00
Christopher Michael 71b303235d Actually, we need to return a Bool here.
SVN revision: 56060
2011-01-12 15:34:12 +00:00
Christopher Michael bd2aa1b03d Make sure we have a 'file' to set, else we crash trying to get strlen
of NULL.



SVN revision: 56059
2011-01-12 15:31:38 +00:00
Carsten Haitzler afed13086e ooh and ALSO handle files if .edj - if full path set.
SVN revision: 56050
2011-01-11 10:09:48 +00:00
Carsten Haitzler 7b9c5b9a74 fix e icon setting of fdo icon if fdo icon ends up being an edje file.
SVN revision: 55964
2011-01-07 04:31:47 +00:00
Sebastian Dransfeld 3d1a299e06 Let efreet icon return const
We return a pointer to an internal cache, so no need to do strdup. I we
implement a cache, the pointer will be a return from a mmap'ed file, so
no need to do strdup.

A bit late to do an API break, but must be done.

SVN revision: 54372
2010-11-09 20:15:55 +00:00
Sebastian Dransfeld 1ba2fd77a0 Set fdo icon directly in e_icon
This makes it simple to find the right icon size for current view size

SVN revision: 54177
2010-11-05 13:11:31 +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 eea86e7714 Fix nasty formatting.
SVN revision: 49757
2010-06-19 01:19:01 +00:00
Tiago Rezende Campos Falcao fa956101a7 Adding selection API to E_Icon
SVN revision: 49755
2010-06-18 22:39:00 +00:00
Gustavo Sverzut Barbieri f7ec145316 Icons should get events, even if the loaded edje group does not.
This bug was exposed by e_widget_deskpreview, that uses native E
backgrounds as edje group. As backgrounds likely do not need mouse
events, or in the case of backgrounds converted from JPEG/PNG images,
the edje would never get an event, so as e_icon, then those that rely
on events on icon will never get called as no children get events.



SVN revision: 48515
2010-05-01 18:24:30 +00:00
Gustavo Sverzut Barbieri 78e5959bdf cleanups, consts and return Eina_Bool for file setters.
okay, maybe too much for a single patch, but they are all pretty trivial:

 - whitespace cleanups;

 - simplify "sd" assignments;

 - add const keyword to getters;

 - return if file_set operation succeeded or not.



SVN revision: 47069
2010-03-09 02:45:14 +00:00
Vincent Torri 13807df5a3 'return' not needed here
SVN revision: 44058
2009-11-30 18:22:42 +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