Commit Graph

4305 Commits

Author SHA1 Message Date
Daniel Zaoui 4ec1ae2d0f Eolian/Lexer: the ';' is now optional after '}'. 2014-03-03 14:09:54 +02:00
Daniel Zaoui 7a114b18af Eolian/Generator: oups, didn't mean to push that. 2014-03-03 14:09:54 +02:00
Daniel Zaoui 8de58b9757 Eolian/Lexer: rename signals to events. 2014-03-03 14:09:54 +02:00
Daniel Zaoui a934780714 Eolian-generator: fix crash during generation
It happens when no description is supplied for an event.
2014-03-03 14:09:54 +02:00
Tom Hacohen 4b24559ea6 Eolian: Split eolian build helper a different file.
This will let other modules use it more easily, and also make it easier
to borrow it to other repos.
2014-03-03 14:09:54 +02:00
Daniel Zaoui ab8d877150 Eolian/Generator: support legacy as option.
For the moment, the option works for C files. Have to add support for H
files.
2014-03-03 14:09:54 +02:00
Daniel Zaoui 327202ef37 Eolian/Generator: port options to getopt
Even if we want to remove the appending options, we still support them.
We will remove them later.
2014-03-03 14:09:54 +02:00
Tom Hacohen fabea6399c Eolian: Added an helper to call eolian_gen from within the project. 2014-03-03 14:09:54 +02:00
Tom Hacohen e4534ed0f2 Eolian: Renamed the eolian tool to eolian_gen. 2014-03-03 14:09:54 +02:00
Tom Hacohen 57c8f7ff38 Eolian: Fixed EXTRA_DIST. 2014-03-03 14:09:54 +02:00
Tom Hacohen 5a4f68d472 Eolian: Added eolian to the build system. 2014-03-03 14:09:53 +02:00
Tom Hacohen 036e3eeaa3 Eolian: Add EAPI to API calls. 2014-03-03 14:09:53 +02:00
Daniel Zaoui 5dea8ee0a8 Eolian: first import.
Imported by Tom, from the eolian repo which was written by:
Daniel Zaoui <daniel.zaoui@samsung.com>
Yakov Goldberg <yakov.g@samsung.com>
Yossi Kantor <yossi.kantor@samsung.com>
Savio Sena <savio@expertisesolutions.com.br>
Jérémy Zurcher <jeremy@asynk.ch>

Signed-off-by: Tom Hacohen <tom@stosb.com>
2014-03-03 14:09:53 +02:00
Cedric Bail 92a24dea79 edje: @feature to include license in edje file.
This will close T1027.
2014-03-03 08:39:53 -03:00
Cedric Bail f3ba81f7c1 ecore_avahi: remove useless printf. 2014-02-28 19:58:25 -03:00
Cedric Bail 7d3e7ad748 ecore_avahi: @fix timeout to avoid pitfall of forever frozen timer.
@backport.
2014-02-28 19:57:44 -03:00
Stefan Schmidt b70ff13404 examples/eina: Check return value of eina_iterator_next
If we define an API with warn_unused_result we should actually
check the result in our examples.
2014-02-28 14:37:53 +01:00
Stefan Schmidt 4e2e2ea01e examples: Use EINA_UNUSED in examples to silence a ton of warning
First step to get the examples compiling output in a useful state.
With all the warning noise one would never see the important messages.

