Commit Graph

174 Commits

Author SHA1 Message Date
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 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 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
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
Carsten Haitzler d9d11ba836 fixme-- ... my bad! looking at wrong fn! :)
SVN revision: 47598
2010-03-30 12:44:37 +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 44aea1a452 efreet: Remove unneeded flag
SVN revision: 47544
2010-03-28 20:36:37 +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 053190d2f4 sync cache reload between desktop and util
SVN revision: 47513
2010-03-27 19:58:33 +00:00
Sebastian Dransfeld a870815d90 print dangling references
SVN revision: 47509
2010-03-27 19:57:33 +00:00
Sebastian Dransfeld a86ec92bc9 Add listener for cache updates
SVN revision: 47471
2010-03-26 05:33:12 +00:00
Sebastian Dransfeld ef2cb7ab02 Add func to read a .desktop file from disk
SVN revision: 47250
2010-03-15 19:57:57 +00:00
Sebastian Dransfeld a4c63dd80d formatting
SVN revision: 47245
2010-03-15 19:10:51 +00:00
Sebastian Dransfeld 985b7e395a Fix realpath usage
Always use realpath before interacting with the efreet_desktop_cache,
else it wont be consistent.

SVN revision: 47244
2010-03-15 19:08:22 +00:00
Cedric BAIL ddbeb0581c * efreet: Prevent crash due to freed desktop still in cache.
SVN revision: 47235
2010-03-15 13:46:45 +00:00
Sebastian Dransfeld 2f7f718185 Fix?? segv
For some peculiar reason, using ecore_file_realpath here screws with
efreet_menu.

SVN revision: 47224
2010-03-14 20:48:52 +00:00
Sebastian Dransfeld d47cdf8288 fix memleak
Free hash and data pointer when using eet, but not lists

SVN revision: 47183
2010-03-13 19:14:35 +00:00
Sebastian Dransfeld 277365fe1c Don't free data at all from eet
SVN revision: 47179
2010-03-13 18:35:48 +00:00
Sebastian Dransfeld f3b42c4b05 Hi,
I discover a memory leak (an invalid free) in efreet after running some
of the test programs.

Mathieu

SVN revision: 47136
2010-03-11 18:36:31 +00:00
Sebastian Dransfeld 424f67585e formatting
SVN revision: 46960
2010-03-07 20:34:41 +00:00
Sebastian Dransfeld 30c305288f Fix problem with orig_path and rp
We have orig_path, it is set by rp. Only problem is that it was set
after efreet_desktop_read so the error handler would work as it should.
Wrong solution. So now we set orig_path to NULL, so we always can free
rp.

SVN revision: 46880
2010-03-04 21:54:33 +00:00
Carsten Haitzler 33ec010a36 errrr - how about we have a orig_path for a new desktop file eh? there's a
brilliant idea!



SVN revision: 46859
2010-03-04 01:00:06 +00:00
Sebastian Dransfeld 76d630dcc0 TODO
SVN revision: 46848
2010-03-03 22:11:06 +00:00
Sebastian Dransfeld 22a691b5e9 Assign rp to orig_path after last goto error
This will fix the double free problem

SVN revision: 46841
2010-03-03 20:13:13 +00:00
Sebastian Dransfeld 7a07bed86c Clarify difference between _get and _new
efreet_desktop_get for long living cached structs, efreet_desktop_new
for shortlived non cached.

SVN revision: 46840
2010-03-03 19:42:38 +00:00
Sebastian Dransfeld afb2a67c50 Create func to get name for cache dirs file
SVN revision: 46834
2010-03-03 12:29:09 +00:00
Sebastian Dransfeld d07a67ad63 Store unknown .desktop file dirs
SVN revision: 46829
2010-03-03 12:28:21 +00:00
Christopher Michael 4177422a6b Temporary stop-gap for E17 crashing when Applications menu is trying to
show.

