Commit Graph

5327 Commits

Author SHA1 Message Date
doursse b02e152b63 do not overwrite eet.c as it has been modified by configure
SVN revision: 34138
2008-03-29 08:25:43 +00:00
doursse 741b44f6e2 remove trailing spaces and factorize Windows detection
SVN revision: 34135
2008-03-29 07:28:18 +00:00
doursse 54c28a5391 add guards when including config.h
SVN revision: 34132
2008-03-28 18:32:09 +00:00
Carsten Haitzler 4efdc2e78d add string.h
SVN revision: 34131
2008-03-28 17:29:22 +00:00
doursse 59a88b9bc8 reorganise header files so that evil is better included. Please test before the release.
SVN revision: 34130
2008-03-28 17:17:43 +00:00
doursse 03527fe2aa * src/lib/Evil.h:
remove the stat structure and add guards
* src/lib/dlfcn/dlfcn.c:
include limits.h also for the cegcc compiler


SVN revision: 34129
2008-03-28 17:05:16 +00:00
Carsten Haitzler 0a0f8904f2 add xtest faking key support.
SVN revision: 34128
2008-03-28 14:38:35 +00:00
Carsten Haitzler 42d262f5f3 up eet to alpha status. see email to e-devel.
SVN revision: 34127
2008-03-28 14:37:29 +00:00
doursse 8e386e3f73 remove trailing spaces
SVN revision: 34101
2008-03-24 08:22:01 +00:00
doursse ede49fdfb0 include correctly alloca.h and use ecore_file_mkpath instead of the local implementation
SVN revision: 34100
2008-03-24 08:09:06 +00:00
Carsten Haitzler cbda36803a fix configure.in - pkgconf
SVN revision: 34098
2008-03-23 16:44:54 +00:00
doursse 2d25da624d * src/lib/Evil.h:
add POSIX definitions
* src/lib/evil.c:
make realpath available with cegcc. The function
just copy the file name to the resolved name with
that compiler


SVN revision: 34097
2008-03-23 14:51:22 +00:00
doursse 4da0f5fa80 define PATH_MAX for cegcc compiler
SVN revision: 34079
2008-03-22 08:35:43 +00:00
doursse ee23c4b248 * make cegcc aware of the _WIN32 macro
* fix warning


SVN revision: 34078
2008-03-22 08:31:38 +00:00
doursse 45e9085e13 linux has a case sensitive fs
SVN revision: 34074
2008-03-22 00:25:07 +00:00
doursse 53c0a2d01d * add evil support and remove evil windows code
* correctly handle alloca include
 * remove trailing spaces


SVN revision: 34072
2008-03-21 17:18:25 +00:00
Gustavo Sverzut Barbieri 7fe7199a0c Minor reorganization of Evas_Object fields.
Move pointer_mode (size 4) before bitfields, leave 'delete_me' as it's
a byte, this still have 2 bits left from unsigned short and another
byte around delete_me to make it grom from 244 bytes.


SVN revision: 34068
2008-03-21 07:13:46 +00:00
Carsten Haitzler f2aeab1bd6 fix some escaping :)
SVN revision: 34066
2008-03-20 21:15:16 +00:00
Carsten Haitzler 2ef004009b fix #ifdef
SVN revision: 34065
2008-03-20 21:13:55 +00:00
Carsten Haitzler 1bc9f155bb and only delete job list if its not null.
SVN revision: 34063
2008-03-20 17:56:41 +00:00
Dan Sinclair 74873d6559 - set the job list to NULL. If this isn't done and we re-init the library (as efreet does during unit testing) the list won't get re-created and crap memory will get freed on the next shutdown
SVN revision: 34058
2008-03-20 02:10:55 +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
Peter Wehrfritz 7f9e3f4cfd remove dangerous casts
SVN revision: 34039
2008-03-16 23:05:50 +00:00
Carsten Haitzler 0dde2578fe cross-compile again...
SVN revision: 34037
2008-03-16 12:17:53 +00:00
Andres Blanc a7f4024a29 I wasted quite some time thanks for ignoring this detail.
SVN revision: 34029
2008-03-15 00:51:45 +00:00
doursse 219831980f * Remove Windows code in evas_module.c and use evilness instead
* Allow Windows Mobile to correctly load dll's
 * Use correct scheme for EAPI on Windows and include config.h when necessary
 * add -mwin32 to compiler flags when compiling with cegcc