If you add new code please make sure its warning free.
2014-02-28 14:37:53 +01:00
Chris Michael 886c8d55b7 evas-drm: Ddd support for setting vsync with env variable.
@feature: Add support for EVAS_DRM_VSYNC environment variable to
@feature: Add support for marking a Framebuffer as dirty.
@bugfix: Fix color mask values for evas conversion functions.
@bugfix: Start with using the Backbuffer for drawing.
@bugfix: Fix previous Slowness with evas_cache image data.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-02-28 13:13:17 +00:00
Chris Michael 7ca6837084 evas-drm: Add vsync/non-vsync support to evas_drm code
@feature: Add ability to render software buffers using vsync or not
@bugfix: Fix drmModeAddFB to use proper depth & bpp when adding FB
@bugfix: Fix mmap to use NULL (not 0) so that kernel assigns memory
address.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-02-28 13:13:17 +00:00
Chris Michael 09b69d567e evas-drm: cleanup evas_engine code for drm sw engine
@bugfix: clear the tilebuffer when we get the next redraw update.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-02-28 13:13:17 +00:00
Chris Michael 54680b1f97 evas-drm: cleanup outbuf structure and functions
@bugfix: this cleans up the Outbuf structure by removing unused
fields, Fixing some function declarations, and defaulting the number
of buffers to 2 (double-buffering)

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-02-28 13:13:17 +00:00
Chris Michael aafd8e5277 evas-drm: Add flag for setting vsync to engine structure
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-02-28 13:13:17 +00:00
Chris Michael c52d47ba36 evas-drm: Break out plane creation code into it's own function for cleaner code
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-02-28 13:12:51 +00:00
Chris Michael 62a6b32ed3 evas-drm: Start on hardware Plane support
@feature: Start on hardware Plane support
 - Add Plane structure
 - Store list of Planes in the Output buffer

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-02-28 13:12:31 +00:00
Chris Michael fcd4929702 evas-drm: Add field to engine info for storing the buffer manager
- Typically this will come from ecore_evas and be used by evas to
allocate hardware accelerated buffers (gbm, tbm, etc)

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-02-28 13:11:58 +00:00
Chris Michael e870bca601 evas-drm: Add Evas_Engine_Drm header to source files
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-02-28 13:11:54 +00:00
Chris Michael 8a18515c7c evas-drm: Fix opening of drm card
@feature: Add code to check if async page flipping is supported by the driver.
@bugfix: Add code to get the proper drm driver name when we init the card.
@bugfix: Use drmOpen when opening the card so that any sub-driver gets initialized.
@bugfix: Add some debug/testing code to enumerate planes.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-02-28 13:10:55 +00:00
Chris Michael 258ce60930 evas-drm: Call framebuffer_set earlier in the process so that the screen gets
updated sooner.

@bugfix: set framebuffer on crtc earlier in process
@bugfix: Set the rendered image's alpha flag to be equal to the output buffer's

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-02-28 13:10:21 +00:00
Chris Michael ccbdd2137f evas-drm: Triple buffer by default.
@feature: Triple buffer by default on drm engine

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-02-28 13:10:00 +00:00
Chris Michael d21ab6f597 evas-drm: Start on hardware-accel support for drm
@feature: Start on hardware acceleration support by adding EGL
structure to engine info

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-02-28 13:09:37 +00:00
Chris Michael b184d140a2 evas-drm: Set Magic on the Ecore_Evas
@bugfix: Set magic on the ecore_evas

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-02-28 13:08:44 +00:00
Chris Michael b42af265be evas-drm: Add Evas Drm Engine (software only currently)
@feature: Add working Evas_Drm Engine (software only currently)

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-02-28 13:08:19 +00:00
Chris Michael b36adec952 evas-drm: Add evas_drm to build order for Evas drm engine
@feature: Add evas-drm engine to Evas

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-02-28 13:08:00 +00:00
Stefan Schmidt 0ca191a6f0 examples/evas: Set a proper format string for fprintf
Instead of abusing the format string we should set it.
Was made aware of this problme by chinmaya061 in
https://phab.enlightenment.org/D585

@fix
2014-02-28 12:17:52 +01:00
Tom Hacohen 46361148b2 Evas textblock: Implemented mid-contextualization formatting.
There are many situations (e.g all the time with Arabic text) in which
characters change their appearance depending on the context they lie
within. Before this patch, we didn't support changing font appearance
mid-context. So for example one couldn't do "a<color=#f00>b" without
messing up 'a' and 'b's change to their contextual forms.

Although Arabic is a very good example, this also applies to Latin text
in many cases, and should fix some wrong spacing that might have
appeared when changing styles.