(I know, not an ideal fix, but I don't know the code well enough...and
this is better than everyone's desktop dying.)



SVN revision: 46810
2010-03-03 02:24:26 +00:00
Sebastian Dransfeld 6d10aea822 Use realpath to clean path
SVN revision: 46801
2010-03-02 20:07:41 +00:00
Sebastian Dransfeld d99f80aff7 Fix compiler warnings
Found when compiling with --enable-tests and --enable-coverage

SVN revision: 46746
2010-03-01 21:43:59 +00:00
Sebastian Dransfeld 8b0e9907b6 Empty cache is probable, so don't check for it
SVN revision: 46736
2010-03-01 19:58:23 +00:00
Sebastian Dransfeld 9eda1bb218 TODO++
SVN revision: 46731
2010-03-01 19:05:59 +00:00
Sebastian Dransfeld f72d4f9342 Eet cache for efreet desktop
SVN revision: 46726
2010-03-01 18:16:32 +00:00
Sebastian Dransfeld 0423e1ea99 Formatting
SVN revision: 45865
2010-02-04 09:12:35 +00:00
Sebastian Dransfeld d3419db6cd Ecore_Str.h -> Eina
SVN revision: 45741
2010-01-30 22:13:16 +00:00
Sebastian Dransfeld 96a20ffd91 Update to spec 1.1
%n, %N, %d and %D is deprecated, and version is string

SVN revision: 45532
2010-01-24 21:21:27 +00:00
David Walter Seikel 060ec41809 Make it compile again.
SVN revision: 44905
2010-01-05 02:15:41 +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
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
Vincent Torri 1403d26dce remoove unused variables
SVN revision: 42877
2009-10-04 22:28:12 +00:00
Cedric BAIL 05126826a3 * efreet: Use eina_log.
Patch from Matthieu.


SVN revision: 42599
2009-09-21 16:36:29 +00:00
Gustavo Sverzut Barbieri 992936af22 Update to match new EINA init/shutdown.
SVN revision: 42301
2009-09-06 22:23:04 +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
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
Carsten Haitzler e50d237d83 more patches...
SVN revision: 40669
2009-05-15 11:47:39 +00:00
Mike Frysinger 81b053c046 include Ecore.h for ecore_exe_run prototype
SVN revision: 40431
2009-04-28 05:39:22 +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
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
Vincent Torri 908a722bfa more leak fixes
SVN revision: 39650
2009-03-23 12:19:31 +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
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
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
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
Cedric BAIL 01befd2b67 Switch ecore_strings to eina_stringshare.
SVN revision: 36676
2008-10-15 14:48:03 +00:00
Davide Andreoli f438c7eb9a * Fix Doxy warnings
SVN revision: 35307
2008-08-02 21:48:44 +00:00
Sebastian Dransfeld 2daf954148 Fix single quouting, patch from ���������� ����������
SVN revision: 35013
2008-07-06 14:06:31 +00:00
Dan Sinclair a81974fe1f - patch from Michael <sECuRE+e17 at twice-irc dot de> to fix possible mem
leak in efreet_desktop


SVN revision: 34050
2008-03-18 04:01:41 +00:00
Sebastian Dransfeld 0fdd25e671 TODO++
SVN revision: 33833
2008-02-24 19:20:08 +00:00
Sebastian Dransfeld cbe6386bc4 Fix callback to match changed function prototype.
SVN revision: 33831
2008-02-24 19:12:49 +00:00
Carsten Haitzler e6694ca7b4 fix doxy
SVN revision: 33798
2008-02-20 15:39:03 +00:00
Carsten Haitzler d522fc9e09 return the void pointer return val from the run cb - not just 1 or 0 :) a
superset here...


