Commit Graph

5277 Commits

Author SHA1 Message Date
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
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
Horms 8c554f1977 edje: include autogen.sh in distribution tar ball
autogen.sh is really ought to be included in the distribution.
For starters its used in the debian build process.


SVN revision: 33782
2008-02-18 07:48:41 +00:00
Horms 5ac42d953d Add build-dependancy on pkg-config
As aclocal may be called via autogen.sh during the Debian build process
add an explicit build dependancy on pkg-config which includes
/usr/share/aclocal/pkg.m4 which provides the PKG_CHECK_MODULES macro.


SVN revision: 33781
2008-02-18 07:44:11 +00:00
Horms 37b3aecac8 ecore: build ecore desktop
The debian packaging has a libecore0-desktop package, so
build ecore desktop so there is something to go in it.


SVN revision: 33780
2008-02-18 07:36:08 +00:00
Horms 4cbf4bedd5 ecore: use DEB_CONFIGURE_EXTRA_FLAGS in rules file
Use DEB_CONFIGURE_EXTRA_FLAGS in the rules file
rather than duplicating the flags in the invocation
of ./autogen.sh


SVN revision: 33779
2008-02-18 07:34:43 +00:00
Horms 54f624a83b ecore: include autogen.sh in distribution tar ball
autogen.sh is really ought to be included in the distribution.
For starters its used in the debian build process.


SVN revision: 33778
2008-02-18 07:29:44 +00:00
Horms 920d9e9ec7 ecore: automake and libtool build dependancy
automake and libtool are needed by ./autogen.sh which
is used in the Debian build process.


SVN revision: 33777
2008-02-18 07:29:07 +00:00
Horms efbe251c5e embryo: cdbs build dependancy
cdbs is needed for the Debian build process.


SVN revision: 33776
2008-02-18 07:25:46 +00:00
Horms 89dec2d7e3 embryo: include autogen.sh in distribution tar ball
autogen.sh is really ought to be included in the distribution.
For starters its used in the debian build process.


SVN revision: 33775
2008-02-18 07:22:36 +00:00
Horms b6106eeed1 evas: include autogen.sh in distribution tar ball
autogen.sh is really ought to be included in the distribution.
For starters its used in the debian build process.


SVN revision: 33774
2008-02-18 07:20:50 +00:00
Horms 2323e5d1ab evas: Update libgl build dependancy
libgl-dev is now a virtual package provided by libgl1-mesa-swx11-dev and
libgl1-mesa-dev, so one of these packages needs to be the build dependancy
instead of libgl-dev.

libgl1-mesa-dev seems to be the most logical choice as it can
be installed with minimal disruption on a vanilla install.


SVN revision: 33773
2008-02-18 07:15:48 +00:00
Horms c67cb60818 libeet: Build depends on automake and libtool
There seems to be a typo, likely introduced by me,
such that the libtool dependancy was an alternate to automake.

If you don't have automake instlled at configure time, then
the following error pops up on Debian unstable.

configure.in:19: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.


SVN revision: 33772
2008-02-18 07:03:33 +00:00
Sebastian Dransfeld 0354cd15e9 And remove debugging.
SVN revision: 33771
2008-02-18 06:41:52 +00:00
Sebastian Dransfeld 4ec81c3451 List data should not be in the nodes when using ecore_list
SVN revision: 33770
2008-02-18 06:27:26 +00:00
Sebastian Dransfeld d6b1e0b5a6 formatting
SVN revision: 33769
2008-02-18 06:26:20 +00:00
Christopher Michael 6fd085f0aa Fix formatting ugliness.
Add 'const' to evas_hash_foreach functions as per recent Evas changes.


SVN revision: 33748
2008-02-15 19:30:12 +00:00
Gustavo Sverzut Barbieri 4d5430d438 Add room for '\0' in textblock calculations.
In evas_object_textblock, the length forgot the '\0', this create a
buffer overrun.

Author: Cedric BAIL


SVN revision: 33747
2008-02-15 14:45:31 +00:00
Gustavo Sverzut Barbieri 9b983b96b1 Patch by Cedric to really shutdown font system.
every thing is not really cleaned on shutdown (It make it crash, if
you shutdown completely the font system and then restart it again).

Author: Cedric BAIL


SVN revision: 33746
2008-02-15 14:43:51 +00:00
doursse d84ab190e6 disable the creation and installation of the static lib of
the modules by passing the disable-static tag to libtool


SVN revision: 33739
2008-02-13 07:55:24 +00:00
Sebastian Dransfeld 1ff7daa0bb revert_to can't be PointerRoot, should probably be RevertToPointerRoot
SVN revision: 33737
2008-02-12 20:34:41 +00:00
Peter Wehrfritz 69c774cbe6 add doxy stubs, so that the function names at least appear in the api references
Thanks to mcalamelli


