Commit Graph

678 Commits

Author SHA1 Message Date
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
Andres Blanc a7f4024a29 I wasted quite some time thanks for ignoring this detail.
SVN revision: 34029
2008-03-15 00:51:45 +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
Sebastian Dransfeld 1ca9a3d4a5 Fix compiler warnings
SVN revision: 34013
2008-03-13 16:01:35 +00:00
Sebastian Dransfeld 00065fd407 Add const
SVN revision: 34011
2008-03-13 06:38:16 +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
Davide Andreoli f9e5ad5282 * fixed strings free
SVN revision: 33961
2008-03-08 23:11:32 +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
Gustavo Sverzut Barbieri c623cbc753 Add missing escape of textblock style font.
SVN revision: 33907
2008-03-03 16:10:22 +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 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 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
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 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
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
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
Carsten Haitzler 92e084f9ca asparagus! also pass distcheck and have common autofoo init that is
consistent for package, version etc.


SVN revision: 33602
2008-01-25 03:35:49 +00:00
Carsten Haitzler 033737bdd9 edje data file patches in - not fill though.
SVN revision: 33543
2008-01-21 01:03:04 +00:00
Carsten Haitzler 540db93949 textblock max size option in
SVN revision: 33528
2008-01-19 01:00:14 +00:00
Sebastian Dransfeld ebe93744cf formatting
SVN revision: 33527
2008-01-19 00:24:53 +00:00
Gustavo Sverzut Barbieri 533be6581f Escape font name before writing it to fixed buffer.
Font names can contain spaces, either in the file name and the
fontconfig, so do the escape and keep words linked.

Now it's possible to have things like:
  font=Vera\\ Sans:style=Bold
and it will work. (note double \\ is required)


SVN revision: 33526
2008-01-18 20:51:03 +00:00
Carsten Haitzler 4fce4a3981 remvoe fnmatch checks
SVN revision: 33516
2008-01-18 06:38:46 +00:00
Carsten Haitzler fff9c738a2 did some tests - this seems to be faster and seems to match correctly in some
test cases i brewed up. doesnt seem to break e so far and thats a fairly
comprehensive test.


SVN revision: 33515
2008-01-18 06:34:04 +00:00
doursse 33d11c8035 fix typo in symlink (win32)
SVN revision: 33469
2008-01-13 09:09:42 +00:00
Carsten Haitzler 0ceaf246a2 terminate strings properly?
SVN revision: 32900
2007-11-27 10:50:35 +00:00
doursse 5b257881d7 update win32 port : use correct temp dir value and correct open function according to the compiler
SVN revision: 32882
2007-11-25 16:22:58 +00:00
Sebastian Dransfeld bc6caea1f9 Edje reference patch two (from dresb)
SVN revision: 32849
2007-11-23 16:43:03 +00:00
Sebastian Dransfeld a71e255ede Edje reference patch one (from dresb)
SVN revision: 32848
2007-11-23 16:40:38 +00:00
Sebastian Dransfeld 62cf45caab Don't clean up this job, ecore_job will clean it up itself.
SVN revision: 32351
2007-11-04 12:41:15 +00:00
doursse f936cbea25 * add mail in AC_INIT
* remove Makefile.in when cleaning
 * INCLUDES -> AM_CPPFLAGS
 * minor cleaning


SVN revision: 32342
2007-11-04 09:53:29 +00:00
Gustavo Sverzut Barbieri b542743d9e Fix calculation of font size when text.fit_y is set.
Before it was using a linear search with initial step proportional to
difference bettwen desired and current height, but the way it was
implemented it was giving incorrect values, for example: a text in
an animation that enlarges height was getting size_{n} < size_{n-1},
where it should be always the oposite (the sequence was like: 31, 32,
33, 34, 31, 33, 34, 35, ...).
   One way to avoid that was to recalculate "dif" based on new "th",
but it quickly drop to 1.

The current implementation now uses a binary search to find the first
size that matches the desired height and then a linear search to
search the largest font doing that (differents sizes may result in the
same height). This linear search is often an extra lookup and can be
avoided if we want just something that fits (instead of the largest).


SVN revision: 32146
2007-10-22 22:31:13 +00:00
Gustavo Sverzut Barbieri 3500a5c059 Fix calculation of maximum values for swallow parts.
Due my last change, the code was broken by edjes without a group
min/max, this happens because edje_object_size_max_get() returns
100000 for these objects, and this was being used as object maximum
size.

Current fix is a hack: just check for this value, now known as
EDJE_INF_MAX_*, but the real solution would be to return 0 (or -1) and
check for it in other parts of the code, but it's harder to get right.


SVN revision: 32123
2007-10-19 19:31:42 +00:00
Gustavo Sverzut Barbieri 8f12e90da0 Set pass_events to 0 if "mouse_events: 1".
I'm not sure this is the right thing to do, but since we're setting it
to 1 when "mouse_events: 0", it fix some problems.

Maye we shouldn't set this flag at all and let users have these
options set on clippers?


SVN revision: 32120
2007-10-19 16:07:43 +00:00
Carsten Haitzler 412d44f90f bizarre - text sources were broken - but never appeared in e - somehow they
worked. fixed.


SVN revision: 32078
2007-10-14 23:54:27 +00:00
Gustavo Sverzut Barbieri 403afe21fc Fix edje calculation of max width for swallowed parts.
If you have a SWALLOW part taking the whole window and then swallow an
object with max set using edje_extern_object_max_size_set() it will
not take effect due the comparison of ep->swallow_params.max.w < -1
(desc->max.w is -1 in this case).


SVN revision: 32029
2007-10-09 15:30:26 +00:00