SVN revision: 34024
2008-03-14 16:49:49 +00:00
Sebastian Dransfeld 56b68a7ba4 formatting
SVN revision: 34016
2008-03-13 19:08:14 +00:00
Sebastian Dransfeld 3340fba2fb formatting
SVN revision: 34015
2008-03-13 19:01:53 +00:00
doursse 743cff2ced Fix dlopen for cegcc and minor fix and doc:
* INSTALL:
* README:
additional notes for compilations with cegcc or mingw32ce

* configure.ac:
use 'win32' instead of 'cegcc' or 'mingw'

* src/lib/dlfcn/dlfcn.c (dlopen):
cegcc does not support LOAD_WITH_ALTERED_SEARCH_PATH.
Use LoadLibrary instead of LoadLibraryEx in that case.


SVN revision: 34014
2008-03-13 17:46:53 +00:00
Sebastian Dransfeld 1ca9a3d4a5 Fix compiler warnings
SVN revision: 34013
2008-03-13 16:01:35 +00:00
Peter Wehrfritz 1bb6fe82e7 compile again with curl
SVN revision: 34012
2008-03-13 09:26:24 +00:00
Sebastian Dransfeld 00065fd407 Add const
SVN revision: 34011
2008-03-13 06:38:16 +00:00
Sebastian Dransfeld 0c387e3c74 Remove unused variable
SVN revision: 34010
2008-03-13 06:36:50 +00:00
Sebastian Dransfeld a4ad7cb0eb Fix compiler warnings.
SVN revision: 34009
2008-03-13 06:35:57 +00:00
Carsten Haitzler f08234a968 improve build includes.
SVN revision: 33997
2008-03-12 16:32:35 +00:00
Sebastian Dransfeld 9c2e6dcd43 formatting
SVN revision: 33991
2008-03-12 09:48:04 +00:00
Peter Wehrfritz 164190d377 compile on FreeBSD again
SVN revision: 33984
2008-03-11 19:51:32 +00:00
Carsten Haitzler ab9940c2eb try again - missed the wrapping #ifdef
SVN revision: 33983
2008-03-11 10:24:10 +00:00
Michael Jennings 342492d566 Mon Mar 10 22:11:43 2008 Michael Jennings (mej)
Do not force use of pkgconfig to detect SDL -- supported versions of
SDL (1.2.0) did not ship with pkgconfig support.

Do not use PKG_CHECK_EXISTS as it is not available in older pkgconfig
releases.
----------------------------------------------------------------------


SVN revision: 33981
2008-03-11 05:12:47 +00:00
Carsten Haitzler 7a53260b55 build again if no curl there.
SVN revision: 33980
2008-03-11 03:38:22 +00:00
Michael Jennings cbe71c7569 Mon Mar 10 19:25:39 2008 Michael Jennings (mej)
Do not require bleeding-edge autoFUCK tools.
----------------------------------------------------------------------


SVN revision: 33979
2008-03-11 02:25:29 +00:00
Carsten Haitzler 3dedc3559e allow to have sub-rpocessed controlled by parent if parent dies/segvs/kill
-9'd , ecore_exe'd children die too.


SVN revision: 33974
2008-03-10 06:44:32 +00:00
Carsten Haitzler 2f4173e229 cedrics ecore_cn_url stuff for file downloads
SVN revision: 33970
2008-03-09 16:43:32 +00:00
Carsten Haitzler fcf201dea7 the rest of cedrics patchesfor fixing dictionaries and read_write
SVN revision: 33969
2008-03-09 16:16:40 +00:00
Carsten Haitzler 4a3d696dcf cedric's timer freeze code.
SVN revision: 33967
2008-03-09 15:56:17 +00:00
doursse 9f50836a12 update of the software xcb engine:
* use the pixman library for the region code (it is required, now). That
   libray can be found in the cairo ftp.
 * use the new xcb_image api that is in git repository. There is still a
   seg fault occuring because of xcb_image. I'll commit the fix in git
   next week.

The performance are not good at all. With expedite, 360 fps compared to
the 470 fps with xlib. I don't know why yet.


SVN revision: 33965
2008-03-09 13:21:16 +00:00
Carsten Haitzler c1fb45dcea poosible segv - but never gets run so it never happens
SVN revision: 33964
2008-03-09 09:35:12 +00:00
Davide Andreoli f9e5ad5282 * fixed strings free
SVN revision: 33961
2008-03-08 23:11:32 +00:00
doursse bb32035399 * define EAPI on Windows according to the following scheme:
- if Eet is built:
     . if the shared lib is built, EAPI must be __declspec(dllexport)
     . if the static lib is built, EAPI must be empty
   - otherwise EAPI must be __declspec(dllimport)
 * move config.h from Eet_private.h to source files so that
   EAPI is correctly defined in Eet.h
 * add notes for compilation with cegcc and mingw32ce in INSTALL
 * add support for compilation with cegcc
 * add indentation information for vi
 * remove trailing spaces


