Commit Graph

177 Commits

Author SHA1 Message Date
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
Sebastian Dransfeld c233e2af8b Return NULL if file does not exist.
SVN revision: 30988
2007-07-26 11:37:23 +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
Nicholas Hughart be190f1117 Adding efreet_desktop_environment_get
SVN revision: 30873
2007-07-17 15:07:59 +00:00
Sebastian Dransfeld 68159d9bdd - Add ref function.
- Don't free Efreet_Desktops on shutdown, this is the responsibility of
  those who do efreet_desktop_get. If we free them here, there will be a
  problem with the events in efreet_util, as the events might try to free
  the Efreet_Desktops during ecore_shutdown.
- Check if the cache exists before trying to remove a Efreet_Desktop, as
  we might try to free a Efreet_Desktop after efreet_shutdown.


SVN revision: 30428
2007-06-22 09:39:58 +00:00
rephorm 2993abfb7d add efreet_type_alias()
SVN revision: 30411
2007-06-20 18:04:26 +00:00
rephorm 166cdf9873 add a function to get desktop commands immediately when no remote uri's are passed in
SVN revision: 30386
2007-06-18 04:26:50 +00:00
Carsten Haitzler e01578f037 allow to load a .desktop file and bypass cache
SVN revision: 30369
2007-06-17 08:29:20 +00:00
Carsten Haitzler 1f4e4934b2 make load time a long long - so we can use the modified time on disk (this will
make it 2038 safe).


SVN revision: 30350
2007-06-17 00:33:39 +00:00
Sebastian Dransfeld 0de6ba55b1 Formatting.
SVN revision: 30330
2007-06-14 18:37:31 +00:00
Carsten Haitzler b784b8142a efreet can actually free icons now... and flush the cache explicitly
SVN revision: 30328
2007-06-14 15:53:02 +00:00
Sebastian Dransfeld fc6aa64ea0 Fix environment set.
Better new buffer value.


SVN revision: 29845
2007-05-04 15:02:55 +00:00
Sebastian Dransfeld 8ec72de321 Use ifdef instead of if for strict spec.
SVN revision: 29338
2007-04-04 10:41:53 +00:00
rephorm 93f19557db export string_list_split/join until we do a proper catgory selector in e
SVN revision: 29215
2007-03-28 18:04:51 +00:00
Sebastian Dransfeld 19c8c5fc7d Set load_time after read.
SVN revision: 29205
2007-03-27 19:50:57 +00:00
Sebastian Dransfeld 0c5a7e8872 Don't reallocate the Efreet_Desktop on re-read
SVN revision: 29204
2007-03-27 19:41:23 +00:00
Sebastian Dransfeld ef78f413da Header cleanup.
SVN revision: 29171
2007-03-26 16:17:40 +00:00
Sebastian Dransfeld 5258345822 Use correct variable when searching for .desktop file.
Don't allow missing .desktop files.


SVN revision: 29055
2007-03-24 22:49:59 +00:00
Sebastian Dransfeld 8311e6db59 Formatting.
SVN revision: 28962
2007-03-23 17:31:01 +00:00
rephorm 9c88e07f13 make sure string is null terminated after char append
SVN revision: 28298
2007-02-09 12:20:49 +00:00
Dan Sinclair 1ebb0bad20 - setup the internal types (APPLICATION, DIRECTORY and LINK) to use the type
registration system


SVN revision: 28257
2007-02-05 21:16:55 +00:00
rephorm bbd63d7f6b allow custom types to register a parse function
SVN revision: 28256
2007-02-05 20:23:31 +00:00
Dan Sinclair 90d1031c0e - allow the app to add custom Types to be matched in the .desktop file.
(e17 uses this for Mount and a few other types)


SVN revision: 28251
2007-02-05 02:06:05 +00:00
Dan Sinclair 04bc09ef9f - unused
SVN revision: 28250
2007-02-05 01:39:46 +00:00
ningerso 9e363d07e9 Initial import of efreet, an implementation of the freedesktop icon and menu
specs.


SVN revision: 28214
2007-02-03 13:05:30 +00:00