Cedric BAIL
7db2cb388c
* efreet: improve speed of cache regeneration.
...
SVN revision: 55060
2010-11-29 13:17:33 +00:00
Cedric BAIL
8dceeeee5b
efreet: probably fix windows build.
...
SVN revision: 55040
2010-11-28 10:05:52 +00:00
Sebastian Dransfeld
ea8cd61f4e
init count to 0
...
SVN revision: 55038
2010-11-27 21:51:07 +00:00
Sebastian Dransfeld
caaf7ab25f
formatting
...
SVN revision: 55037
2010-11-27 20:36:39 +00:00
Sebastian Dransfeld
0c8c2d3c9f
Stick with efreet formatting
...
efreet has it's own formatting, something like
"set ts=4 sw=4 sts=4 expandtab cino=(0W1st0". Please keep it like this,
or do the job to convert the whole lib to efl style.
SVN revision: 55036
2010-11-27 20:36:27 +00:00
Sebastian Dransfeld
66e52e2829
Rename efreet_icon_private.h to something better
...
efreet_icon_private.h should be private to external code interacting
with the icon cache, so name it efreet_cache_private.h and only include
Eet.h there.
SVN revision: 55035
2010-11-27 20:15:00 +00:00
Cedric BAIL
65e808c0af
* efreet: Eet.h is needed by declaration in efreet_private.h.
...
SVN revision: 55034
2010-11-27 17:02:18 +00:00
Christopher Michael
8719a729ab
Fix missing include <Ecore.h> for needed ecore functions
...
(ecore_time_get, ecore_exe_run, etc, etc).
SVN revision: 55027
2010-11-26 21:32:34 +00:00
Vincent Torri
57c6d1b2e0
fix efreet after the Windows commits
...
SVN revision: 55026
2010-11-26 20:48:50 +00:00
Vincent Torri
126c3574c3
fix compilation on Windows
...
SVN revision: 55021
2010-11-26 17:05:16 +00:00
Cedric BAIL
a90e2e4aff
* efreet: improve icon cache, increase speed and consume a little
...
more memory than previous version.
TODO: efreet_icon_cache_create could be speeded up if we did
reuse already generated theme instead when doing inherit work.
NOTE: Let me add a rant against Freedesktop standard. Walking
around 22731 paths for 3051 icons is insane and that's just for
one theme ! Maybe they could give me one SSD...
SVN revision: 55018
2010-11-26 14:56:23 +00:00
Sebastian Dransfeld
b9c9af539a
Check if dir exists before listening to it
...
SVN revision: 55008
2010-11-26 10:27:41 +00:00
Vincent Torri
d07b011ca8
move Ecore_File.h inclusion to the source file
...
SVN revision: 55002
2010-11-25 23:52:57 +00:00
Vincent Torri
42f57e9fc3
put alloca declaration after config.h
...
SVN revision: 55001
2010-11-25 23:48:59 +00:00
Sebastian Dransfeld
14f8c7b24f
TODO++--
...
SVN revision: 54976
2010-11-25 09:41:08 +00:00
Sebastian Dransfeld
ffee0081c7
Keep all queried themes in hash
...
The previous logic would create a fake theme object in
efreet_icon_find_theme_check() if we didn't find the theme. Later in
efreet_icon_theme_dir_scan_all() we would delete this theme, and then
segv. As the user hopefully wont query for a bunch of non existing
themes, and each theme object is fairly small, keep all in hash.
SVN revision: 54975
2010-11-25 09:04:49 +00:00
Sebastian Dransfeld
e8e0615c08
only inherit hicolor if theme is valid
...
SVN revision: 54974
2010-11-25 09:04:39 +00:00
Sebastian Dransfeld
19e3d5ee33
Make icon test work without theme installed
...
SVN revision: 54973
2010-11-25 09:04:19 +00:00
Sebastian Dransfeld
6be2628e97
revert, name.internal is always set
...
SVN revision: 54965
2010-11-24 21:34:21 +00:00
Sebastian Dransfeld
58f3f4f363
check if name.internal exists
...
SVN revision: 54964
2010-11-24 21:31:24 +00:00
Sebastian Dransfeld
748f2423b1
only listen if icon cache is enabled
...
SVN revision: 54963
2010-11-24 21:29:35 +00:00
Sebastian Dransfeld
04f61e115b
we need to monitor each theme dir too
...
xdg-icon-resource creates and deletes a file called
.xdg-icon-resource-dummy in each dir.
SVN revision: 54962
2010-11-24 21:18:56 +00:00
Sebastian Dransfeld
54ec9cec67
listen to changes for icon dirs
...
SVN revision: 54957
2010-11-24 21:10:52 +00:00
Sebastian Dransfeld
8f7c47480d
use convenience macro
...
SVN revision: 54954
2010-11-24 20:52:12 +00:00
Sebastian Dransfeld
fabda0d559
reorder code
...
SVN revision: 54953
2010-11-24 20:51:48 +00:00
Sebastian Dransfeld
b6a8ffb13d
remove unneeded code
...
SVN revision: 54949
2010-11-24 19:37:01 +00:00
Sebastian Dransfeld
76bf6bc471
And always return
...
SVN revision: 54931
2010-11-24 11:30:12 +00:00
Sebastian Dransfeld
48471479e8
low prio for cache creation
...
SVN revision: 54930
2010-11-24 10:44:16 +00:00
Sebastian Dransfeld
7083a3f774
formatting
...
SVN revision: 54929
2010-11-24 10:33:49 +00:00
Sebastian Dransfeld
1f83aecc41
Always return before error handler
...
SVN revision: 54928
2010-11-24 10:33:40 +00:00
Sebastian Dransfeld
b645d20ab2
fix memleak and use realpath directly
...
SVN revision: 54927
2010-11-24 10:33:30 +00:00
Sebastian Dransfeld
cc981aba4d
remove printf
...
SVN revision: 54926
2010-11-24 09:37:56 +00:00
Sebastian Dransfeld
213be68ade
Only update if file has known extension
...
SVN revision: 54925
2010-11-24 09:37:46 +00:00
Sebastian Dransfeld
3fab0c44cb
actually change file, as we don't listen to attrib
...
SVN revision: 54924
2010-11-24 09:37:35 +00:00
Mike Blumenkrantz
e8ae0da271
fix compile
...
SVN revision: 54917
2010-11-24 02:40:54 +00:00
Sebastian Dransfeld
263745797e
Listening for changes is private for desktop
...
SVN revision: 54911
2010-11-23 21:54:01 +00:00
Sebastian Dransfeld
620121501f
Don't close active desktop cache
...
SVN revision: 54910
2010-11-23 21:35:32 +00:00
Sebastian Dransfeld
d6cd4ae87d
always init cache
...
SVN revision: 54908
2010-11-23 21:16:19 +00:00
Sebastian Dransfeld
f557446b92
NULL pointers after deletion
...
SVN revision: 54907
2010-11-23 21:15:55 +00:00
Sebastian Dransfeld
3a0be239f9
And compile without ICON_CACHE
...
SVN revision: 54905
2010-11-23 20:26:50 +00:00
Sebastian Dransfeld
e2c6e11724
move cache file handling from desktop to cache
...
SVN revision: 54901
2010-11-23 20:14:13 +00:00
Sebastian Dransfeld
69e2339c4f
remove unused variables
...
SVN revision: 54900
2010-11-23 20:13:40 +00:00
Sebastian Dransfeld
38bad7fac0
catch term, not int
...
SVN revision: 54892
2010-11-23 16:50:16 +00:00
Sebastian Dransfeld
5db48201ce
trap sigint
...
SVN revision: 54891
2010-11-23 16:49:46 +00:00
Sebastian Dransfeld
7e584e6293
ecore is handled in main
...
SVN revision: 54887
2010-11-23 13:30:51 +00:00
Sebastian Dransfeld
15a241534c
touch an update file on completion
...
SVN revision: 54886
2010-11-23 13:30:39 +00:00
Sebastian Dransfeld
f6cb6541e3
rename fd to clarify usage
...
SVN revision: 54885
2010-11-23 13:30:17 +00:00
Sebastian Dransfeld
86eb1f3367
TODO++
...
SVN revision: 54834
2010-11-22 21:31:35 +00:00
Sebastian Dransfeld
2762d8ba37
Always emit icon cache update event
...
If file starts with icon_ and ends with .cache, we have a new icon
cache, emit event.
SVN revision: 54833
2010-11-22 21:30:43 +00:00
Sebastian Dransfeld
7b68d53abc
fix fallback icon searching
...
SVN revision: 54831
2010-11-22 20:51:34 +00:00
Sebastian Dransfeld
09aed7876d
close cache file after 60 seconds of inactivity
...
SVN revision: 54829
2010-11-22 20:51:05 +00:00
Sebastian Dransfeld
bdb6cdffd0
read fallback icon from cache
...
SVN revision: 54828
2010-11-22 20:50:46 +00:00
Sebastian Dransfeld
c36317f77c
do ecore_init, so ecore_time_get works
...
SVN revision: 54827
2010-11-22 20:50:32 +00:00
Sebastian Dransfeld
5c4adef911
And use right error handler
...
SVN revision: 54826
2010-11-22 20:50:09 +00:00
Sebastian Dransfeld
997158486a
ecore_file is init'ed in base
...
SVN revision: 54825
2010-11-22 20:49:52 +00:00
Sebastian Dransfeld
12550e7b58
init ecore_file in base
...
And add missing ecore_*shutdown() in shutdown
SVN revision: 54824
2010-11-22 20:49:22 +00:00
Sebastian Dransfeld
3624014340
Remove common included header
...
SVN revision: 54823
2010-11-22 20:49:08 +00:00
Sebastian Dransfeld
44264c2d8f
Add ecore headers to private header
...
Used everywhere
SVN revision: 54822
2010-11-22 20:48:55 +00:00
Sebastian Dransfeld
7ad68afff2
Don't add a new public header
...
SVN revision: 54821
2010-11-22 20:48:41 +00:00
Sebastian Dransfeld
d2b2019675
We always need to to the tasks in init on init
...
SVN revision: 54820
2010-11-22 20:48:24 +00:00
Sebastian Dransfeld
3c6ce92aa4
remove erronous chars
...
SVN revision: 54819
2010-11-22 20:47:14 +00:00
Sebastian Dransfeld
862412f11d
rename
...
SVN revision: 54789
2010-11-22 14:16:58 +00:00
Sebastian Dransfeld
bbf23d8ab2
rename
...
SVN revision: 54788
2010-11-22 14:16:48 +00:00
Sebastian Dransfeld
64f366ee77
TODO++
...
SVN revision: 54787
2010-11-22 14:16:38 +00:00
Sebastian Dransfeld
8a9a0bbc15
TODO++
...
SVN revision: 54786
2010-11-22 14:16:29 +00:00
Sebastian Dransfeld
9941eba9d6
check for NULL
...
SVN revision: 54785
2010-11-22 14:16:19 +00:00
Sebastian Dransfeld
87baeb631b
Execute cache creator and listen for changes
...
SVN revision: 54784
2010-11-22 14:16:09 +00:00
Sebastian Dransfeld
04d52dcd86
cache update is a generic event
...
SVN revision: 54783
2010-11-22 14:15:59 +00:00
Sebastian Dransfeld
537f3fd258
include Ecore.h
...
SVN revision: 54782
2010-11-22 14:15:50 +00:00
Sebastian Dransfeld
a16314cd88
init ecore in main init
...
SVN revision: 54781
2010-11-22 14:15:40 +00:00
Sebastian Dransfeld
93429120f9
If only one path, only check extension
...
SVN revision: 54780
2010-11-22 14:15:30 +00:00
Carsten Haitzler
1c34083001
lets... use our return value shall we? <- THATS the missing icons bug
...
i was telling you about!
SVN revision: 54776
2010-11-22 09:47:36 +00:00
Sebastian Dransfeld
027c174f9d
Find icons in cache
...
SVN revision: 54616
2010-11-16 21:50:53 +00:00
Sebastian Dransfeld
159b8ddb60
realpath will return empty string when not found
...
SVN revision: 54615
2010-11-16 21:50:38 +00:00
Sebastian Dransfeld
2894e4aedc
if -> ifdef
...
SVN revision: 54614
2010-11-16 21:49:45 +00:00
Sebastian Dransfeld
e2a715ccc9
create cache for fallback icons
...
SVN revision: 54583
2010-11-16 10:32:21 +00:00
Sebastian Dransfeld
8a1cde087d
formatting
...
SVN revision: 54582
2010-11-16 10:32:11 +00:00
Sebastian Dransfeld
e4c39fa555
export depcreated user dir
...
SVN revision: 54581
2010-11-16 10:32:01 +00:00
Sebastian Dransfeld
bc008e3a93
local variable should be static
...
SVN revision: 54580
2010-11-16 10:31:49 +00:00
Sebastian Dransfeld
2849f58ca9
Remove duplicate code, mark strict spec
...
SVN revision: 54579
2010-11-16 08:28:52 +00:00
Sebastian Dransfeld
b83238ae14
Start of icon cache
...
Please test efreet_icon_cache_create and efreet_icon_cache_dump, and
check if it is fast enough on a slow system.
SVN revision: 54575
2010-11-15 21:07:22 +00:00
Sebastian Dransfeld
e8ce2014b0
TODO++
...
SVN revision: 54574
2010-11-15 21:07:05 +00:00
Sebastian Dransfeld
aec56c9e24
share edd between lib and bin
...
SVN revision: 54573
2010-11-15 21:06:52 +00:00
Sebastian Dransfeld
bc9f811710
remove duplicate code, and mark strict spec
...
SVN revision: 54572
2010-11-15 21:04:42 +00:00
Sebastian Dransfeld
44ce55c909
TOOD++
...
SVN revision: 54386
2010-11-09 21:31:46 +00:00
Sebastian Dransfeld
7545e54203
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
Cedric BAIL
5cec7beb53
* efreet: little speedup for icon lookup.
...
But really you should not call it as it will call stat for
every path it guess an icon could be in. For example, elementary_test
Toolbar 5 trigger 41132 call to stat on random place on your harddrive.
SVN revision: 54339
2010-11-08 18:09:25 +00:00
Sebastian Dransfeld
0ab16442cf
Always do env check
...
SVN revision: 54231
2010-11-06 16:47:43 +00:00
Sebastian Dransfeld
3ee4664f39
Do realpath on last element too
...
SVN revision: 54227
2010-11-06 14:44:11 +00:00
Sebastian Dransfeld
1a12537dfd
delay deletion of non valid themes
...
We need to delay deletion of non valid themes until all possible search
dirs are scanned. In Ubuntu 10.10 XDG_DATA_DIRS lists /usr/local/share
before /usr/share, so when searching for hicolor /usr/local/share is
dropped as a valid dir although it exists as it does not contain an
index.theme file.
SVN revision: 53882
2010-10-25 20:20:41 +00:00
Sebastian Dransfeld
736dbfed46
store OnlyShowIn and NotShowIn in struct
...
SVN revision: 53691
2010-10-20 20:39:54 +00:00
Sebastian Dransfeld
423892f7cd
use EINA_LIST_FREE for list deletion
...
SVN revision: 53690
2010-10-20 20:39:38 +00:00
Sebastian Dransfeld
b2ecad6a06
simplify list deletion
...
use eina_list_free instead of removing one and one element
SVN revision: 53689
2010-10-20 20:39:19 +00:00
Gustavo Sverzut Barbieri
bc2c59746d
log domains in lower-case only please.
...
let's make it a standard so we don't have to look at the code
everytime to figure out the name...
SVN revision: 53171
2010-10-07 22:22:33 +00:00
Sebastian Dransfeld
ed263df47e
ecore time is double
...
SVN revision: 52855
2010-09-28 17:53:15 +00:00
Christopher Michael
eb7c111fc9
Fix typo.
...
SVN revision: 52783
2010-09-26 16:30:14 +00:00
Carsten Haitzler
d9aad06334
shuddup gcc wanrings
...
SVN revision: 52434
2010-09-19 00:36:27 +00:00
Lucas De Marchi
67771ee617
Fix common misspellings
...
Following misspellings were fixed:
acheive->achieve
appart->apart
isnt->isn't
succesfully->successfully
taht->that
SVN revision: 51987
2010-09-08 11:27:59 +00:00
Sebastian Dransfeld
f3a591b253
Always munmap mmap'ed data
...
SVN revision: 51713
2010-08-29 08:47:37 +00:00
Sebastian Dransfeld
96daa6c974
clean whitespace
...
SVN revision: 51712
2010-08-29 08:47:27 +00:00
Sebastian Dransfeld
cf907d127a
clean whitespace
...
SVN revision: 51711
2010-08-29 08:47:16 +00:00
Carsten Haitzler
dae2c23caf
possible leak--
...
SVN revision: 51703
2010-08-28 15:11:20 +00:00
Lucas De Marchi
5a8a8c9014
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
Cedric BAIL
ba22eb6af8
* efreet: less warning by Albin Tonnerre.
...
SVN revision: 51247
2010-08-17 12:03:10 +00:00
Carsten Haitzler
ff9e16874e
efreet 1.0.0 alpha... MUHAHAHHAHAHAHAH!
...
SVN revision: 51180
2010-08-16 09:34:38 +00:00
Sebastian Dransfeld
2dc15f4d89
formatting
...
SVN revision: 51137
2010-08-15 19:54:19 +00:00
Sebastian Dransfeld
b001a8968e
Fix theme passed to efreet_icon_cache_add
...
Just pass NULL, no need for NULL theme
SVN revision: 51136
2010-08-15 19:54:08 +00:00
Joerg Sonnenberger
607e5d4b9b
From: Joerg Sonnenberger <joerg@britannica.bec.de>
...
Subject: [E-devel] [PATCH] efreet and icon loading
Hi all,
attached patch fixes two issues:
(1) If using a non-default prefix, share/pixmaps should be checked
before the hard-coded /usr/share/pixmaps fallback. This basically
restores symmetry with the other cases like share/icons.
(2) Do a fallback lookup if the theme is not valid or faked. This can
happen if only hicolor is installed and e17 decides to use Tango.
Before, e.g. gimp's icon wasn't picked up because the short cut was too
early.
SVN revision: 51124
2010-08-15 03:01:55 +00:00
Carsten Haitzler
1325b20a81
sloppy ecore_job handle! fix!
...
SVN revision: 51107
2010-08-14 04:02:31 +00:00
Cedric BAIL
8a1a12333f
* eet: fix API break.
...
SVN revision: 51084
2010-08-13 15:53:59 +00:00
Cedric BAIL
a6645cb746
* eina: fix eina array threadsafe version.
...
Also add iterator and accessor ability to walk threadsafely.
Rename EINA_EACH to EINA_EACH_CB to match other callback cast.
SVN revision: 51000
2010-08-11 14:32:30 +00:00
Cedric BAIL
5efed73f07
* efreet: fix some potential source of segv.
...
SVN revision: 50942
2010-08-09 19:31:18 +00:00
Sebastian Dransfeld
03f82b7d73
Fix clearing of theme cache
...
SVN revision: 50825
2010-08-04 21:01:09 +00:00
Sebastian Dransfeld
9edfb9d456
Check NULL return
...
SVN revision: 50822
2010-08-04 19:15:53 +00:00
Sebastian Dransfeld
80c2d94afd
Check NULL return
...
SVN revision: 50821
2010-08-04 19:15:38 +00:00
Sebastian Dransfeld
a737a1d044
Check for NULL return
...
SVN revision: 50818
2010-08-04 18:21:30 +00:00
Sebastian Dransfeld
7b5e166c85
Check NULL return
...
SVN revision: 50817
2010-08-04 18:21:20 +00:00
Lucas De Marchi
0a4617ae38
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
Sebastian Dransfeld
7bf67b046b
key and value aren't const
...
SVN revision: 50809
2010-08-04 12:33:58 +00:00
Sebastian Dransfeld
0a3f53c3b1
Check for null return
...
SVN revision: 50808
2010-08-04 12:33:48 +00:00
Sebastian Dransfeld
2ccf1a156d
Remove fake_null try 2
...
SVN revision: 50807
2010-08-04 12:23:00 +00:00
Carsten Haitzler
1837b63b38
ummmm revert. crash crash crash.
...
SVN revision: 50789
2010-08-03 21:32:45 +00:00
Sebastian Dransfeld
eba0c34bf9
Remove unneeded fake_null theme
...
SVN revision: 50788
2010-08-03 20:46:56 +00:00
Sebastian Dransfeld
c623230e98
Remove unneeded eina_hash_del
...
We already checked that this value isn't in the hash.
SVN revision: 50787
2010-08-03 20:46:46 +00:00
Sebastian Dransfeld
b197b55abc
Check return NULL
...
SVN revision: 50786
2010-08-03 20:46:36 +00:00
Sebastian Dransfeld
beacf6f976
use EINA_LIST_FREE
...
SVN revision: 50785
2010-08-03 20:46:25 +00:00
Sebastian Dransfeld
08e9824c6e
check return value from NEW
...
SVN revision: 50784
2010-08-03 19:31:44 +00:00
Sebastian Dransfeld
99673bb0a8
fix malloc calls
...
check return value and remove unneeded sizeof(char)
SVN revision: 50783
2010-08-03 19:31:34 +00:00
Sebastian Dransfeld
1576311af3
alloc the right amount of mem
...
sizeof(char) is 1, and sizeof(char *) is wrong for strings
SVN revision: 50782
2010-08-03 19:31:24 +00:00
Sebastian Dransfeld
69d0626265
use alloca for in function mem
...
SVN revision: 50781
2010-08-03 19:31:14 +00:00
Sebastian Dransfeld
7f93656d7b
check return value from malloc
...
SVN revision: 50780
2010-08-03 19:31:04 +00:00
Sebastian Dransfeld
8554a0c23b
free data on realloc error
...
SVN revision: 50779
2010-08-03 19:30:53 +00:00
Massimiliano Calamelli
465a55b467
Leak-- using the macro
...
SVN revision: 50763
2010-08-03 11:44:55 +00:00
Sebastian Dransfeld
4b221c3936
Check return value for realloc
...
SVN revision: 50753
2010-08-02 20:43:09 +00:00
Sebastian Dransfeld
31c6799a7e
goto not needed anymore with alloca
...
SVN revision: 50496
2010-07-25 20:38:28 +00:00
Sebastian Dransfeld
78f80647ea
use eina hash set
...
SVN revision: 50494
2010-07-25 20:28:21 +00:00
Sebastian Dransfeld
230461d56b
free data on error
...
SVN revision: 50493
2010-07-25 20:25:51 +00:00
Sebastian Dransfeld
b76d9490dc
Fix errors reported by clang
...
SVN revision: 50492
2010-07-25 20:25:40 +00:00
Lucas De Marchi
2a84379ba9
Remove unneeded code with notnull.cocci script
...
The notnull.cocci script from Coccinelle finds places where you check if a
variable is NULL, but it's known not to be NULL. The check can be safely
removed. For example, this code would be caught by notnull:
if (!var) return;
if (var && var->fld) { ... }
It's needless to check again if var is not NULL because if it's in fact NULL,
it would have returned on the previous "if". This commit removes all the
trivial places where this pattern happens. Another patch will be generated for
the more complex cases.
SVN revision: 50241
2010-07-14 02:05:47 +00:00
Christopher Michael
4f972b800b
Move Efreet (and associated headers) to own dir.
...
SVN revision: 50143
2010-07-09 06:28:29 +00:00
Sebastian Dransfeld
bcb8744bc0
formatting
...
SVN revision: 49840
2010-06-25 01:44:30 +00:00
Sebastian Dransfeld
51c6fc3785
formatting
...
SVN revision: 49839
2010-06-25 01:38:50 +00:00
Sebastian Dransfeld
36b570e9bc
formatting
...
SVN revision: 49838
2010-06-24 19:34:15 +00:00
Cedric BAIL
55524b4e87
* efreet: remove warning due to change in Ecore API.
...
SVN revision: 49831
2010-06-24 16:17:45 +00:00
Sebastian Dransfeld
a392e677a7
flock -> fcntl
...
SVN revision: 49650
2010-06-11 21:48:33 +00:00
Sebastian Dransfeld
28878014c9
flock -> fcntl
...
flock isn't portable. Fix some headers too.
SVN revision: 49649
2010-06-11 21:43:07 +00:00
Vincent Torri
5a8135174a
missing headers
...
SVN revision: 49545
2010-06-06 19:45:16 +00:00
Carsten Haitzler
7a935a6eac
add verbose option/
...
SVN revision: 49387
2010-06-02 00:19:38 +00:00
Carsten Haitzler
0d773a63a0
version for efreet
...
SVN revision: 49282
2010-05-29 08:30:06 +00:00
Sebastian Dransfeld
cf894cab2e
fix double free
...
eina_hash_del calls free callback, so we don't need to free the data
ourselves.
SVN revision: 49247
2010-05-28 09:25:16 +00:00
Sebastian Dransfeld
d4eb19a520
efreet: formatting
...
SVN revision: 48946
2010-05-17 19:45:20 +00:00
Hannes Janetzek
61df60e3bb
get min/max size only for scalable icons
...
SVN revision: 48924
2010-05-16 21:11:21 +00:00
Hannes Janetzek
3ac99ef29b
fix ret_size used unitialized
...
Threshold is fallback for type
calc min/max dir size for threshold only once
SVN revision: 48923
2010-05-16 21:02:52 +00:00
Sebastian Dransfeld
f7b9de9595
efreet: formatting
...
SVN revision: 48921
2010-05-16 19:36:42 +00:00
Sebastian Dransfeld
fc031b899d
efreet: better variable naming
...
SVN revision: 48920
2010-05-16 18:42:43 +00:00
Sebastian Dransfeld
f827867a22
efreet: prefer downsizing
...
SVN revision: 48919
2010-05-16 18:42:33 +00:00
Sebastian Dransfeld
31fa5a1e1d
efreet: use exponential scale for icon size search
...
fd.o spec wants us to use linear distance for icon size search. But
f.ex. when searching for a 128px icon, and the available is 48px and
256px, 256px would be preferable as 256/128 is 2 and 128/48 is 2.67
SVN revision: 48918
2010-05-16 18:41:56 +00:00
Carsten Haitzler
8bbc3b9024
gaaaaah! fix buf - paths were "wrong" - thus matching failed. man i see some
...
expensive ops going on with lots of strcmping.
SVN revision: 48917
2010-05-16 17:11:38 +00:00
Sebastian Dransfeld
8cde10890b
efreet: Don't remove/add stuff already in list
...
eina_list_promote_list to prepend data already in list.
SVN revision: 48898
2010-05-15 18:38:50 +00:00
Hannes Janetzek
af2471c7bc
remove svg from default types.
...
make efreet_icon_extensions prepended a type when it already is in list
SVN revision: 48895
2010-05-15 17:55:41 +00:00
Hannes Janetzek
82b89cea6b
add FIXME
...
SVN revision: 48893
2010-05-15 16:57:28 +00:00
Hannes Janetzek
85dbd6d844
search for svg icons
...
SVN revision: 48891
2010-05-15 16:24:58 +00:00
Hannes Janetzek
db8de25e56
allow trashing of files which are not on home partition
...
SVN revision: 48885
2010-05-15 07:51:49 +00:00
Sebastian Dransfeld
dc91f4ebbf
efreet: make sure we flush new dirs
...
SVN revision: 48812
2010-05-13 18:31:41 +00:00
Hannes Janetzek
1a49327928
make all strings returned by efre_mime_type_get stringshared
...
SVN revision: 48641
2010-05-05 20:55:14 +00:00
Sebastian Dransfeld
5be72adc7d
efreet: TODO++
...
SVN revision: 48429
2010-04-29 18:16:15 +00:00
Sebastian Dransfeld
b5caf6ce1b
efreet: fix #534
...
SVN revision: 48110
2010-04-18 20:04:09 +00:00
Albin Tonnerre
1dde324c33
[E-devel] [PATCH] Efreet: move efreet_desktop_cache_create out of
...
the path
This binary is just an internal helper, and isn't expected to be run by
anything but efreet. Therefore, let's emphasize this and keep it out of
the path by installing it in PACKAGE_LIB_DIR/efreet/
Signed-off-by: Albin Tonnerre <lutin@debian.org>
By: Albin Tonnerre <albin.tonnerre@gmail.com>
SVN revision: 48085
2010-04-17 20:19:35 +00:00
Sebastian Dransfeld
a384141abc
efreet: Check return value from opendir
...
SVN revision: 48081
2010-04-17 18:39:13 +00:00
Carsten Haitzler
ca87bc3349
how about if opendir fails... we dont try and walk the dir? :)
...
SVN revision: 48047
2010-04-16 02:20:56 +00:00
Sebastian Dransfeld
3d71b07fc7
TODO--
...
SVN revision: 48040
2010-04-15 19:43:02 +00:00
Sebastian Dransfeld
9460f8ed3e
efreet: use convenience func
...
One func to add monitor, func checks for duplicate monitor and uses
realpath
SVN revision: 48038
2010-04-15 19:38:01 +00:00
Sebastian Dransfeld
80e3b951fa
efreet: listen for changes recursivly
...
SVN revision: 48036
2010-04-15 19:21:23 +00:00
Sebastian Dransfeld
1488a1889d
efreet: better naming
...
SVN revision: 48035
2010-04-15 19:21:13 +00:00
Sebastian Dransfeld
37e39a6834
efreet: better naming
...
SVN revision: 48034
2010-04-15 19:21:03 +00:00
Sebastian Dransfeld
2df0141340
efreet: better naming
...
SVN revision: 48033
2010-04-15 19:20:51 +00:00
Sebastian Dransfeld
1560298337
efreet: better naming
...
SVN revision: 48032
2010-04-15 19:20:41 +00:00
Sebastian Dransfeld
1446a1a819
efreet: reorganize
...
SVN revision: 48031
2010-04-15 19:20:31 +00:00
Sebastian Dransfeld
42415580c2
efreet: group EAPI int's and init 0
...
SVN revision: 48030
2010-04-15 19:20:18 +00:00
Sebastian Dransfeld
078fd2fd91
efreet: remove old code
...
SVN revision: 48029
2010-04-15 19:20:09 +00:00
Sebastian Dransfeld
bb7b272b18
efreet: better naming
...
SVN revision: 48028
2010-04-15 19:19:59 +00:00
Sebastian Dransfeld
28f67a86d7
efreet: formatting
...
SVN revision: 48027
2010-04-15 19:19:48 +00:00
Sebastian Dransfeld
1870180db1
efreet: and add file
...
SVN revision: 48026
2010-04-15 18:24:48 +00:00
Sebastian Dransfeld
6b1bb18738
efreet: split desktop command to separate file
...
SVN revision: 48025
2010-04-15 18:23:42 +00:00
Sebastian Dransfeld
84f6110ff1
TODO++
...
SVN revision: 48003
2010-04-14 19:39:36 +00:00
Sebastian Dransfeld
e8883033a2
efreet: Listen to new cache dirs
...
SVN revision: 47795
2010-04-06 18:50:26 +00:00
Sebastian Dransfeld
95d6e3390f
efreet: reorder init
...
SVN revision: 47794
2010-04-06 18:36:25 +00:00
Sebastian Dransfeld
207f5dc447
efreet: cache all types of desktop files
...
SVN revision: 47792
2010-04-06 18:36:04 +00:00
Sebastian Dransfeld
c6ec14606e
efreet: TODO++
...
SVN revision: 47791
2010-04-06 18:35:54 +00:00
Sebastian Dransfeld
113b0254a8
efreet: listen for changes in desktop files
...
SVN revision: 47790
2010-04-06 18:35:45 +00:00
Sebastian Dransfeld
44f00fc8a6
efreet: don't truncate, unlink and open
...
SVN revision: 47789
2010-04-06 18:35:35 +00:00
Sebastian Dransfeld
973965f165
efreet: TODO++
...
SVN revision: 47788
2010-04-06 18:35:18 +00:00
Sebastian Dransfeld
b58df70245
efreet: more doc
...
SVN revision: 47737
2010-04-03 18:48:57 +00:00
Sebastian Dransfeld
9e6c9f7335
efreet: check load time on all desktop structs
...
SVN revision: 47736
2010-04-03 18:46:58 +00:00
Sebastian Dransfeld
bc4bc7ce81
efreet: Check whether cached version is latest.
...
SVN revision: 47735
2010-04-03 18:46:47 +00:00
Sebastian Dransfeld
7c3818fb1d
efreet: Always update cache if not read from eet
...
SVN revision: 47734
2010-04-03 18:46:37 +00:00
Sebastian Dransfeld
1122ed6c56
efreet: Don't update cache if we don't mean to
...
SVN revision: 47733
2010-04-03 18:46:27 +00:00
Sebastian Dransfeld
12a341ff2f
efreet: rename fd for lock
...
SVN revision: 47732
2010-04-03 18:46:17 +00:00
Sebastian Dransfeld
3c3e999ad7
efreet: mkpath once
...
SVN revision: 47731
2010-04-03 18:46:07 +00:00
Sebastian Dransfeld
3c595b9408
efreet: Add cache update func
...
SVN revision: 47730
2010-04-03 18:45:57 +00:00
Sebastian Dransfeld
0407d84a9a
efreet: rename lock file
...
SVN revision: 47729
2010-04-03 18:45:46 +00:00
Iván Briano
13265370a5
Don't screw the still used len variable, and remove unnecessary hash_del (we didn't find the entry at the beginning, no point trying to delete it)
...
SVN revision: 47726
2010-04-03 16:26:03 +00:00
Sebastian Dransfeld
31f73712f3
efreet: stringshare
...
SVN revision: 47668
2010-04-01 19:41:03 +00:00
Sebastian Dransfeld
5ffb64a69c
efreet: TODO--++
...
SVN revision: 47667
2010-04-01 19:40:53 +00:00
Sebastian Dransfeld
2dbd820242
efreet: merge
...
SVN revision: 47666
2010-04-01 19:39:42 +00:00
Sebastian Dransfeld
3b546516c3
efreet: fancy alloca include in common header
...
SVN revision: 47664
2010-04-01 19:32:41 +00:00
Sebastian Dransfeld
5d368823ba
efreet: move file local data to .c file
...
SVN revision: 47663
2010-04-01 19:32:29 +00:00
Sebastian Dransfeld
ede5ac01f6
efreet: remove strdup, use alloca
...
SVN revision: 47662
2010-04-01 19:32:19 +00:00
Sebastian Dransfeld
127982f44c
efreet: remove strdup, use alloca
...
SVN revision: 47661
2010-04-01 19:32:10 +00:00
Sebastian Dransfeld
48ecf5383b
efreet: fix compiler warning
...
SVN revision: 47660
2010-04-01 19:32:00 +00:00
Sebastian Dransfeld
e30468b362
efreet: stringshare
...
SVN revision: 47659
2010-04-01 19:31:49 +00:00
Sebastian Dransfeld
9464e87d74
efreet: stringshare
...
SVN revision: 47658
2010-04-01 19:31:38 +00:00
Sebastian Dransfeld
4501c577e3
efreet: stringshare
...
SVN revision: 47657
2010-04-01 19:30:13 +00:00
Carsten Haitzler
d9d11ba836
fixme-- ... my bad! looking at wrong fn! :)
...
SVN revision: 47598
2010-03-30 12:44:37 +00:00
Sebastian Dransfeld
6d00dc126b
efreet: use alloca for local dynamic buffer
...
SVN revision: 47597
2010-03-30 12:22:15 +00:00
Sebastian Dransfeld
1b6662b2e9
efreet: remove strdup
...
SVN revision: 47596
2010-03-30 12:22:05 +00:00
Sebastian Dransfeld
a44f87390d
efreet: benefit from stringshare
...
SVN revision: 47595
2010-03-30 12:21:55 +00:00
Sebastian Dransfeld
c2db2c4258
efreet: stringshare
...
SVN revision: 47594
2010-03-30 12:21:44 +00:00
Sebastian Dransfeld
40a5c9a155
efreet: stringshare
...
SVN revision: 47593
2010-03-30 12:21:33 +00:00
Sebastian Dransfeld
72a79471d5
remove strdup
...
SVN revision: 47592
2010-03-30 12:21:23 +00:00
Sebastian Dransfeld
ac18d14316
efreet: benefit from stringshare
...
Since both values are stringshared, we can use direct comparison.
SVN revision: 47591
2010-03-30 12:21:12 +00:00
Sebastian Dransfeld
1063df8b9e
efreet: stringshare
...
SVN revision: 47590
2010-03-30 12:20:55 +00:00
Sebastian Dransfeld
6da3c6846d
efreet: stringshare
...
SVN revision: 47588
2010-03-30 11:07:19 +00:00
Sebastian Dransfeld
592ebdcb5b
efreet: stringshare
...
SVN revision: 47587
2010-03-30 11:07:07 +00:00
Sebastian Dransfeld
c06492ded0
efreet: stringshare
...
SVN revision: 47586
2010-03-30 11:06:56 +00:00
Sebastian Dransfeld
caa9409ac0
efreet: Check if old and new cache equals
...
SVN revision: 47585
2010-03-30 10:51:45 +00:00
Sebastian Dransfeld
1aa568e828
efreet: Check source of desktop
...
Flag changed if efreet_desktop_new doesn't return a eet cached value.
SVN revision: 47584
2010-03-30 10:51:35 +00:00
Carsten Haitzler
d3de8d9f1d
hmm - avoid crash for now, but bitch loudly
...
SVN revision: 47581
2010-03-30 05:29:49 +00:00
Carsten Haitzler
76b3bed05e
comment++
...
SVN revision: 47577
2010-03-30 05:15:33 +00:00
Carsten Haitzler
04af71119f
bah!
...
SVN revision: 47571
2010-03-30 00:02:19 +00:00
Sebastian Dransfeld
3db40c0d97
efreet: fix strdup + stringshare
...
SVN revision: 47568
2010-03-29 20:14:43 +00:00
Sebastian Dransfeld
434759396a
efreet: use efreet_desktop_new, not get
...
As we free the desktop in the same func, use uncached version
SVN revision: 47567
2010-03-29 20:11:12 +00:00
Sebastian Dransfeld
68d33e8c59
efreet: TODO++
...
SVN revision: 47566
2010-03-29 20:10:26 +00:00
Sebastian Dransfeld
6d0651d4f2
efreet: Only update cache files if changed
...
SVN revision: 47546
2010-03-28 20:46:27 +00:00
Sebastian Dransfeld
13b51829ae
efreet: TODO--
...
SVN revision: 47545
2010-03-28 20:36:47 +00:00
Sebastian Dransfeld
44aea1a452
efreet: Remove unneeded flag
...
SVN revision: 47544
2010-03-28 20:36:37 +00:00
Sebastian Dransfeld
c37ca95819
efreet: Remove unneeded flag
...
SVN revision: 47543
2010-03-28 20:36:26 +00:00
Sebastian Dransfeld
5e33a5798f
Remove unneeded TOOD
...
SVN revision: 47542
2010-03-28 20:36:11 +00:00
Sebastian Dransfeld
c7dc3a221d
efreet: Only read data from disk when modified
...
SVN revision: 47539
2010-03-28 19:31:37 +00:00
Sebastian Dransfeld
d504b34ac3
efreet: fix old cache deletion
...
SVN revision: 47538
2010-03-28 19:31:26 +00:00
Sebastian Dransfeld
d075ee43c2
efreet: Always run cache update on init
...
SVN revision: 47537
2010-03-28 19:31:14 +00:00
Sebastian Dransfeld
d8bde974e6
efreet: Add variable to prevent cache update
...
SVN revision: 47536
2010-03-28 18:54:25 +00:00
Sebastian Dransfeld
cfc96c36ad
efreet: TODO++
...
SVN revision: 47520
2010-03-27 20:58:45 +00:00
Sebastian Dransfeld
3806dd7a2c
efreet: Track old caches
...
SVN revision: 47519
2010-03-27 20:53:52 +00:00
Sebastian Dransfeld
17df443aeb
efreet: use uncached call so we read from disk
...
SVN revision: 47516
2010-03-27 20:03:45 +00:00
Sebastian Dransfeld
fa732e43f6
efreet: fix function name
...
SVN revision: 47515
2010-03-27 19:58:54 +00:00
Sebastian Dransfeld
053190d2f4
sync cache reload between desktop and util
...
SVN revision: 47513
2010-03-27 19:58:33 +00:00
Sebastian Dransfeld
45f4c540d5
efreet_util_init gone
...
SVN revision: 47511
2010-03-27 19:58:02 +00:00
Sebastian Dransfeld
534519db27
init util alongside rest of efreet
...
Used to be separate as util had different requirements than base efreet,
and util had high memory usage. No longer the case.
SVN revision: 47510
2010-03-27 19:57:47 +00:00
Sebastian Dransfeld
a870815d90
print dangling references
...
SVN revision: 47509
2010-03-27 19:57:33 +00:00