Commit Graph

318 Commits

Author SHA1 Message Date
Sebastian Dransfeld 362ef26c2d remove Ecore_Data
SVN revision: 45218
2010-01-16 13:43:28 +00:00
Christopher Michael 7c0e622466 Make efreet compile again.
SVN revision: 45206
2010-01-16 05:22:24 +00:00
Sebastian Dransfeld 0903a5be95 Add ()
SVN revision: 45200
2010-01-15 20:51:34 +00:00
Sebastian Dransfeld af22e351b2 Fix compiler warnings
SVN revision: 45199
2010-01-15 20:51:23 +00:00
Massimiliano Calamelli bc2a1db660 Added two missing inclusions of limits.h, fix build in NetBSD5
SVN revision: 45026
2010-01-10 22:42:34 +00:00
David Walter Seikel 060ec41809 Make it compile again.
SVN revision: 44905
2010-01-05 02:15:41 +00:00
Gustavo Sverzut Barbieri 1979834385 PATH_MAX checks and fixes, by Lutin.
SVN revision: 44900
2010-01-04 23:11:15 +00:00
Christopher Michael 56ec4c946f When using snprintf or fgets, etc, do not use PATH_MAX directly as the size
of the variable...use sizeof() compiler directive (lots of these).

Do not free 'realpath' in efreet_menu if we are going to try and print out
it's value.

If we find 'realpath' in the merged_menus hash, and we are going to return,
then free the realpath variable.



SVN revision: 44699
2009-12-23 20:55:23 +00:00
Iván Briano 52468a9940 Fix to new Ecore API
SVN revision: 43685
2009-11-13 23:59:46 +00:00
Davide Andreoli a59b9655b2 *Efreet_Ini: Add a new API call:
EAPI void efreet_ini_key_unset(Efreet_Ini *ini, const char *key);

With this you can remove keys from ini files



SVN revision: 43245
2009-10-24 09:23:51 +00:00
Davide Andreoli c9533023ad Efreet_ini: remove ending withespaces
SVN revision: 43244
2009-10-24 09:02:56 +00:00
Carsten Haitzler ccec2fb8a4 fix xml init - called multilpe times, has no count for init + shutdown.
SVN revision: 43222
2009-10-23 00:01:15 +00:00
Vincent Torri 285297dcdd * API break: _shutdown() functions return an int, now
* simplify a bit and fix init/shutdown functions



SVN revision: 42996
2009-10-10 06:19:13 +00:00
Cedric BAIL 703fb37368 * efreet: Prevent div by zero.
SVN revision: 42940
2009-10-07 12:57:13 +00:00
Vincent Torri 1403d26dce remoove unused variables
SVN revision: 42877
2009-10-04 22:28:12 +00:00
Vincent Torri 4c05580f59 cleanup
SVN revision: 42876
2009-10-04 22:27:03 +00:00
Hannes Janetzek 6a9f924640 patch from dfjoerg: search also pixmap dirs for icons
SVN revision: 42875
2009-10-04 21:55:13 +00:00
Cedric BAIL 05126826a3 * efreet: Use eina_log.
Patch from Matthieu.


SVN revision: 42599
2009-09-21 16:36:29 +00:00
Davide Andreoli 5f6ba77546 Don't segfault if 'icon' is null
SVN revision: 42490
2009-09-14 20:18:25 +00:00
Carsten Haitzler 0b8f43494a moe enume typedefs together. typedef before enum is bad for some compilrs...
like g++.. or suncc... dod so in all headers anyay for consistency



SVN revision: 42477
2009-09-14 00:38:59 +00:00
Hannes Janetzek 51fd74a36f efreet_mime add fallback check for executables
SVN revision: 42474
2009-09-14 00:28:51 +00:00
Gustavo Sverzut Barbieri 992936af22 Update to match new EINA init/shutdown.
SVN revision: 42301
2009-09-06 22:23:04 +00:00
Vincent Torri 2e38151ed8 formatting
SVN revision: 42084
2009-08-29 05:29:05 +00:00
Gustavo Sverzut Barbieri 85c2e25399 have efreet to match x-generic as well, requested by jeffdameth.
SVN revision: 41907
2009-08-21 03:03:59 +00:00
Gustavo Sverzut Barbieri 4faa46cab3 Efreet_Mime: bugfix for magic matching.
Efreet_Mime did not match last set of magics for given mime-type due to
missing check after the loop. This bug was partially masked by the
problem fixed in my previous patch.