SVN revision: 33959
2008-03-08 07:28:12 +00:00
Carsten Haitzler 87a6db7703 add in a types get - as u can have a list of them.
SVN revision: 33951
2008-03-07 11:02:22 +00:00
doursse a3b06c3a70 * EAPI_DEF is actually useless. go back to EAPI
before using the correct way to deal with
   dllimport / dllexport on Windows
 * remove some trailing spaces


SVN revision: 33949
2008-03-07 09:59:37 +00:00
Davide Andreoli fad0d39cdc Add the 2 missing files
SVN revision: 33947
2008-03-06 19:48:11 +00:00
Carsten Haitzler b65d63440f add cedrics dict check patch
SVN revision: 33946
2008-03-06 17:52:59 +00:00
Carsten Haitzler 69f298c228 netwm type stupports an array of types. we dont handle it. bad. for now take
only the most important one (first) and note this issue.


SVN revision: 33944
2008-03-06 10:19:21 +00:00
Gustavo Sverzut Barbieri 79a5be8ec3 Fix missing null terminator in textblock.
Although I used 3 lines comments to state it was not required, it is
required because none of the values accounted includes the '\0'.


SVN revision: 33940
2008-03-06 01:06:58 +00:00
Gustavo Sverzut Barbieri 23c566bb07 Cleanup textblock's strbuf implementation.
This should provide correct code in a simpler way by sharing some of
the common code among functions.

Tested with E17 basics, require some applications with extensive usage
of textblock manipulation to do validate results.


SVN revision: 33939
2008-03-06 00:41:47 +00:00
Gustavo Sverzut Barbieri 4bd8fdaeeb Fix evas_object_textblock's strbuf implementation.
Code was not tracking the real size of the allocated memory and was
increasing the string size by one, so the '\0' was being accounted and
the string was being truncated visually.

Patch will remember the exact allocated size and just increment the
string size by the added string, not including it's null-byte
terminator.

This is based on Cedric's BAIL patch set 'evas_object_textblock more
character fix', but doing the minimum to fix the problem.

PS: this code will be rewritten to share some implementation in next commit.


SVN revision: 33937
2008-03-05 21:30:22 +00:00
doursse 43ed37904a * src/lib/Evil.h:
* src/lib/evil.c:
cegcc or mingwce32 does not like relative path,
so _fullpath or other similar function do not exist
on Winodws mobile.
* src/lib/mman/mman.c:
missing #


SVN revision: 33935
2008-03-05 11:22:46 +00:00
doursse ff821bdc93 fix compilation with cegcc and minor fixing
* COPYING:
copyright update

* configure.ac:
* src/lib/Evil.h:
* src/lib/dlfcn/dlfcn.h:
* src/lib/mman/sys/mman.h:
define EFL_EVIL_BUILD in config.h for managing correctly EAPI

* src/bin/test_pipe.c:
stdio.h is needed after winsock2.h for mingw32ce

* src/lib/dlfcn/dlfcn.c (get_last_error), (dlopen), (dlsym):
* src/lib/evil.c:
fix some heafer files inclusion on cegc platform.
first step of mingw32ce support

* src/lib/mman/mman.c:
define _get_osfhandle for mingw32ce


SVN revision: 33934
2008-03-05 09:19:38 +00:00
Carsten Haitzler b9c073d25f allow programs using ecore_con_url to work and have symbols defined - even if
api doesnt do anything useful as curl is disabled.


SVN revision: 33929
2008-03-05 05:15:37 +00:00
Greg Garner b5a6772932 clean up license for embryo to match zlib elsewhere as per greg:
From: Greg Garner <Greg@rt-eng.com>
To: Jan L��bbe <j.luebbe@tu-bs.de>
Subject: Re: License of your contribution to SMALL/PAWN
Date: Mon, 03 Mar 2008 14:49:56 -0600
CC: greg@dluxlink.com, enlightenment-devel@lists.sourceforge.net
Reply-To: Greg@rt-eng.com

Dear enlightenment developers:

Please change the copyright to be the way zlib is. My intention was to
release this to be freely used source. Let me know if you need any
additional information to proceed.
It is pretty cool that this code that I wrote so long ago is still being
used!

