Commit Graph

152 Commits

Author SHA1 Message Date
Sebastian Dransfeld d15dcd181c EAPI
SVN revision: 32339
2007-11-04 09:32:35 +00:00
Sebastian Dransfeld 193bdf421f Now that users of efreet_desktop must free their references, this is no
longer needed.


SVN revision: 31865
2007-09-29 13:24:31 +00:00
Sebastian Dransfeld ee2d0762f4 Check for data size. Should be done throught the whole function!
SVN revision: 31723
2007-09-15 09:51:19 +00:00
Sebastian Dransfeld fdd316902d Temporarily fix SEGV when deleting .desktop files from disk.
SVN revision: 31717
2007-09-14 23:15:41 +00:00
Sebastian Dransfeld 9506bc06df Revert erronous changes.
SVN revision: 31716
2007-09-14 22:22:29 +00:00
doursse 6a7494bba7 remove trailing spaces
SVN revision: 31638
2007-09-06 16:15:10 +00:00
doursse 5209a42671 in efreet_ini_parse:
* move the opening of the file after the creation of the hash table and
  return it on failure
* return NULL when the hash table can not be created
* add the binary flag when opening a file for compatibility with Windows

in efreet_new, return NULL when efreet_ini_parse returns NULL (mem alloc
failure)


SVN revision: 31637
2007-09-06 16:05:35 +00:00
Nicholas Hughart 0ca23c712f Newline
SVN revision: 31630
2007-09-05 22:27:01 +00:00
Nicholas Hughart f6ce8ff6ad Add missing lib link for efreet_mime
SVN revision: 31628
2007-09-05 22:24:13 +00:00
Peter Wehrfritz 9ed7b18db2 ecore_list_remove_last -> ecore_list_last_remove
SVN revision: 31410
2007-08-19 19:36:53 +00:00
Sebastian Dransfeld 8e3509c4e0 Add recently used icon cache.
SVN revision: 31316
2007-08-15 05:33:04 +00:00
Sebastian Dransfeld f619a05536 Fix const warnings.
SVN revision: 31293
2007-08-13 05:36:03 +00:00
Sebastian Dransfeld b9c551c57d formatting
SVN revision: 31292
2007-08-13 05:33:26 +00:00
Sebastian Dransfeld b3e01bb957 Formatting
SVN revision: 31271
2007-08-12 19:28:02 +00:00
Sebastian Dransfeld 399d1a5c1b Formatting.
SVN revision: 31269
2007-08-12 19:18:16 +00:00
Carsten Haitzler 2f35dd7ab3 only check ext.. if there is one!
SVN revision: 31265
2007-08-12 11:14:56 +00:00
Carsten Haitzler 6b0688752a and for the picky - there's less copies for tolowoer. i also saw some BAD BAD
leaks. bad! alloc pointer but not freeing them! also fixed up #include of
alloca.h if needed.


SVN revision: 31260
2007-08-12 10:00:02 +00:00
Carsten Haitzler 492e5f9644 externsion checks should be case-insensitve.
SVN revision: 31245
2007-08-11 13:20:16 +00:00
Sebastian Dransfeld d2db2be7df more ref/free work.
SVN revision: 30998
2007-07-26 22:04:16 +00:00
Sebastian Dransfeld df7fa7571a Only need to assign ->desktop when ->directory exists.
SVN revision: 30997
2007-07-26 21:43:43 +00:00
Sebastian Dransfeld f5a9f79140 More ref/free work.
SVN revision: 30995
2007-07-26 19:14:41 +00:00
Sebastian Dransfeld 2c191f2cae efreet_desktop_free after efreet_desktop_get
SVN revision: 30989
2007-07-26 11:40:04 +00:00
Sebastian Dransfeld c233e2af8b Return NULL if file does not exist.
SVN revision: 30988
2007-07-26 11:37:23 +00:00
Sebastian Dransfeld 3b116f3a2b Remove the icon cache.
This means that users of efreet_icon_list_find, efreet_icon_path_find and
efreet_icon_find must clean up after themselves!


SVN revision: 30986
2007-07-26 11:30:10 +00:00
Sebastian Dransfeld 4142475b16 All pointers aquired with efreet_desktop_get should be free'd with
efreet_desktop_free now.


SVN revision: 30982
2007-07-26 10:20:24 +00:00
Peter Wehrfritz cd20fbc9d9 *API BREAK* see the discussion in the mailing list. misc and e_modules will follow
SVN revision: 30970
2007-07-25 17:01:04 +00:00
Dan Sinclair 6d48fb4e38 - efreet_init will call efreet_icon_init so there is no reason to do the
call again