By: Mikhail Gusarov


SVN revision: 41305
2009-07-11 14:26:53 +00:00
Gustavo Sverzut Barbieri 9aef9f5eca Efreet_Mime: fix subrules with non-zero depth.
Hello,

I've fixed a bug in parsing magic file in Efreet_Mime: if some magic
rule has a subrule with non-zero depth, then the 0 depth is used instead
for subrule. This led to nonsense like all .xml documents matched as
application/docbook+xml.

By: Mikhail Gusarov


SVN revision: 41304
2009-07-11 14:23:36 +00:00
Gustavo Sverzut Barbieri eac66d4e5a proper cleanup of efreet_desktop_command.
Efreet API is BRAIN NUTS, some stuff you're supposed to release (list)
and others are up to the callback to release.

Okay, I broke e17 trying to fix efreet tests. API is so inconsistent
that its own test was wrong. I'm reverting my change and fix the test,
but this is bad.



SVN revision: 41133
2009-06-20 19:07:31 +00:00
Vincent Torri b9d313774f * Allow some tests to pass on Windows. Just for the fun
* More important, allow to manage correctly the icons with
   efreet on Windows. It works with Tango (and ewl, now)


SVN revision: 41130
2009-06-20 16:18:17 +00:00
Gustavo Sverzut Barbieri 44d66495ca more valgrind fixes on efreet.
SVN revision: 41121
2009-06-20 06:50:01 +00:00
Gustavo Sverzut Barbieri 3871aed422 free some leaks reported by valgrind in src/bin tests.
SVN revision: 41117
2009-06-20 06:19:48 +00:00
Gustavo Sverzut Barbieri ebeee4b5ce we use lists, need to init/shutdown eina_list or we get segvs.
SVN revision: 41115
2009-06-20 05:53:26 +00:00
Gustavo Sverzut Barbieri adf5c3553e use new stringshared hash, pointer was being misused since api is confusing.
The pointer type is really confusing, it was expecting pointer to
pointer what is really weird.

Cedric just added a stringshared variant that should be as fast
(removing the strcmp()) and is the api one would expect.

This fix a long standing bug I introduced (sorry!) when added the
cache, but it was bit hard to hit as if you didn't find a collision
you'd be adding to cache and never finding it. But I recently started
to use icons on desktop and for some weird reason the PDF icons
started to show in TAR :-P



SVN revision: 41113
2009-06-19 15:00:38 +00:00
Vincent Torri 54b27e4edc * DATADIR is used in a Windows directory. Use PACKAGE_DATA_DIR instead
* useless Evil.h inclusion


SVN revision: 41084
2009-06-17 16:07:29 +00:00
Carsten Haitzler 2cf2ffd88b patch from dfjoerg - fix prefix handling for eet.
SVN revision: 41031
2009-06-14 20:13:58 +00:00
Carsten Haitzler e50d237d83 more patches...
SVN revision: 40669
2009-05-15 11:47:39 +00:00
Massimiliano Calamelli 31c77f7844 Added #define _POSIX_HOST_NAME_MAX for OSes that don't know it (NetBSD in detail)
SVN revision: 40444
2009-04-28 15:49:45 +00:00
Mike Frysinger 81b053c046 include Ecore.h for ecore_exe_run prototype
SVN revision: 40431
2009-04-28 05:39:22 +00:00
Carsten Haitzler ae44cac932 revert patch - no-undefined already there.
SVN revision: 40319
2009-04-23 04:07:59 +00:00
booleanlabel 51dc49dbee From: booleanlabel@gmail.com
cygwin fixes.



SVN revision: 40301
2009-04-23 01:09:01 +00:00
Vincent Torri c634a197b4 fix eina_list_remove use
SVN revision: 40263
2009-04-21 08:09:39 +00:00
Vincent Torri 361f682833 typo
SVN revision: 40260
2009-04-21 06:16:19 +00:00
Vincent Torri 1bf086809e * move header files in efree_provate.h to the source files
* fix compilation on Windows XP (not sure that Windows CE port is needed...)

note that, as ecore_exe is not available on Windows, some code have
been disables for that platform in src/lib/efreet_desktop.c. Also, a new Evil
version should be used (not in svn yet)