Thanks

Greg Garner
(formerly of Artran Inc).
www.rt-eng.com
greg@rt-eng.com


SVN revision: 33914
2008-03-04 10:36:23 +00:00
Gustavo Sverzut Barbieri c623cbc753 Add missing escape of textblock style font.
SVN revision: 33907
2008-03-03 16:10:22 +00:00
doursse 886c1074ff * COPYING:
* COPYING-PLAIN:
* Makefile.am:
update the COPYING file


SVN revision: 33902
2008-03-03 09:27:55 +00:00
Carsten Haitzler e89ea49c8b if port < 0 then drop port number
SVN revision: 33898
2008-03-02 08:39:21 +00:00
doursse f639b86ca5 minor typo
SVN revision: 33897
2008-03-02 07:03:37 +00:00
doursse c0414ae96c use evil on win32:
* remove all the specific win32 code
 * replace EAPI by EAPI_DEF in front of definitions of funtions
 * no need to check windows.h, winsock2.h
 * sys/mmap.h will be detected automatically (thanks to evil on win32)
 * use AC_CHECK_HEADERS instead of AC_CHECK_HEADERS_ONCE as this macro is too recent (from autoconf 2.59c)


SVN revision: 33896
2008-03-02 06:49:48 +00:00
Carsten Haitzler 68a7734f67 disable compression for now on sources - this breaks edje_decc.
we need to resolve the bug where u can't read compressed sources anymore... :/


SVN revision: 33895
2008-03-02 05:39:51 +00:00
Carsten Haitzler 20d79e8612 fix ref count issues on file modify while in use. lost handles and
dictionaries we depend on.


SVN revision: 33894
2008-03-02 04:56:57 +00:00
Carsten Haitzler 8a3e188813 leak--
SVN revision: 33893
2008-03-02 02:47:36 +00:00
Carsten Haitzler 7564343804 fix segv - cant access file after its been freed...
SVN revision: 33892
2008-03-02 02:34:23 +00:00
Carsten Haitzler 0cd91f89df valgrind complaint - valid one. fix.
SVN revision: 33891
2008-03-02 02:01:11 +00:00
Carsten Haitzler 8b37476352 add file
SVN revision: 33887
2008-03-01 17:37:39 +00:00
Peter Wehrfritz 5acbfcb6e3 add portable pixmaps image loader
SVN revision: 33880
2008-03-01 15:27:20 +00:00
Carsten Haitzler e076a78519 cedric's eet and edje patches to use eet dictionaries for strings.
SVN revision: 33873
2008-03-01 06:38:09 +00:00
Carsten Haitzler c3ec60a6c9 stop allowing self-feeding forever loops by adding jobs forever.
SVN revision: 33871
2008-03-01 04:59:38 +00:00
doursse 73cf6fe558 update doc, add init/shutdown functions for the socket system, add Tor Lillqvist as author and other miscellaneous fixes
SVN revision: 33870
2008-02-29 22:42:14 +00:00
Gustavo Sverzut Barbieri 08bfdacdee Bugfix and refactor get of font based on text_class.
Edje tries to copy original style to font provided by text_class if
this have no style.

However code was supposing that text_class font always had more than
one occurrence, these separated with ',' and did not check if this is
not the case, so "e = strchr(',', tok);" was returning NULL and all
the math were using negative values.

The fix now does the proper checking, avoid one useless alloca() and
the respective copy, also doing the copies with memcpy() since sizes
are already known.

Refactory was done to make code simpler and also avoid having it
copied 3 times.


SVN revision: 33869
2008-02-29 21:43:55 +00:00
Gustavo Sverzut Barbieri da7eabb809 Just update dragable parameters if part is dragable.
SVN revision: 33867
2008-02-29 03:39:31 +00:00
Gustavo Sverzut Barbieri 46f07234a0 Minor cleanups.
* bitfield must be unsigned;
 * static to most globals;
 * call shutdown on exit.


SVN revision: 33865
2008-02-28 20:35:16 +00:00
doursse a5d43225dc Here is the Evil library, which provides, for the Windows platform (XP or Mobile), a set of Unix functions used in the EFL and which do not exist on that evil platform
SVN revision: 33862
2008-02-27 21:01:30 +00:00
Gustavo Sverzut Barbieri 621d8f73af Optimize interpolation.
Check if values actually differ before interpolating them, this will
avoid useless math for (x1 - (x1 - x2) * p) when x1 and x2 are equal.

