Commit Graph

117 Commits

Author SHA1 Message Date
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 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 7e584e6293 ecore is handled in main
SVN revision: 54887
2010-11-23 13:30:51 +00:00
Sebastian Dransfeld 7b68d53abc fix fallback icon searching
SVN revision: 54831
2010-11-22 20:51:34 +00:00
Sebastian Dransfeld bdb6cdffd0 read fallback icon from cache
SVN revision: 54828
2010-11-22 20:50:46 +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 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 e4c39fa555 export depcreated user dir
SVN revision: 54581
2010-11-16 10:32:01 +00:00
Sebastian Dransfeld 2849f58ca9 Remove duplicate code, mark strict spec
SVN revision: 54579
2010-11-16 08:28:52 +00:00
Sebastian Dransfeld e8ce2014b0 TODO++
SVN revision: 54574
2010-11-15 21:07:05 +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 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 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
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
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
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
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
Sebastian Dransfeld 03f82b7d73 Fix clearing of theme cache
SVN revision: 50825
2010-08-04 21:01:09 +00:00
Sebastian Dransfeld 80c2d94afd Check NULL return
SVN revision: 50821
2010-08-04 19:15:38 +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 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 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 78f80647ea use eina hash set
SVN revision: 50494
2010-07-25 20:28:21 +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 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
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