SVN revision: 30905
2007-07-19 14:56:35 +00:00
Dan Sinclair 71da5f4639 - guard the efreet_icon init/shutdown methods as efreet_mime is calling it
internally


SVN revision: 30904
2007-07-19 14:54:51 +00:00
Nicholas Hughart 0a4d1e3605 Added efreet_mime_type_icon_get which will retrieve a mimetype icon. This follows the loose specification described in the fdo icon spec. Also added efreet_icon_list_find which will search for a list of icons in a theme before falling back to inherited themes. Also made a slight modification to the fallback detection for efreet_mime. Tabs will no longer trigger the return of application/octet-stream.
SVN revision: 30875
2007-07-17 19:21:20 +00:00
Nicholas Hughart be190f1117 Adding efreet_desktop_environment_get
SVN revision: 30873
2007-07-17 15:07:59 +00:00
codewarrior 61b09fd882 no need to work on a file if its empty. speeds things up a hell of a lot.
SVN revision: 30803
2007-07-13 23:23:13 +00:00
Carsten Haitzler 78408fe60a 1. fix a lot of things so they pass make distcheck - so many things have
broken. guys - need to be more careful!
2. asparagus
3. some extra docs/comments for evas


SVN revision: 30696
2007-07-10 00:13:26 +00:00
Nicholas Hughart 5f4e0e936e API update. Now you have more control over which methods are used to check for a type by using the efreet_mime_*_type_get functions. Also vastly increased the speed of the glob checking.
SVN revision: 30612
2007-07-06 03:01:21 +00:00
Nicholas Hughart 7a470acd75 No debugging
SVN revision: 30593
2007-07-04 15:46:19 +00:00
Nicholas Hughart 4e6ce1caf5 This should work now for big endian.
SVN revision: 30592
2007-07-04 15:29:29 +00:00
Dan Sinclair 1a14377b08 - hm, change this back...
SVN revision: 30587
2007-07-04 03:00:46 +00:00
Dan Sinclair 54f06c5e70 - formatting
SVN revision: 30580
2007-07-03 18:01:56 +00:00
Nicholas Hughart 93d3922d79 Added fallback mime types according to the spec. Should only get a NULL return when the file doesn't exist.
SVN revision: 30579
2007-07-03 17:55:20 +00:00
Dan Sinclair 0445f933df - stop losing the last mime
SVN revision: 30578
2007-07-03 16:22:17 +00:00
Dan Sinclair d1cd6e6710 - remove debug
SVN revision: 30577
2007-07-03 16:15:51 +00:00
Dan Sinclair 8c156ad2fc - update the magic parser to use mmap. fixes earlier hack
SVN revision: 30576
2007-07-03 16:10:30 +00:00
Dan Sinclair 0cf64dd8fd - this is a hack but keeps it from segv'ing if the delimiter is split over a
buffer read


SVN revision: 30571
2007-07-03 14:12:12 +00:00
Dan Sinclair 7176001239 - cleanup
SVN revision: 30570
2007-07-03 13:59:40 +00:00
rephorm 150d857e6f plug last leak
SVN revision: 30569
2007-07-03 13:41:44 +00:00
Nicholas Hughart 94b2f0a24f Fixed almost all the leaks. One minor one is still lingering that I can't quite figure out.
SVN revision: 30555
2007-07-03 05:46:54 +00:00
Nicholas Hughart f9727d47ae Updated quite a bit. API break: efreet_mime_get is now efreet_mime_type_get and it no longer accepts methods as a parameter. It will do the full check of the magic and glob rules based on recommendations in the spec. Also fixed the major leaks, still a few minor ones left.
SVN revision: 30553
2007-07-03 04:47:29 +00:00
Dan Sinclair d43f40e6c7 - simplify the monitor code. still gets spanked on shutdown for some reason
SVN revision: 30546
2007-07-02 22:01:44 +00:00
Dan Sinclair 563d1a104e - oops, though I'd compiled that....
SVN revision: 30545
2007-07-02 20:16:23 +00:00
Dan Sinclair 5406ab673f - formatting
- simplify a couple routines
- make the magic loading not loop infinitly on big endian


SVN revision: 30544
2007-07-02 20:08:35 +00:00
Dan Sinclair 5e87a2a846 - cleanup
SVN revision: 30520
2007-07-01 16:32:34 +00:00