SVN revision: 33731
2008-02-11 23:24:11 +00:00
Gustavo Sverzut Barbieri 5d571051b9 Add const to Evas api: objects and remaining bits.
SVN revision: 33716
2008-02-08 22:35:19 +00:00
Gustavo Sverzut Barbieri 2756696bbe Add const to Evas aoi (part 3), still lacks objects.
SVN revision: 33715
2008-02-08 21:42:01 +00:00
Gustavo Sverzut Barbieri bbc9773a26 Add const to Evas api (part 2), still lacks objects.
SVN revision: 33713
2008-02-08 20:57:30 +00:00
Gustavo Sverzut Barbieri 1def3acd63 Missing const to callback parameter.
SVN revision: 33712
2008-02-08 20:54:18 +00:00
Gustavo Sverzut Barbieri 5233796eb5 Add const to Evas api, still lacks objects.
SVN revision: 33711
2008-02-08 20:44:09 +00:00
Gustavo Sverzut Barbieri 2f346db9a9 Partial fix to evas_hash_foreach() const change.
This fixes the prototype, however it still issues a warning about a
real bug: calling evas_hash_modify() during evas_hash_foreach()


SVN revision: 33710
2008-02-08 20:42:10 +00:00
Gustavo Sverzut Barbieri 903a4d6e4d Add const to Evas_Smart_Class pointer.
The previous commit just removed the warning, but it was not the ideal
solution. The class is really a constant, nobody should change it
after it's assigned.


SVN revision: 33709
2008-02-08 20:03:48 +00:00
Gustavo Sverzut Barbieri 7cb7216314 Add const: evas_hash.c
As agreed on IRC, evas_hash_foreach() now takes const, to make clear
that hash shouldn't be changed. If one wants to change he must do a
cast and return 0.  However this will require users to be updated in
applications.


SVN revision: 33708
2008-02-08 19:55:03 +00:00
Gustavo Sverzut Barbieri 72b005350a Add missing cast.
SVN revision: 33707
2008-02-08 19:51:02 +00:00
Gustavo Sverzut Barbieri 1d5d592e14 Add const: evas_list.c
SVN revision: 33706
2008-02-08 19:16:13 +00:00
Gustavo Sverzut Barbieri de12b6d89a Avoid lots of casts.
SVN revision: 33704
2008-02-08 18:42:42 +00:00
Carsten Haitzler 67844ebc4c 1. fix abort in tiff loader
2. slidesel theme garbage trailing. nuke
3. icon obj can have pre-scale set not. default is as before.
4. printf-- in slidesel


SVN revision: 33677
2008-02-05 12:00:19 +00:00
Christopher Michael 865f8ada56 Comment out unused variable. Seems the functions that were supposed to use
it are commented out, but the variable was left. Fixed.


SVN revision: 33659
2008-02-01 01:50:56 +00:00
Christopher Michael f665bd40d6 Comment out unused function...was giving a "defined but not used" warning
during compile. Left function intact, just commented out, in case it was
meant for use later.


SVN revision: 33658
2008-02-01 01:45:46 +00:00
Mike Frysinger 561eb3c20c move ecore_exe_{init,shutdown} win32 stubs to header
SVN revision: 33640
2008-01-28 11:20:57 +00:00
Sebastian Dransfeld d610a1bd9a include files in the correct order
SVN revision: 33633
2008-01-27 13:17:22 +00:00
Sebastian Dransfeld 07a6398561 formatting
SVN revision: 33632
2008-01-27 13:08:30 +00:00
Sebastian Dransfeld cb4cc5b6c1 formatting
SVN revision: 33631
2008-01-27 12:56:44 +00:00
Sebastian Dransfeld 20e3248c9a formatting
SVN revision: 33630
2008-01-27 12:55:29 +00:00
Peter Wehrfritz 3f672adf1b remove stupid semicolons
SVN revision: 33626
2008-01-26 14:41:34 +00:00
Mike Frysinger d62afbab1d fix debug-typo left over in previous commit
SVN revision: 33621
2008-01-26 10:12:20 +00:00
Mike Frysinger 4c62111e44 relegate _WIN32 ifdef mess to ecore_private.h
SVN revision: 33620
2008-01-26 10:11:48 +00:00
Mike Frysinger ada82df743 __USE_GNU is an internal define not meant for people to use and _BSD_SOURCE is implied by _GNU_SOURCE
SVN revision: 33619
2008-01-26 06:01:00 +00:00
Mike Frysinger 2f8cb706fd __USE_GNU is an internal define not meant for people to use
SVN revision: 33618
2008-01-26 05:52:47 +00:00
Mike Frysinger 5a351ab3da replace some win32 ifdef hacks with autoconf checks
SVN revision: 33617
2008-01-26 05:50:09 +00:00
Mike Frysinger 184812f289 replace a lot of win32 ifdef hacks with autoconf checks
SVN revision: 33616
2008-01-26 05:40:53 +00:00
Peter Wehrfritz 2c87820492 add ECORE_CALLBACK_RENEW and ECORE_CALLBACK_CANCEL
SVN revision: 33612
2008-01-25 18:28:16 +00:00
Peter Wehrfritz 6a586399c2 typo and formating
SVN revision: 33611
2008-01-25 18:22:51 +00:00