The compilation on Windows is needed for Ewl (icon and mime)



SVN revision: 40257
2009-04-20 23:20:40 +00:00
Carsten Haitzler ce5a59b7e5 lutin... release soname patch. verbose svn soname used right now
SVN revision: 40131
2009-04-17 10:01:45 +00:00
Luis Felipe Strano Moraes 37ff2edaff Cleanup of clang's static analyzer warnings for efreet.
SVN revision: 40114
2009-04-16 17:45:57 +00:00
Vincent Torri 45e1663dab * fix pkg-config requirements
* fix a bit the autotools


SVN revision: 39754
2009-03-27 11:29:20 +00:00
Vincent Torri 312a4365b8 fix header files
SVN revision: 39752
2009-03-27 11:14:21 +00:00
Cedric BAIL 8a8b4ca2d1 * efreet: On STRICT_SPEC don't handle efreet_menu_file.
SVN revision: 39732
2009-03-26 18:02:17 +00:00
Cedric BAIL 81ee186382 * efreet: Use the right macro for the cast.
SVN revision: 39731
2009-03-26 17:56:51 +00:00
Cedric BAIL 7e6af0a5c1 * efreet: Remove ecore_dlist from Efreet.
SVN revision: 39730
2009-03-26 17:54:50 +00:00
Carsten Haitzler 34822db882 menu segv fix! my bad! overzealous freeing
SVN revision: 39653
2009-03-23 13:16:10 +00:00
Vincent Torri 908a722bfa more leak fixes
SVN revision: 39650
2009-03-23 12:19:31 +00:00
Carsten Haitzler ddb11ee846 leaks--! this code is riddled with leaks! really really bad!
SVN revision: 39647
2009-03-23 10:27:54 +00:00
Vincent Torri a7dfd144ac formatting
SVN revision: 39643
2009-03-23 04:58:31 +00:00
Gustavo Sverzut Barbieri 122566bac4 fix efreet signedness issues.
char is unsigned on ARM and other platforms, force some types to be
signed as they can hold negative values.

By: Albin Tonnerre


SVN revision: 39610
2009-03-21 17:00:55 +00:00
Carsten Haitzler 9e5c641263 and somewhere.. someone broke system settings and efreet hashes of categories!
SVN revision: 39570
2009-03-19 04:29:31 +00:00
Sebastian Dransfeld 5378f8d4d6 Check whether the found item is a directory.
SVN revision: 39524
2009-03-17 13:42:21 +00:00
Gustavo Sverzut Barbieri ba1e67fcd8 Add LRU to mime icons cache.
This should really remove unused items that would age forever in the
last, forcing old but not so to be evicted before them.

Fortunately it was not so complex to add, and should wait just 3
pointers more of space per node.


SVN revision: 39350
2009-03-03 22:38:21 +00:00
Gustavo Sverzut Barbieri 200c92f82a efreet mime types icon cache.
This cache is very simple and should work fine when system does not
change, it keeps a direct association of mime-types and found icons,
remembering theme and icon size. Search is very fast since it uses
stringshared strings and thus direct pointer comparison in hash
search. We could optimize it even more if we assumed stringshared
strings to come in, so no need to eina_stringshare_add() (which is a
hash per se), using just eina_stringshare_ref().

Cache population is limited to compile-time value and just values
older than a given threshold are deleted. I do not keep a LRU explicit
list, so you might have some old but unused items always alive. I
don't find this too bad, sure it will consume more memory, but will
not hurt performance. We can change this to purge all expired items by
not checking for number of items to remove, removing all that match.

Next I plan to find out a good way to cache and speed up file->mime
discovery. I plan to do auto-generated state-machine to match
extensions, so you don't need to check the same extension character
more than once. Example:

   Input: bla.edc
   Extensions: edc edj eps png bmp

It would first try to match against 'e', 'p' and 'b'. It will match
'e' and then check for 'd' (edc or edj) or 'p' (eps). It will match
'd' and then check for 'c' or 'j'. This will reduce number of
comparisons considerably.

As I'm running out of time (4am, not much time left on this month), I
could use some help here.



SVN revision: 39343
2009-03-03 07:20:21 +00:00
Gustavo Sverzut Barbieri ab2e35127f Fix most compiler & clang warnings.
Left warnings regarding signed and unsigned comparison since
eina_list_count() returns unsigned, can use a cast in this return, but
not big deal for now.