@feature
2014-02-28 10:47:56 +00:00
Jihoon Kim 449f9b76ba ecore_evas: fix version of APIs to support for window auxiliary hint recently
EFL 1.9 was already out, it's 1.10 phase now.
2014-02-28 08:43:31 +09:00
Cedric Bail 0e1c064fd0 ecore_avahi: add an avahi browse example (that doesn't work yet). 2014-02-27 20:09:09 -03:00
Cedric Bail b955ea0b9e ecore_avahi: fix timeout to be relative from now. 2014-02-27 20:09:09 -03:00
Gwanglim Lee cbf6f94c80 ecore_evas: Added support for window auxiliary hint
Summary:
The window auxiliary hint is the value which is used to decide
which actions should be made available to the user by the WM. If you
want to set specific hint to your window, then you should check whether
it exists in the supported auxiliary hints that are registered in the
root window by the window manager.

Once you've added an auxiliary hint, you can get a new ID which is used
to change value and delete hint. The window manager sends the response
message to the application on receiving auxiliary hint change event.

A list of auxiliary hint within the Ecore_Evas has this format:

  ID:HINT:VALUE,ID:HINT:VALUE,...

Reviewers: raster, cedric, seoz, Hermet

Reviewed By: raster

CC: cedric

Differential Revision: https://phab.enlightenment.org/D543
2014-02-28 07:20:01 +09:00
Snacker (Vladimir) 8e17290f19 @feature - Apply NEON intrisics improvement to rotation 2014-02-28 07:04:52 +09:00
Cedric Bail 30d7779178 ecore: @fix race condition when using ecore_main_loop_thread_safe_call_sync. 2014-02-27 12:24:28 -03:00
Cedric Bail 4ecc4eb615 Revert "evas example: fix warning in compilation of evas-box.c."
This reverts commit 442d880cf6.

Sorry mixed command of pull/push here.
2014-02-27 11:10:35 -03:00
chinmaya 442d880cf6 evas example: fix warning in compilation of evas-box.c.
Summary: The warning was "format not a string literal and no format arguments [-Wformat-security]".

Test Plan: gcc -o evas-box evas-box.c `pkg-config --libs --cflags evas ecore ecore-evas eina`

Reviewers: singh.amitesh, seoz, stefan_schmidt

CC: cedric, stefan_schmidt

Differential Revision: https://phab.enlightenment.org/D585

Signed-off-by: Cedric Bail <cedric.bail@free.fr>
2014-02-27 11:09:20 -03:00
Jérémy Zurcher c7922f92bc eo: revert 13502a1 and 7821df1
I'm running out of time, will look at it later
2014-02-27 15:02:45 +01:00
Jihoon Kim 16f5a5c323 edje: Add emoticon input panel layout 2014-02-27 14:08:18 +09:00
Jihoon Kim 8940ce308d ecore_imf: Add ECORE_IMF_INPUT_PANEL_LAYOUT_EMOTICON 2014-02-27 13:46:16 +09:00
Jaehwan Kim 8d46f46243 edje: Fix CURRENT option works.
By this code the CURRENT option didn't work.
Don't remove rp->current before the animation is excuted.
The memory leak issue is resolved by commit(d636c0f801).
2014-02-27 13:39:43 +09:00
Sohyun Kim 85b2a8f5dc reset textblock cache when text_class is changed
If text_class in the textblock is changed, it is not applied because of the cache.
When text_class is changed, reset cache to update text information.
2014-02-27 13:31:42 +09:00
WooHyun Jung 6093e68cb0 evas: replace EINA_LIST_FREE to EINA_LIST_FOREACH_SAFE.
EINA_LIST_FREE does eina_list_remove_list, and clip_unset does
the same thing to the same list pointer. So, EINA_LIST_FOREACH_SAFE
is proper for this case.
2014-02-27 10:31:42 +09:00
Felipe Magno de Almeida 91f5a9b043 ecore_cxx: add main_loop_thread_safe_call_sync and main_loop_thread_safe_call_async with tests
The point of this binding is to enable the support for easy lambda for ecore function
that wont be using Eo. See the tests on how to use those.

Reviewers: cedric, raster

CC: savio, cedric

Differential Revision: https://phab.enlightenment.org/D582

Signed-off-by: Cedric Bail <cedric.bail@free.fr>
2014-02-26 18:52:08 -03:00
Cedric Bail 3312ba4c56 eina_cxx: oops forgotten path. 2014-02-26 14:42:29 -03:00
Cedric Bail 96b1b880a4 eina_cxx: move Eina_CXX to a bindings subdirectory.
We do expect to integrate more bindings support in EFL to make them
first class citizen and make sure they get proper attention during
the development cycle. It so make sense to give them a proper
subdirectory.
2014-02-26 12:18:26 -03:00
Cedric Bail 97ede98b5d eina_cxx: fix build with clang. 2014-02-26 12:18:26 -03:00
Cedric Bail 1fb3822893 eina_cxx: fix build on 32bits systems. 2014-02-26 12:18:26 -03:00
Jérémy Zurcher 2d52015823 eo: first check class desc in eo_class_new 2014-02-26 16:25:01 +01:00
Jérémy Zurcher 13502a159c eo: add tests for eo_composite_detach 2014-02-26 16:25:00 +01:00
Jérémy Zurcher 7821df17dc eo: replace composite_objects Eina_List with an array of Eo_Object*
as we don't support multiple composites of the same class,
and know at class elaboration how many composites we should have,
we can create the composites array and pack it at the end of the object.
2014-02-26 16:25:00 +01:00
Jérémy Zurcher 5be3b666b2 eo: block regular non-instantiable classes in class extension list 2014-02-26 16:25:00 +01:00
Jérémy Zurcher e199230615 eo: eo_composite_attach check composite class, disallow duplicates
eo_composite_attach fail if the class of the composite is not
listed in the parent class extensions, or if there is already a
composite of the same class. The later because calls are
forwarded to the first responding composite, see _eo_op_internal().
2014-02-26 16:25:00 +01:00
Jérémy Zurcher f98c1393b8 evas: rename macro EVAS_COMMON_CLASS -> EVAS_COMMON_INTERFACE as it is one 2014-02-26 16:25:00 +01:00
Andy Williams 5913ce7ec8 eina_log: Update domain colouring when color_disable_set is called
After color_disable is set we should update the domain_str for each domain
as this cached the setting from when the domain was registered.
This required storing the colour within the domain for later use.
Fixes T1029
2014-02-26 04:02:33 +00:00
Cedric Bail 47955c302a eina_cxx: make sure it can build out of the source tree. 2014-02-26 11:06:05 -03:00
Tom Hacohen 0378e41958 Evas textblock: removed unused internal function. 2014-02-26 12:25:08 +00:00
Chris Michael 44e023c888 bugfix: Fix Wayland Shm engine destination calculation typo
When rotation is 0, we need to advance the destination pointer in the
X direction by a Multiple of Bits-Per-Pixel...not an addition.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-02-26 11:36:27 +00:00
Cedric Bail eabb71d498 eina_cxx: don't track generated example binary. 2014-02-25 18:36:17 -03:00
Cedric Bail 5e6600143c eina_cxx: remove left over from when Boost was a dependency. 2014-02-25 18:35:04 -03:00
Cedric Bail 255dec60b6 eina: fix Windows compilation due to a typo. 2014-02-25 18:34:24 -03:00
Felipe Magno de Almeida f279225a63 eina: add a C++ bindings to Eina @feature.
The goal of this library is to make the life of C++ developers easier
when having to manipulate Eina datatype by providing a layer to abstract
those data type in C++. Check examples for now. Documentation will come
soon, but we are pushing that rather sooner to get feedback on those bindings.

As you will notice, this library is just composed of headers. There is no .so
and we do think it is better this way. Reducing ABI and API stability issue for
applications developers who are the primary target of this binding.

Also please note that you will need to have C++11 to use this binding.

Signed-off-by: Cedric Bail <cedric.bail@free.fr>
2014-02-25 18:05:01 -03:00
Felipe Magno de Almeida d63507446f eina: add eina_accessor_clone and update all Eina_Accessor to take advantage of it.
@feature.

Signed-off-by: Cedric Bail <cedric.bail@free.fr>
2014-02-25 18:04:47 -03:00
Felipe Magno de Almeida 794bbcbca8 eina: add eina_inarray_resize @feature.
Signed-off-by: Cedric Bail <cedric.bail@free.fr>
2014-02-25 17:33:36 -03:00
Daniel Juyung Seo 01a5585482 ecore_evas_object_example: Added cursor unset example. 2014-02-24 16:01:37 +09:00
Jean-Philippe Andre afcbabb004 Doc: Fix filters documentation
Since the doc mentions colors in the examples, fix it to match the
new dox theme :)
2014-02-24 11:18:10 +09:00
Jean-Philippe Andre 6dce77fbea Doc: Fix colors in the filter examples
Since the bg color changed from dark grey to white, the
colors don't match so much anymore... This is just like theme
work.
2014-02-24 11:17:42 +09:00
Davide Andreoli 9df1e2e678 Emotion generic: change the log domain name to be consistent with others domains. 2014-02-23 20:40:21 +01:00
Carsten Haitzler 2bb9d9563c textgrid - with new fallback fonts we cant depend on glyph extents anymore
now that glyphs can exceed the bounds of the original query for the
font, there is no pointusing max ascent/descent bounds. back to plain
ascent and decent then so you may get fewer gaps in some fonts. this
fixes font gaps consiering trying to wrk otherwise now is pointless.
2014-02-23 22:25:19 +09:00
Carsten Haitzler 8ca7a21403 textgrid - out-of-bounds chars cause update artifacts - fix.
over-redner by 1 char cell in each direction of an update region to
clean up overflow artifacts.
2014-02-23 22:11:02 +09:00
Davide Andreoli 0b02540e4e Emotion test: fix calculation of the displayed time. 2014-02-22 16:25:45 +01:00
Davide Andreoli 2a85f160b8 Emotion test: added --loop and --position args.
* New --loop: restart the playback when end reached
* New --position: start the playback from the last know position
* Fixed double -R option. now -r is --reflex and -R is --copyright

