Commit Graph

224 Commits

Author SHA1 Message Date
Sebastian Dransfeld 9b8a67bb31 efreet: Fix last fix, only access theme inside if
SVN revision: 74879
2012-08-04 17:11:18 +00:00
Sebastian Dransfeld 493fd82f35 efreet: always need to revalidate themes
Themes read from cache are not valid until a valid index file has been
read.

SVN revision: 74865
2012-08-03 20:21:47 +00:00
Vincent Torri e707290273 Efreet: errno.h is not always indirectly included
SVN revision: 73293
2012-07-04 18:35:31 +00:00
Sebastian Dransfeld 851f2fc136 efreet: Fix missing cache info
If a desktop was in the regular cache because of direct access, and then
added by a change in XDG_DATA_DIRS it wouldn't end in the utils cache
unless something triggered a complete cache rebuild.

SVN revision: 72962
2012-06-27 19:07:05 +00:00
Sebastian Dransfeld 93ed956adf efreet: Remove unneeded headers
SVN revision: 67403
2012-01-20 19:54:20 +00:00
Sebastian Dransfeld 820722a779 efreet: opendir -> eina_file_direct_ls
SVN revision: 67308
2012-01-19 00:35:51 +00:00
Cedric BAIL aeed35b2ea efreet: correctly include dirent.h in the right place.
NOTE: for after 1.1, we should really use eina_*_ls API instead.


SVN revision: 65292
2011-11-16 10:56:44 +00:00
Sebastian Dransfeld d459c61334 Efreet: Fix shadow warning
SVN revision: 63019
2011-08-31 09:09:31 +00:00
Sebastian Dransfeld dc78efed2b Efreet: Fix caching of recursive directories
SVN revision: 62985
2011-08-30 12:19:19 +00:00
Sebastian Dransfeld 6ac66e7427 efreet: Don't check if path is a subdir
We don't recurse in extra_dirs, so we must store all paths explicit.

SVN revision: 62582
2011-08-19 06:44:59 +00:00
Sebastian Dransfeld 6dffcf4c32 efreet: Use eina log
SVN revision: 62580
2011-08-19 06:44:38 +00:00
Sebastian Dransfeld 56f3b3b278 efreet: Clean headers
Might affect other systems, please just add the needed headers and don't
complain.

SVN revision: 62557
2011-08-18 07:35:48 +00:00
Sebastian Dransfeld f696cd74bd efret: Save whether cache changed in update file.
SVN revision: 62506
2011-08-16 12:46:35 +00:00
Sebastian Dransfeld fa2a688b02 efreet: redo cache rebuild
Always rebuild cache from scratch when needed, but rely on correct spec
behaviour to check for theme changes. This will considerably speed up
the cache process when there is no change, and improve the correctness
of the cache when changes occur. For example didn't the previous
behaviour handle file removal gracefully.

SVN revision: 62505
2011-08-16 12:46:24 +00:00
Sebastian Dransfeld dfa8b5e29f efreet: No need to sync eet file before close
SVN revision: 62504
2011-08-16 12:46:14 +00:00
Sebastian Dransfeld 46367075e1 efreet: Formatting
SVN revision: 62503
2011-08-16 12:46:03 +00:00
Sebastian Dransfeld 34d2a47e50 efreet: Print error on write error
Better solution to stop ignoring return value.

SVN revision: 62502
2011-08-16 12:45:52 +00:00
Sebastian Dransfeld 51e1eca0a9 efreet: Remove disabled if
SVN revision: 62501
2011-08-16 12:45:30 +00:00
Sebastian Dransfeld 5fcbbac392 Efreet: Consistent PACKAGE_DATA_DIR
SVN revision: 58606
2011-04-12 22:42:29 +00:00
Carsten Haitzler 5a0625660a wrn--
SVN revision: 58472
2011-04-08 05:57:28 +00:00
Sebastian Dransfeld 939470bd59 Efreet: Flush cache if we add new extensions
SVN revision: 58043
2011-03-23 20:02:46 +00:00
Sebastian Dransfeld a812c2b0d3 Efreet: formatting
SVN revision: 57859
2011-03-18 20:00:22 +00:00
Mike Blumenkrantz 96be628d43 use eina_log more effectively: replace all printfs with appropriate log functions and use EINA_LOG_ERR instead of ERR when log dom fails to init
SVN revision: 57858
2011-03-18 19:47:57 +00:00
Sebastian Dransfeld a433d4d56f Efreet: Create theme before accessing it
SVN revision: 57773
2011-03-15 18:54:00 +00:00
Sebastian Dransfeld e171893e89 Efreet: And revert logging, no longer needed
SVN revision: 57772
2011-03-15 18:49:49 +00:00
Sebastian Dransfeld 5d986f225f Efreet: Add some logging
SVN revision: 57769
2011-03-15 17:07:19 +00:00
Sebastian Dransfeld f77442595d Efreet: Make sure we don't reset changed
SVN revision: 57575
2011-03-08 11:41:18 +00:00
Sebastian Dransfeld 83306ac5c6 Efreet: Remove unused variables
SVN revision: 57409
2011-02-28 10:50:37 +00:00
Sebastian Dransfeld 984361a2d3 Efreet: Reset changed before scanning fallback
Changed must be EINA_FALSE before scanning fallback to not create false
positive.