By: Luis Felipe Strano Moraes & myself.



SVN revision: 39260
2009-02-26 22:35:38 +00:00
Cedric BAIL 452695bd6c * efreet: Fix opening file.
SVN revision: 39246
2009-02-26 16:14:22 +00:00
Gustavo Sverzut Barbieri 2bcea93a7c Fix port to eina_list.
* efreet_desktop_command_build(): should consider the first
   run. Before had a "first" toggle variable, which vanished with eina
   port. I changed it to do {} while (), making it work again.

 * exec string is already freed by callback (in e_exec.c), to keep old
   behavior, just free the list with eina_list_free(). Just pay
   attention to ecore_list and double check if they had a free
   function set or not. If it didn't, then we should not free nodes!



SVN revision: 39228
2009-02-26 03:56:21 +00:00
Carsten Haitzler 7646b3e4af fix custom icon dirs api so u CAN add to the icon dirs!
SVN revision: 39226
2009-02-26 03:46:35 +00:00
Cedric BAIL 7e64baf165 * efreet: Prevent crash when no Efreet_Desktop are found.
SVN revision: 39214
2009-02-25 17:40:40 +00:00
Cedric BAIL 0b41f0e138 * efreet: Fix previously broken efreet cache.
SVN revision: 39211
2009-02-25 16:46:51 +00:00
Cedric BAIL 6978e98dc6 * estickies,
* etk,
	* PROTO/exalt,
	* E-MODULES-EXTRA/diskio,
	* E-MODULES-EXTRA/drawer,
	* E-MODULES-EXTRA/penguins,
	* E-MODULES-EXTRA/slideshow,
	* E-MODULES-EXTRA/mail,
	* E-MODULES-EXTRA/forecasts,
	* E-MODULES-EXTRA/iiirk,
	* E-MODULES-EXTRA/places,
	* e,
	* ewl,
	* ecore,
	* elitaire,
	* entrance,
	* e_dbus,
	* efreet: Here we go, move from Ecore_List to Eina_List.

	NOTE: This patch is huge, I did test it a lot, and I hope nothing is
	broken. But if you think something change after this commit, please
	contact me ASAP.


SVN revision: 39200
2009-02-25 11:03:47 +00:00
Gustavo Sverzut Barbieri 24328d9738 Fix problems reported by some C++ compilers.
SVN revision: 38975
2009-02-09 01:11:27 +00:00
Carsten Haitzler b00bae1d92 a really simple hash cache for icon finds - this massively makes stuff faster
for app dialogs etc. yes - it uses ram. thats next - make it leaner on ram
usage. its simple enough now where that shouldnt be a problem.