Loop and last-position was implemented yet, this commit just made
them optionally, so the default behaviour of the test reflect the
default behaviour of emotion.
2014-02-22 11:45:18 +01:00
Davide Andreoli a1ed4cf9d8 Emotion generic: remove the player restart hack.
The player restart (when reached the end) is a specific VLC issue,
it need to be managed inside the player, not here.
2014-02-22 11:29:16 +01:00
Cedric Bail f5f9e44219 eina: reduce log to warning when not found. 2014-02-22 16:37:15 +09:00
Tom Hacohen dae9eacb14 Revert "Evas font: Change font fallback to not depend on fontconfig >= 2.11."
It seems that before 2.10, this was not stable, and was causing issues
to some people. I guess we'll have to bring the dependency back, at
least until we can find a better solution.

This reverts commit ec41f67be4.

This fixes T1006.
2014-02-21 09:47:30 +00:00
Jean-Philippe Andre a2c3e73a87 Evas filters: Fix blending with fillmode "stretch"
When using stretch, all buffers were actually drawn 4 times
on top of each other. This was not visible because in most cases
these buffers were all opaque (alpha = 255 everywhere).
2014-02-21 17:30:49 +09:00
Cedric BAIL 58f424a199 eina: add more debug information when failing to open a file. 2014-02-21 17:13:09 +09:00
Cedric BAIL 5507a84028 evil: don't depend on the toolchain defined macro. 2014-02-21 16:48:45 +09:00
Cedric BAIL baf558a5c5 emotion: lower severity of a simple warning. 2014-02-21 15:08:26 +09:00
Jean-Philippe Andre 40b02730a3 Evil: Fix parallel build for Windows
Add some internal dependencies when building Evil stuff:
The two binaries test_evil and evil_suite need libdl and libevil.

