Commit Graph

461 Commits

Author SHA1 Message Date
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
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
Vincent Torri 5a8135174a missing headers
SVN revision: 49545
2010-06-06 19:45:16 +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 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 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 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
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
Sebastian Dransfeld 3db40c0d97 efreet: fix strdup + stringshare
SVN revision: 47568
2010-03-29 20:14:43 +00:00
Sebastian Dransfeld 44aea1a452 efreet: Remove unneeded flag
SVN revision: 47544
2010-03-28 20:36:37 +00:00
Sebastian Dransfeld 5e33a5798f Remove unneeded TOOD
SVN revision: 47542
2010-03-28 20:36:11 +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 3806dd7a2c efreet: Track old caches
SVN revision: 47519
2010-03-27 20:53:52 +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 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
Sebastian Dransfeld 6990198493 Add comments
SVN revision: 47473
2010-03-26 05:33:37 +00:00