Also don't interpolate values that doesn't make sense to the part,
like color2 and color3 for non-text.

TODO: Refactor edje part description into more object-oriented
fashion, with a struct with just the common parts followed by an union
of structs for special objects, these would contain specific bits for
each part type. This would save us a bit of memory and then we can
more easily refactor code isolating common and specific parts, making
code smaller and easier to handle.


SVN revision: 33861
2008-02-27 19:03:19 +00:00
Gustavo Sverzut Barbieri b5d880093f Avoid using anonymous for often used structs.
My last patch fixed the compile problem, but really, we should use the
same struct for things that look/work the same, like rectangle,
position, etc.

This new patch brings that change back and add some named structs
(also typedef'ed so it conforms to E naming schema).

This commit just changes the header and adds an example of
benefit. Later I'll provide a more intrusive patch that reorganize
structures to make even better use of this.


SVN revision: 33860
2008-02-27 16:03:23 +00:00
Gustavo Sverzut Barbieri 09148d57c4 Fix my introduced bug in cedric's patch.
SVN revision: 33859
2008-02-27 15:21:16 +00:00
Gustavo Sverzut Barbieri 0d9ff479d2 Avoid useless huge implicit memcpy.
The "simple" block:

   p3 = p1;

was doing an implicity memcpy() responsible for about 1% of processing
time when no animation happens.

Patch by Cedric BAIL.


SVN revision: 33858
2008-02-27 14:27:10 +00:00
Gustavo Sverzut Barbieri 9abfa8f70a Cleanup of last patches and revert my patching mistakes.
Last 2 patches were swapped, I applied them in the wrong order and
missed the rejections, my bad.

I fixed it and also did some cleanup, looks better now.


SVN revision: 33855
2008-02-26 20:12:00 +00:00
Gustavo Sverzut Barbieri c48465c86a Fix a memory leak on edje destruction.
Patch by Cedric BAIL.


SVN revision: 33854
2008-02-26 19:06:33 +00:00
Gustavo Sverzut Barbieri 30b26c0937 Cleanup for possible memory leak.
Patch by Cedric BAIL.


SVN revision: 33853
2008-02-26 18:41:44 +00:00
Gustavo Sverzut Barbieri 833e075b9a Delay patterns destruction until patterns is not used anymore.
Patch by Cedric BAIL.


SVN revision: 33850
2008-02-26 17:56:51 +00:00
Carsten Haitzler 23aef39670 ooh - a case where callbacks may be cleared but we call one - list entry not
nulled out. fix.


SVN revision: 33848
2008-02-26 09:16:17 +00:00
Gustavo Sverzut Barbieri a3ac3697ec Try to get DirectFB working.
This is an initial cleanup, basically I removed all the DirectFB
accelerated calls and moved it to software common. I do plan to
gradually bring these back later, probably blit, rectangle and line
will come first.


SVN revision: 33835
2008-02-25 06:13:53 +00:00
Sebastian Dransfeld 0fdd25e671 TODO++
SVN revision: 33833
2008-02-24 19:20:08 +00:00
Sebastian Dransfeld 5fffd55830 Fix function to match callback prototype.
SVN revision: 33832
2008-02-24 19:14:14 +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 9d31648720 revert pselect - breaks e init and entrance
SVN revision: 33829
2008-02-24 08:42:39 +00:00
Carsten Haitzler c31c2c50c3 use pselect - from lars. testing now in a wider audience.
SVN revision: 33827
2008-02-24 04:56:28 +00:00
Christopher Michael a77a6eb18c Fix evas_hash_foreach functions for recent evas changes.
Fix some formatting issues.


SVN revision: 33809
2008-02-22 10:42:50 +00:00
Gustavo Sverzut Barbieri 435dfe2a2a Reduce memory allocation for edje match.
Just allocate and build the match automate for callbacks and programs
only when required. On load for programs and when callbacks list has
been updated.

Patch by Cedric BAIL. (with minor fixes to use TABS where context was using)


SVN revision: 33804
2008-02-21 18:48:36 +00:00
Gustavo Sverzut Barbieri e618b1d188 Cleanup edje calc and fixes textblock "visible" use.
Patch by Cedric BAIL, with minor formating/style fixes.


SVN revision: 33803
2008-02-21 18:35:27 +00:00
doursse fc81ca730c remove trailing spaces
SVN revision: 33800
2008-02-20 18:22:42 +00:00
doursse 08bbba9e24 use the new api for the screensaver
SVN revision: 33799
2008-02-20 18:20:51 +00:00