SVN revision: 38839
2009-01-29 07:36:58 +00:00
Cedric BAIL 35540b3a3b This commit is huge. I did test it a lot on my computer, and it run fine here.
But is so big i fear i could have broken some piece of code. So report any wrong
behaviour to me (cedric on #edevelop).

So moving e17 and efreet to eina_hash. With a little efreet API break so they
must come together.


SVN revision: 38185
2008-12-17 15:33:43 +00:00
Sebastian Dransfeld 1de2e74d74 Adding missing Name entry in efreet_menu.
Add fix from Massimiliano Calamelli.

SVN revision: 38153
2008-12-15 20:23:24 +00:00
Sebastian Dransfeld 82c1c80632 Only save menu element name if it exists.
SVN revision: 38131
2008-12-13 21:00:49 +00:00
Gustavo Sverzut Barbieri d5f5e6eb55 src/bin/ stuff uses it, so these symbols must be exported.
SVN revision: 37634
2008-11-14 20:22:03 +00:00
Sebastian Dransfeld b41023437d Remove warning by adding parentheses.
SVN revision: 37167
2008-10-26 20:05:46 +00:00
Sebastian Dransfeld b439133578 Don't compile in unused code.
SVN revision: 37166
2008-10-26 20:05:34 +00:00
Carsten Haitzler 1065c6298a support setting the default menu explicitly.
SVN revision: 37098
2008-10-25 15:06:31 +00:00
Cedric BAIL 02bf306fdd Remove macro provided by Eina.
SVN revision: 36863
2008-10-20 16:34:59 +00:00
Cedric BAIL 01befd2b67 Switch ecore_strings to eina_stringshare.
SVN revision: 36676
2008-10-15 14:48:03 +00:00
Cedric BAIL b6a71c63e6 Make efreet depend on eina. No change in the code yet, so just fix your build system and no bug must show up.
SVN revision: 36625
2008-10-13 16:00:19 +00:00
Carsten Haitzler 0e1ee5edb7 add null theme check
SVN revision: 35658
2008-08-25 09:14:13 +00:00
Sebastian Dransfeld 77cb8587de define (void *)-1 as a macro
SVN revision: 35574
2008-08-19 06:32:40 +00:00
Sebastian Dransfeld bfb18778e2 Pass icon size as unsigned int.
SVN revision: 35490
2008-08-14 20:48:41 +00:00
Sebastian Dransfeld e52e71e475 Do atoi only once for each query.
SVN revision: 35489
2008-08-14 20:02:07 +00:00
Sebastian Dransfeld 7ee9598bd2 Make the icon cache work for efreet_icon_list_find.
SVN revision: 35488
2008-08-14 19:47:48 +00:00
Sebastian Dransfeld 25c29b62a3 ignore missing icons for 5 seconds.
SVN revision: 35480
2008-08-14 16:59:41 +00:00
Davide Andreoli 71e9fe89e9 Move Efreet_Uri stuff on the proper file. We can now use this in e instead of the internal one.
SVN revision: 35312
2008-08-03 00:07:17 +00:00
Dan Sinclair 5c0aaab8f1 - cleanups
SVN revision: 35309
2008-08-02 22:09:04 +00:00
Davide Andreoli f438c7eb9a * Fix Doxy warnings
SVN revision: 35307
2008-08-02 21:48:44 +00:00
Sebastian Dransfeld e909810628 remove uneeded variable.
SVN revision: 35245
2008-07-29 18:55:41 +00:00
Sebastian Dransfeld 31c9bed503 Reduce the needed amount of ecore_strlcpy.
SVN revision: 35244
2008-07-29 18:52:27 +00:00
Miculcy Brian cf33734edf enable failback when empty localisation string are found
SVN revision: 35184
2008-07-22 13:30:25 +00:00
Sebastian Dransfeld 018b1cae14 FDO Trash.
SVN revision: 35129
2008-07-16 19:45:12 +00:00
Sebastian Dransfeld 2daf954148 Fix single quouting, patch from ���������� ����������
SVN revision: 35013
2008-07-06 14:06:31 +00:00
Carsten Haitzler 43821d36e4 * add efreet garbage data check
* remove printfs that clutter output
* add efreet file type check - only parse regular files
* chekc mmap returns correctly for MAP_FAILED results
* edje has some stubs for adding script-only objecvts - but nothing useful
right now


SVN revision: 34689
2008-05-29 02:00:04 +00:00
Dan Sinclair cecac6f9d6 - add comments
- fix formatting


SVN revision: 34512
2008-05-08 14:22:21 +00:00
Carsten Haitzler 69a1a1a2e0 slackdood seems to report creating new apps is broken. this may be it.
SVN revision: 34508
2008-05-08 07:11:48 +00:00
Dan Sinclair 3322ce3b12 - deal with blank lines outside the invalid file checks
- this fixes the warning about a missing = sign
- you can have a blank value set on a key
  - this fixes the warnings about invalid key=value pairs
- formatting changes


SVN revision: 34496
2008-05-07 04:14:45 +00:00
Dan Sinclair 3624e4e923 - if we can't parse the INI file we can't set ini->data so return NULL
instead of an invalid ini file


SVN revision: 34493
2008-05-07 03:04:58 +00:00
Dan Sinclair 74b5878da7 - fix warnings
SVN revision: 34490
2008-05-07 02:16:50 +00:00
Cedric BAIL 14a01955ef Switch efreet_ini_parse to use mmap instead of fopen. Small speed improvements and little code cleanup.
FIXME: If people wonder we are loosing 50% of efreet time inside ecore_hash_* and ecore_string_*.


SVN revision: 34482
2008-05-06 15:56:40 +00:00
Carsten Haitzler 9e6e6a86e2 efreet segv maker removed. bad unescaping causing segvs! fixxored.
SVN revision: 34445
2008-05-03 09:25:43 +00:00
Sebastian Dransfeld b495b19470 formatting
SVN revision: 34212
2008-04-07 05:52:45 +00:00