SVN revision: 33793
2008-02-20 04:10:02 +00:00
Carsten Haitzler c1441e1c3a e:
1. configure/build changes to allow cross-compiling painlessly
2. pager module namespace changes - this was still dirty afdter the namespace
cleanup, so clean it up
3. add a powersave subsystem - doesnt have an "automatic" way to turn on and
off right now, this i think is best provided by modules (that do things like
monitor acpi status's (eg close lid of laptop), AC power status etc. etc.
this allows e to nicely defer "power" expensive actions to avoid disk
spinups etc.
4. move to use the new ecore poller system  - discussed long ago as part of
power management/saving issues. now it exists
5. add a canvas idle flush call that helsp cope with the new shm greedy
software x11 engine stuff
6. use the new powersave subsystem where appropriate
7. fix non-zeroed/initted memory access in e_fm_main
8. fix mem leak for e menus
9. remove ipc handlers for changed/removed config values
10. use animaotr not timer for menu scrolls - then menu scrolls obey the fps
config
11. fix up timer/poll happienss of cursor idle stuff
12. remove avoid damage from popups for now - causing problems
13. change battery and temp readouts to b e shorter so they fit
14. pager can emit signals on focus change for mini-windows now
15. temperature module now uses a slave process and uses stdin/out to talk to
it and get output - this makes e smoother as in my expereicne i found getting
the temp on my laptop actually took like 200ms so e "hang" for 200ms while
reading the acpi files - so now the subprocess does it and just writesa back
to e when it gets it.

ecore:
1. add ecore_pollers. see the documentation on them in doxygen comments :)
2. fix timers to only go off when they have to - bug there that made e's
select time out a LOT more than it needed to. defensive coding hid the
problem. now fixed. e should be much more power friendly now.
3. formatting/niceness in ecore_exe stuff
4. some comments on comments with SIGIO ideas vs. select
5. add call to be able to add an idle enterer at the start of the list of
them, not just the end (as has been the default)
6. fix ecore_evas to support auto evas idler calls after 0.5 secs of idle in
all canvases - and to do it right
7. if argb destination - set the shape EVENT shape (to mask out events in
transparent regions much like shape does withotu translucency)
8. in ecore_x add support for the event shape

evas:
1. fix cache to work properly and not just always fill up (as it seemed to
like to think cahce useage dropped below 0 when it didnt and thus just
over-fill)
2. software x11 engine now ONLY uses shm segments - no ximages over the
socket. this ximage hack was there to avoid the 2 round trips involved in
setting up an shm image - now i mitigated that wih an shm image cache pool.
it keeps shm images around and repurposes them for new update regions if
appropriate. this means many fewer shm creates (about 1/100th the number) and
since we recycle the memory less 0 memory page filling by the kernel - in the
end, i recorded about a 10-20% speedup over the old software x11 engine.
simple tests i have seen up to 120% speedups. idle flush now does something -
it frees all the cached shm segments. it has a hard-coded limit of 4mb worth
of shm segments (or 32 segments - whichever comes first) to keep around. once
can never complain much about speedups methinks :). also evas will defer sync
until the NEXT frame is written - this means evas can calculate the next
frame of data while x dma's/copies the images to the screen at the same time
(if you hve a dual core or multi-cpu machnike or your xserver is able to use
DMA to copy image data to the screen/video ram then this should see a decent
speedup).


SVN revision: 33448
2008-01-11 07:33:57 +00:00
Sebastian Dransfeld ae3b4b9d18 Store X- keys
SVN revision: 32836
2007-11-23 06:57:39 +00:00
Carsten Haitzler d9a541eade build it if spec is sloppy - which is it by default
SVN revision: 32731
2007-11-16 04:55:40 +00:00
Carsten Haitzler ff7e1f0a92 makes efreet more forgiving of bad .desktops. we spew out a warning though.
SVN revision: 32729
2007-11-16 02:35:01 +00:00
Carsten Haitzler eece802ba4 export those funcs! used by e.
SVN revision: 32350
2007-11-04 12:29:36 +00:00
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 fdd316902d Temporarily fix SEGV when deleting .desktop files from disk.
SVN revision: 31717
2007-09-14 23:15:41 +00:00
doursse 6a7494bba7 remove trailing spaces
SVN revision: 31638
2007-09-06 16:15:10 +00:00