SVN revision: 57240
2011-02-22 12:52:58 +00:00
Sebastian Dransfeld 96c006f7e3 Efreet: Always trigger change file
changed flag isn't global, and is set to EINA_FALSE for each theme.

SVN revision: 57239
2011-02-22 12:52:46 +00:00
Sebastian Dransfeld 0ee1932ebd Always trigger desktop cache update
E init process waits for this and must always get it.

SVN revision: 57238
2011-02-22 12:42:58 +00:00
Sebastian Dransfeld 7c1d716453 formatting
SVN revision: 57237
2011-02-22 12:42:46 +00:00
Cedric BAIL 94a1ea33fa efreet: write once cache to disk and notify only when needed.
NOTE: eet_sync just force the write of the eet file to the disk. 
That's exactly what eet_close will do also. eet_sync is just to
be used when you are planning to still use it and don't want to
close it soon.


SVN revision: 57233
2011-02-22 10:43:58 +00:00
Sebastian Dransfeld e142957521 Only print if verbose and TODO++
SVN revision: 57175
2011-02-19 20:54:03 +00:00
Sebastian Dransfeld c5c5df9ba9 Remove debug ouput
SVN revision: 57173
2011-02-19 20:52:10 +00:00
Sebastian Dransfeld fd9a2abd29 remove wrong comment, fixed
SVN revision: 56919
2011-02-10 14:41:36 +00:00
Sebastian Dransfeld 5212c1bdb7 TODO--
Fixed

SVN revision: 56918
2011-02-10 14:37:59 +00:00
Sebastian Dransfeld b17640ba62 Pass dirs to desktop cache process as arguments
And store the extra dirs in the desktop eet cache.

SVN revision: 56910
2011-02-10 14:25:23 +00:00
Sebastian Dransfeld c5669b308e Fix memleak in desktop cache create
SVN revision: 56909
2011-02-10 14:25:13 +00:00
Sebastian Dransfeld 68c11a1c76 check >= to close fd
SVN revision: 56855
2011-02-09 17:09:49 +00:00
Sebastian Dransfeld c49d6dd5c4 Set file owner to calling user
This fixes cache problems when running programs utilizing efreet with
sudo.

SVN revision: 56787
2011-02-07 21:33:33 +00:00
Sebastian Dransfeld 886a338b94 Move lock creation to own function for cache
SVN revision: 56786
2011-02-07 21:33:22 +00:00
Sebastian Dransfeld 918f284b38 Do init efreet before using efreet_*() functions
SVN revision: 56785
2011-02-07 21:33:11 +00:00
Sebastian Dransfeld 711b6b10a0 Don't create cache dir several times
SVN revision: 56784
2011-02-07 21:33:01 +00:00
Sebastian Dransfeld 2296007594 Define EFREET_MODULE_LOG_DOM
Must be defined in all files which include efreet_private.h

SVN revision: 56734
2011-02-05 19:56:44 +00:00
Sebastian Dransfeld 83e7cba435 Pass extensions and directories to cache process.
SVN revision: 56666
2011-02-02 22:58:15 +00:00
Sebastian Dransfeld e9d7cce821 Reapply hash cache
And this time update it on new cache

SVN revision: 56638
2011-02-01 21:03:40 +00:00
Sebastian Dransfeld 3bf3e34ff4 Revert local hash cache
SVN revision: 56623
2011-02-01 09:23:05 +00:00
Sebastian Dransfeld ce7def6846 whitespace
SVN revision: 56618
2011-02-01 08:27:53 +00:00
Sebastian Dransfeld 90dcedff5e TODO--
SVN revision: 56604
2011-01-31 11:46:01 +00:00