This should fix "make -j8"
Tested with using mingw64 cross compilation
2014-02-21 10:18:48 +09:00
Gustavo Sverzut Barbieri 9804bba503 ecore_evas_fb: allow to force tslib even if mouse was handled.
sometimes a device may have a mouse connected but the primary use is
via touchscreen, then we force ecore_fb_ts_init() with
ECORE_EVAS_FB_TS_ALWAYS=1
2014-02-20 20:12:22 -03:00
Davide Andreoli 902307ccaf Emotion Generic: receiving the size on opening is correct.
Also: more comments to simplify command debugging.
2014-02-20 23:01:06 +01:00
Yakov Goldberg 607510d2dc image: remove EINA_ARG_NONNULL check for parameter
in evas_object_image_file_get(const Evas_Object *obj,
                              const char **file,
                              const char **key)
   remove check for second parameter "file", because it
   contradicts comment's statement, that NULL can be passed,
   if parameter not needed.
   All needed NULL checks of parameter are present inside func.
2014-02-20 16:57:46 +02:00
Jean-Philippe Andre bdb3ccd1dd Evas filters: Add a note to the transform doc
This is a special operation, with a simplistic implementation.
2014-02-20 13:27:43 +09:00
Jean-Philippe Andre c256bdc367 Evas filters: Fix documentation for color with rgba buffers
The documentation said color was used as a multiplier, but in
reality the image drawing functions don't use the context's
color when drawing. So the color is only defined for Alpha -> RGBA
operations.
2014-02-20 13:27:43 +09:00
Jean-Philippe Andre 2fe5656b63 Evas filters: Improve test coverage of the filters
LCOV reports > 80% of coverage in evas/filters.
2014-02-20 13:27:43 +09:00
Jean-Philippe Andre 18a7939f41 Evas filters: Add render test cases with pixel verification
Force render into an Ecore_Evas, and check that the pixels
are valid:
- Not all transparent (can't really happen)
- Not all black (since there's a black rect behind the text)
- All valid premultiplied values (A >= R,G,B)

Yes, it's a bit slow. But at least it really checks something :)
2014-02-20 13:27:43 +09:00
Jean-Philippe Andre e797f7f4c4 Evas filters: Add more test cases
Set filter on a text object and check the object's geometry.
Get the padding and the geometry so we're sure they match.

Also, pad_get would return 0 if the filter did not compile,
so this checks that these filters are valid.
2014-02-20 13:27:42 +09:00
Jean-Philippe Andre 78c7931575 Evas filters: Add test cases for the script parser
Basic syntax checks and instructions coverage.
2014-02-20 13:27:42 +09:00
Jean-Philippe Andre 74d8403217 Evas filters: Grow filter should gracefully blend
If grow() was used on top of another effect, it was simply
erasing all pixels. We need to use a temporary buffer and
blend it to the output.
2014-02-20 13:27:42 +09:00
Jean-Philippe Andre 0d9ffc2624 Evas filters: Fix padding in blur with offset
Test case was: blur(ox=40, rx=40);
This would crop the blurred text instead of having proper padding.
2014-02-20 13:27:42 +09:00
Jean-Philippe Andre 538d078cf0 Evas filters: Fix curve filter with RGBA
The curve filter did not respect premultiplied values in
RGBA images. Unfortunately, the fastest solution is to unpremul
and re-premul everytime...
2014-02-20 13:27:42 +09:00
Jean-Philippe Andre 8a694314a4 Evas filters: Fix options parsing
Test case "blend() blend();" did not fail when it should have.
Also, return an error if the program was empty (all whitespaces).
2014-02-20 13:27:42 +09:00
Jean-Philippe Andre ddf267e506 Evas filters: Fix padding in blur filter
The wrong value was used for the command's padding.
Also, remove mention of "motion" blur which is not
implemented.
2014-02-20 13:27:42 +09:00
Jean-Philippe Andre 126cbbc7a9 Evas filters: Mark parser functions as EAPI for tests
The filter unit test case will directly call the parser functions.
2014-02-20 13:27:42 +09:00
Cedric BAIL 4b2708a502 edje: Edje_Edit - make sure we don't use an not initialized value.
Should close CID 1181885 and CID 1181888.
2014-02-20 12:21:55 +09:00
Tom Hacohen 0e5d3f9b98 Evas textblock: Fixed a few word start/end issues.
Fixed issues with valgrind complaints at the end of the textblock, and
Fixed wrong jumping with some special cases like "a a a a "."

This fixes T995.
2014-02-19 14:38:06 +00:00
Tom Hacohen 00b2974a2c Evas textblock tests: Improved textblock word start/end tests.
Removed a wrong test and added some more tests.
2014-02-19 14:38:06 +00:00
Carsten Haitzler 51cebf64e9 ethumb - fix clients going right to disk and getting half written thumbs
client still do stats (not async) but at least they dont get
half-baked thumbs now
2014-02-19 22:13:09 +09:00
Daniel Kolesa dfb5c03ce0 edje: fix custom allocator with luajit 2014-02-19 13:05:10 +00:00
Tom Hacohen 27b1bebea5 Evas text utils: Fixed walking compound clusters.
In some scripts, like Devanagari, clusters can be split across more
than just one glyph. This is now fixed.

Thanks to YoungBok Shin for reporting.
2014-02-19 12:08:56 +00:00
Tom Hacohen e0428e9cb0 Evas textblock tests: Add a wrapping test for complex cluster wrapping.
This test uses some Devanagari text that should have more complex
clusters than what latin text can provide. This is a more complex
wrapping case that should be tested and haven't been tested until now.
2014-02-19 12:08:56 +00:00
Youngbok Shin 2bff3d1c2e evas - Added eina_stringshare_ref call for fallbacks, lang in font description.
Summary:
When the fdesc(Font Description) is duplicated,
ref of all of stringshare pointers should be increased.
But, in the evas_font_desc_dup API, we only increased ref for name string.
It can cause some of memory issues.

Reviewers: tasn, woohyun, seoz, Hermet

CC: cedric

Differential Revision: https://phab.enlightenment.org/D570
2014-02-19 10:44:34 +00:00
perepelits.m f9fe869d23 Edje_Edit: Add NULL-check
Summary:
Add NULL-check in:
         edje_edit_state_add
         _edje_edit_real_part_add
         _edje_part_recalc (edje_calc.c)

Reviewers: cedric, seoz, raster

Reviewed By: raster

CC: reutskiy.v.v, cedric

Differential Revision: https://phab.enlightenment.org/D567
2014-02-19 12:18:42 +09:00
Jean-Philippe Andre 6067c88b56 Evas filters: Use strtok instead of strtok_r for mingw
The Windows build (mingw) does not know about strtok_r.
So, let's use the non-safe variant strtok instead.
Currently, this function is called from the main thread only,
so this should be fine :)

In the future it would be nice to not use strtok anymore,
but strtok_r everywhere, and add it to evil. Considering the
release coming soon, I'm not going to change something like that
now.
2014-02-19 11:30:11 +09:00
Carsten Haitzler 199fb20fe4 ecore-evas - sdl module - limit to 1 window at a time
this should fix T693 and only allow 1 sdl window at any one time iwht
the sdl ecore-evas engine/module. it's simply invalid to use more than
one window with it.
2014-02-18 17:52:16 +09:00
Jean-Philippe Andre 54129dfcaa Evas filters: Fix documentation for displace
fillmode "none" is not supported, as it does not make much sense
(how do we displace pixels without an underlying displacement map?)
2014-02-18 10:22:50 +09:00
Jean-Philippe Andre ded097461d Evas filters: Fix padding with "blend"
Test case was:
buffer : a (alpha);
blur (20, dst = a);
blend (src = a, ox = 30);

In that case, padding was 20, 30, 20, 20.
So the blurred buffer was clipped on screen.
2014-02-18 10:22:50 +09:00
Jean-Philippe Andre 3819bc7abb Evas filters: Implement "fillmode" for displace
The fillmode (stretch or repeat map) was present and documented
for displace, but not implemented. Easy copy & paste from the
mask filter.
2014-02-18 10:22:50 +09:00
Jean-Philippe Andre 7cf02ca75b Evas filters doc: Add link to "fillmode" 2014-02-18 10:22:50 +09:00
Jean-Philippe Andre d70b805e6d Evas filters: Fix crash in displace filter
Simplify and fix map traversal code
2014-02-18 10:22:49 +09:00
Davide Andreoli af34bc8599 Emotion generic: nothing to see here, just small formatting while reading the code. 2014-02-17 21:26:46 +01:00
ChunEon Park a739716cee evas/image - update dirty region in the render time.
this fixes the proxy rendering that sub object of the source couldn't be dirty region set.

since the object could be invisible nor won't be pre-rendered neither.

Im supposing the mapped(proxy) object rendering sequence should be totally refactored

that should be separated with the normal rendering sequence.

Until that, this change will be alternative solution.
2014-02-17 23:05:36 +09:00
Daniel Hirt 08a6954904 Edje/entry: Add propagation handling in mouse_out for link anchors
Summary:
Link anchors are set to allow event propagation. In some cases, this
might lead to unwanted results in entry.
Adding a flag to event_flags allows to control this in Elementary.
One example that this fixes is having wrong mouse cursor handling when
having the mouse out of the link anchor, back to the entry parent
(in this case, additional handling in els_cursor.c is required so this
event is ignored if event_flag is set with EVAS_EVENT_FLAG_ON_HOLD.
Fixes T878.

Reviewers: tasn

CC: cedric

Maniphest Tasks: T878

Differential Revision: https://phab.enlightenment.org/D561
2014-02-17 21:18:19 +09:00
Jean-Philippe Andre 7b896e784d Fix make distcheck
Makefile_Edje contained the EXTRA_DIST files for Emotion, which
doesn't make much sense. So move that to Makefile_Emotion.am.

But if we want to add the test files only when EFL_TESTS is
enabled, then make distcheck doesn't work.
So, this is a bit weird.
2014-02-17 19:14:25 +09:00
Yakov Goldberg d3851b3026 Revert "ecore timer: change name of Eo constructor, to avoid clash in Eolian"
This reverts commit f7808f1f22.
2014-02-17 12:04:56 +02:00
Yakov Goldberg 9fa8ea0e49 Revert "ecore animator: change name of Eo constructor, to avoid clash in Eolian"
This reverts commit 16c43796a6.
2014-02-17 12:04:40 +02:00
Jean-Philippe Andre e7e3f73bbe Gif: Fix animated gifs when used as proxy sources
This looks like a typo: if (animated > 1) when animated is a... Bool!

So, I am not entirely sure why this bug is visible in case of gif
proxies, all it seems that the load_data function may be called
multiple times when the object is visible. So gif close and reopen
happen properly, and the first frame can be decoded.
2014-02-17 16:59:43 +09:00
Jean-Philippe Andre 7cc7af14b8 Evas filters: Fix alpha in displacement filter
If the displacement map has some alpha values (not 0xFF),
then the blending should take this alpha into account. This
part is fine.

BUT, since Evas relies on premultiplied colors... we have a
problem: R (dx) and G (dy) have already been scaled down.

Actually we would need to load the map in non premultiplied RGBA,
otherwise we'll lose precision on dx,dy as soon as A != 0xFF.
Well... I guess this will be a limitation of this filter, for now
at least. Most displacement maps shouldn't even have any alpha
anyways.
2014-02-17 10:14:11 +09:00
Jean-Philippe Andre 9472e03546 Evas filters: Fix RGBA displacement filter
Well... it was just broken: typo, lack of normalization on alpha,
invalid formula for blending. Duh!
2014-02-17 10:02:19 +09:00
Davide Andreoli 064307edee Emotion test: more cleanups
* really free Frame_Data on EVAS_CALLBACK_FREE (data was NULL)
* place video windows with an incremental offset
2014-02-16 20:33:11 +01:00
Davide Andreoli 11e04529f8 Emotion test: no need for an animator to update the time string.
It is yet handled in the frame decode callback, tested with vlc, gstreamer1, video and only audio.
2014-02-16 19:53:17 +01:00
Davide Andreoli 828e6f995d Emotion test: some small cleanups
* simpler and stronger way to search the theme file
* removed unused verbose option
* removed unused start_time var
2014-02-16 19:37:55 +01:00
Davide Andreoli 690a60c3cc Emotion test: no need to search for a folder that no more exists 2014-02-16 19:04:13 +01:00
Davide Andreoli 5e493a0851 Emotion test: add the volume slider also to the Reflex group.
NOTE: do we really need to maintain 2 different groups for the reflex effect?
The 2 groups differ only for the added reflection part.
Isn't enough to show/hide the reflection part when requested?
2014-02-16 18:27:10 +01:00
Davide Andreoli dae8975c99 Emotion test: Removed volume key bind. EINA_UNUSED--
Volume is now managed per-window, no more need for a global volume key.
2014-02-16 18:27:10 +01:00
Davide Andreoli 88c53dd2bc Emotion test: rename speed slider to alpha as it should be.
That slider was probaly used for speed years ago, it is used for alpha now, so call it with the right name.
2014-02-16 18:27:10 +01:00
Davide Andreoli 2ed26fed59 Emotion test: New volume slider. More readable alpha text. 2014-02-16 18:27:10 +01:00
Yakov Goldberg a1b8e38a5c edje: fix Eo ids, to make Eolian keep silence 2014-02-16 16:51:30 +02:00
Yakov Goldberg 294b46654e edje: fix doxygen, to make Eolian keep silence 2014-02-16 16:51:30 +02:00
Davide Andreoli 1a9952eca7 Emotion generic interface: FILE_SET_DONE do not have any param. 2014-02-16 14:14:23 +01:00
Yakov Goldberg f7808f1f22 ecore timer: change name of Eo constructor, to avoid clash in Eolian 2014-02-16 13:06:14 +02:00
Yakov Goldberg 16c43796a6 ecore animator: change name of Eo constructor, to avoid clash in Eolian 2014-02-16 13:06:14 +02:00
Davide Andreoli 4f41c98906 Emotion test: some small usability improvements.
* use different icons for play/pause/stop
* alpha slider moved to the right
* centered the progress text
2014-02-14 21:49:08 +01:00
Davide Andreoli 482ce33eb0 Emotion test theme: formatting 2014-02-14 20:51:25 +01:00
Davide Andreoli 92fb6926b5 Emotion test theme: tabs-- 2014-02-14 20:35:50 +01:00
Davide Andreoli 38e85d79f5 Emotion test: tabs-- 2014-02-14 20:31:07 +01:00
Daniel Kolesa 136cf346e9 evas/common: fix segfaults in evas_map_image_loop.c 2014-02-14 16:30:51 +00:00
Sung W. Park 2b4a7b438d evas gl: added partial rendering support for qcom extension
When running in direct rendering mode, properly support partial
rendering if the extension is properly supported.

Also, fixed the SwapBufferwWithDamage rectangle coordinate bug.
It wasn't properly y-inverted before.
2014-02-15 02:33:47 +09:00
Jean-Philippe Andre 1fae9e5e21 cserve2: Fix minor clang warning 2014-02-14 13:06:05 +09:00
Jean-Philippe Andre df65e71e79 Evas filters: Another clang warning fix
Prevent error case from crashing.
2014-02-14 13:06:05 +09:00
Jean-Philippe Andre a4ecf34316 Evas filters: More clang fixes
NULL ptr dereference.
2014-02-14 13:06:05 +09:00
Jean-Philippe Andre 6642d16a7d Evas filters: Fix more clang stuff and add safety checks
The prepare function should not fail, unless something is very
wrong. Also, return NULL instead of EINA_FALSE.
2014-02-14 13:06:00 +09:00