platform/upstream/efl.git
9 years agoecore: improve network events handling on Windows.
Guillaume Friloux [Fri, 30 Jan 2015 13:25:53 +0000 (14:25 +0100)]
ecore: improve network events handling on Windows.

9 years agoecore_con: do not load /etc/hosts on Windows.
Guillaume Friloux [Fri, 30 Jan 2015 13:24:35 +0000 (14:24 +0100)]
ecore_con: do not load /etc/hosts on Windows.

9 years agoecore: add FD_CLOSE, FD_ACCEPT and FD_CONNECT for sockets on Windows.
Guillaume Friloux [Fri, 30 Jan 2015 13:18:37 +0000 (14:18 +0100)]
ecore: add FD_CLOSE, FD_ACCEPT and FD_CONNECT for sockets on Windows.

9 years agoecore_con: make disconnects work on Windows.
Guillaume Friloux [Fri, 30 Jan 2015 13:16:59 +0000 (14:16 +0100)]
ecore_con: make disconnects work on Windows.

9 years agoecore_con: fix use of FormatMessage for error reporting on windows.
Guillaume Friloux [Fri, 30 Jan 2015 13:09:34 +0000 (14:09 +0100)]
ecore_con: fix use of FormatMessage for error reporting on windows.

@fix

9 years agoecore_con: silent warning with send() usage.
Guillaume Friloux [Fri, 30 Jan 2015 13:11:56 +0000 (14:11 +0100)]
ecore_con: silent warning with send() usage.

9 years agoecore_con: use send() instead of write() for portability.
Guillaume Friloux [Fri, 30 Jan 2015 13:06:47 +0000 (14:06 +0100)]
ecore_con: use send() instead of write() for portability.

9 years agoecore_con: use recv() instead of read for better portability.
Guillaume Friloux [Fri, 30 Jan 2015 13:01:50 +0000 (14:01 +0100)]
ecore_con: use recv() instead of read for better portability.

9 years agoecore_con: fix _ecore_con_server_flush on Windows.
Guillaume Friloux [Fri, 30 Jan 2015 10:21:03 +0000 (11:21 +0100)]
ecore_con: fix _ecore_con_server_flush on Windows.

@fix

9 years agoecore_con: Fix checks from socket() and accept() under windows.
Nicolas Aguirre [Fri, 30 Jan 2015 10:04:19 +0000 (11:04 +0100)]
ecore_con: Fix checks from socket() and accept() under windows.

import from Guillaume Friloux ecore's fork : https://github.com/gfriloux/ecore/commit/ab2d406a37c0ae205b6a934b7ea747f4b2baee81

9 years agoecore_con: use SOCKET and not int for socket descriptors on win32
Guillaume Friloux [Fri, 30 Jan 2015 10:03:00 +0000 (11:03 +0100)]
ecore_con: use SOCKET and not int for socket descriptors on win32

9 years agoecore_con: use ioctlsocket() when building for windows.
Guillaume Friloux [Fri, 30 Jan 2015 09:51:52 +0000 (10:51 +0100)]
ecore_con: use ioctlsocket() when building for windows.

fcntl() doesnt work under windows.

References :
- http://msdn.microsoft.com/en-us/library/windows/desktop/ms738573%28v=vs.85%29.aspx
- http://msdn.microsoft.com/en-us/library/windows/desktop/ms740096%28v=vs.85%29.aspx

imported from Guillaume Friloux ecore fork : https://github.com/gfriloux/ecore/commit/66da77d491d4f304767bac88d9ace4a5ff5f41e0

9 years agoecore: directly allocating and freeing Ecore_Win32_Handler variable.
michelle legrand [Wed, 4 Feb 2015 11:01:36 +0000 (12:01 +0100)]
ecore: directly allocating and freeing Ecore_Win32_Handler variable.

There was no memory pool nor any function like that in fact.

@fix

9 years agoeio: check that the file to be monitored is not an empty string.
michelle legrand [Tue, 3 Feb 2015 12:25:58 +0000 (13:25 +0100)]
eio: check that the file to be monitored is not an empty string.

This fix segmentation faults on Windows caused by eio_monitor events.

@fix

9 years agoeolian: add right extension to eolian_gen if we are on Windows
michelle legrand [Tue, 3 Feb 2015 09:15:15 +0000 (10:15 +0100)]
eolian: add right extension to eolian_gen if we are on Windows

In previous version of this commit we checked if the _WIN32 macro was
defined. But now I am using EXEEXT from autotools to get
eolian_gen extension.

@fix

9 years agoeina: fix Eina_Log to only try to free non deleted log.
michelle legrand [Wed, 14 Jan 2015 11:02:21 +0000 (12:02 +0100)]
eina: fix Eina_Log to only try to free non deleted log.

@fix

9 years agoeina: correctly handle and report Eina_File error on Windows.
Adrien Nader [Wed, 11 Feb 2015 10:58:28 +0000 (11:58 +0100)]
eina: correctly handle and report Eina_File error on Windows.

@fix

9 years agoeina: remove Eina_Counter and use provided Windows posix compatible implementation.
Adrien Nader [Wed, 11 Feb 2015 11:09:59 +0000 (12:09 +0100)]
eina: remove Eina_Counter and use provided Windows posix compatible implementation.

9 years agoeina: remove Windows specific thread implementation and rely on posix compliant libra...
Adrien Nader [Wed, 11 Feb 2015 11:15:43 +0000 (12:15 +0100)]
eina: remove Windows specific thread implementation and rely on posix compliant library instead.

9 years agoecore-drm should not use sscanf when getting logind vt
Mike Blumenkrantz [Tue, 10 Feb 2015 21:23:17 +0000 (16:23 -0500)]
ecore-drm should not use sscanf when getting logind vt

this should be more robust for when something like "/dev/tty4" is passed

@fix

9 years agoEina tmpstr: Fix tmpstr_strlen.
Tom Hacohen [Tue, 10 Feb 2015 09:53:29 +0000 (09:53 +0000)]
Eina tmpstr: Fix tmpstr_strlen.

Weird. This is the code I had, I don't know how it got lost.

Good job to Daniel Kolesa for spotting this.

9 years agoEvas masking: Force BLEND mode in case of image masking (GL)
Jean-Philippe Andre [Tue, 10 Feb 2015 09:18:05 +0000 (18:18 +0900)]
Evas masking: Force BLEND mode in case of image masking (GL)

This fixes some cases where the image has no alpha and COPY mode
is used, but a mask is also applied. In that case, masking
takes precedence and BLEND mode is used.

@fix

9 years agoevas/software_x11: Restore legacy compatibility with old SLP DRM
Jean-Philippe Andre [Tue, 10 Feb 2015 08:26:24 +0000 (17:26 +0900)]
evas/software_x11: Restore legacy compatibility with old SLP DRM

I really REAAALLLY doubt that was necessary, but I'm still adding
these few changes for legacy compatibility.

This lib seriously should have had a stable API.

9 years agoevas/software_x11: replace drm_slp with tbm
Dongyeon Kim [Tue, 10 Feb 2015 08:00:54 +0000 (17:00 +0900)]
evas/software_x11: replace drm_slp with tbm

Summary:
libdrm_slp has been replaced with libtbm, so modify xlib swapper
to use tbm apis instead of drm_slp apis

Test Plan: Local tests

Reviewers: raster, Hermet, cedric, jpeg

Reviewed By: jpeg

Subscribers: cedric, wonsik

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

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
9 years agoEvas sw_x11: Fix previous patches
Jean-Philippe Andre [Tue, 10 Feb 2015 06:02:31 +0000 (15:02 +0900)]
Evas sw_x11: Fix previous patches

Restore support for Evas GL with the software engine (OSMesa).

9 years agoevas/software_x11: implement tbm native surface type
Dongyeon Kim [Tue, 3 Feb 2015 11:36:41 +0000 (20:36 +0900)]
evas/software_x11: implement tbm native surface type

Summary:
This native surface type is based on the tbm surface used for the tizen platform.
For the software_x11 backend, image data is retrieved from tbm surface
and color format converted appropriately.
This will only work when libtbm.so is present in the system.
@feature

Test Plan: Local tests

Reviewers: raster, cedric, jpeg, Hermet

Subscribers: wonsik, cedric

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
9 years agoevas/software_x11: implement native surface set for x11 type
Dongyeon Kim [Tue, 3 Feb 2015 11:35:41 +0000 (20:35 +0900)]
evas/software_x11: implement native surface set for x11 type

Summary:
implement native surface set for EVAS_NATIVE_SURFACE_X11 type
on software_x11 backend.
@feature

Test Plan: local tests on PC

Reviewers: jpeg, cedric, raster, Hermet

Subscribers: wonsik, cedric

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
9 years agoevas/gl_x11: introduce tbm native surface type
Dongyeon Kim [Mon, 19 Jan 2015 03:28:32 +0000 (12:28 +0900)]
evas/gl_x11: introduce tbm native surface type

Summary:
This native surface type is based on the tbm surface used for the tizen platform.
EGL_TIZEN_image_native_surface EGL extension is used to map
tbm surface to an egl image
@feature

Reviewers: raster, cedric, jpeg

Subscribers: cedric, wonsik

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
9 years agoEvas 3d: Fix compilation with EGL/GLES
Jean-Philippe Andre [Tue, 10 Feb 2015 02:53:08 +0000 (11:53 +0900)]
Evas 3d: Fix compilation with EGL/GLES

Please verify this. I'm not sure what the function is supposed
to return (alpha or red?).

9 years agoEvas render: Improve debug output with REND_DBG
Jean-Philippe Andre [Mon, 26 Jan 2015 08:35:42 +0000 (17:35 +0900)]
Evas render: Improve debug output with REND_DBG

Better formatting and less code clutter.

This is a purely non-functional change as all the
changed lines are ifdef'ed out by default.

9 years agoEvas GL: Add support for uniforms in the shaders
Jean-Philippe Andre [Fri, 6 Feb 2015 03:21:25 +0000 (12:21 +0900)]
Evas GL: Add support for uniforms in the shaders

This will simplify greatly the code for map masking.

9 years agoEvas masking: Fix potential issues with map & masking
Jean-Philippe Andre [Mon, 9 Feb 2015 12:34:04 +0000 (21:34 +0900)]
Evas masking: Fix potential issues with map & masking

These bugs have not been observed but the code logic did not
make sense.

@fix

9 years agoEvas masking: Fix some garbage pixels with the SW engine
Jean-Philippe Andre [Mon, 9 Feb 2015 12:16:06 +0000 (21:16 +0900)]
Evas masking: Fix some garbage pixels with the SW engine

A rare case of garbage data would happen if smooth scaling
was called with a mask and 1:1 scaling. Use the proper
render_op to COPY for the first pass.

@fix

9 years agoMerge branch 'devs/cedric/next'
Cedric BAIL [Mon, 9 Feb 2015 21:16:51 +0000 (22:16 +0100)]
Merge branch 'devs/cedric/next'

Just merging patch that did come during the end of our last release cycle and couldn't
get in as they were to much of a new feature.

9 years agoeina: fix eina_bench.c compilation error.
Avi Levin [Mon, 9 Feb 2015 21:04:01 +0000 (22:04 +0100)]
eina: fix eina_bench.c compilation error.

Summary:
When trying to compile eina_bench.c we get an error that say we didnt
defined the variables that EINA_ARRAY_ITER_NEXT. I defined them.
@fix

Reviewers: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_con: add test cases to test ecore_con_server and client with different options.
Srivardhan Hebbar [Mon, 9 Feb 2015 11:11:37 +0000 (12:11 +0100)]
ecore_con: add test cases to test ecore_con_server and client with different options.

Summary: Before ecore_con_server_add and client add with only TCP sockets. Have made that function generic and testing for other options too. Not all options are covered. Need to add different kind of cases for other options. Will check how I can add and add.

Reviewers: stefan_schmidt, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: Evas_3D - ColorPick mechanism finding node and mesh in scene.
Oleksandr Shcherbina [Thu, 5 Feb 2015 14:34:25 +0000 (15:34 +0100)]
evas: Evas_3D - ColorPick mechanism finding node and mesh in scene.

Summary:
Added additional texture and framebuffer for rendering meshes to it.
Added function that return OpenGL id additional texture
Added function that return color from target texture by mouse pick coordinates
Added function that render need meshes to target texture
Added engine wrappers for possibility force render to texture

@feature

Reviewers: Hermet, raster, cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: Evas_3D - improve node tree update method.
Dmytro Dadyka [Thu, 5 Feb 2015 14:32:11 +0000 (15:32 +0100)]
evas: Evas_3D - improve node tree update method.

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoedje: add of model lookups.
perepelits.m [Thu, 5 Feb 2015 14:29:03 +0000 (15:29 +0100)]
edje: add of model lookups.

Summary:
I have added some methods to edje_cc_out.c to organize model lookups. The same methods already exists for images.
Also, I have removed source_type because now we don't need it in efl_file_set.

@feature

Reviewers: raster, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeldbus: refactoring code.
Guilherme Lepsch [Thu, 5 Feb 2015 14:20:36 +0000 (15:20 +0100)]
eldbus: refactoring code.

Summary:
Code smells: Don't Repeat Yourself

Depends on D1927

Reviewers: felipealmeida, larryolj, cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas text: fix _ellipsis_get to return -1.0 on failure.
Youngbok Shin [Mon, 9 Feb 2015 17:30:30 +0000 (17:30 +0000)]
evas text: fix _ellipsis_get to return -1.0 on failure.

Summary:
When getting ellipsis value from evas text object fails,
the most reasonable return value is -1.0.
Currently, evas_object_text_ellipsis_get API with NULL returns 0.0.
It means ellipsis is not off. It must return -1.0 when API fails.
@fix

Comments by Tom: until now, this was inconsistent. With this change, it
now returns -1.0 consistently. Also, fixed commit summary.

Reviewers: woohyun, Hermet, seoz, tasn

Reviewed By: tasn

Subscribers: cedric

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

9 years agoEdje: edje_edit - fix Segmentation Fault on new BOX part
Vitalii Vorobiov [Mon, 9 Feb 2015 16:58:26 +0000 (18:58 +0200)]
Edje: edje_edit - fix Segmentation Fault on new BOX part

After adding new part (with type BOX) there was a SIGSEV because
of structure that wasn't initialized.

@fix

9 years agoEina tmpstr: remove usage of tmpstr_strlen().
Tom Hacohen [Mon, 9 Feb 2015 14:02:40 +0000 (14:02 +0000)]
Eina tmpstr: remove usage of tmpstr_strlen().

9 years agoEina tmpstr: fix race condition.
Tom Hacohen [Mon, 9 Feb 2015 13:47:00 +0000 (13:47 +0000)]
Eina tmpstr: fix race condition.

We take a lock, search the list, and the release the lock before we
finish using the values of the list. While unlikely, the string could be
deleted in the meanwhile.

9 years agoEina tmpstr: deprecate tmpstr_strlen and add tmpstr_len.
Tom Hacohen [Mon, 9 Feb 2015 13:43:40 +0000 (13:43 +0000)]
Eina tmpstr: deprecate tmpstr_strlen and add tmpstr_len.

Confusingly enough, strlen was actually returning strlen + 1 for
strings. The new functions behaves as expected.

9 years agoconfigure: Switch to dev mode again. Merge window for 1.14 is open now.
Stefan Schmidt [Mon, 9 Feb 2015 13:08:14 +0000 (14:08 +0100)]
configure: Switch to dev mode again. Merge window for 1.14 is open now.

9 years agorelease: Update NEWS and bump version for 1.13.0 release v1.13.0
Stefan Schmidt [Mon, 9 Feb 2015 12:12:51 +0000 (13:12 +0100)]
release: Update NEWS and bump version for 1.13.0 release

9 years agoevas - gl engine - pipe renderer - disabling of unused arrays for lines
Carsten Haitzler (Rasterman) [Mon, 9 Feb 2015 17:28:36 +0000 (02:28 +0900)]
evas - gl engine - pipe renderer - disabling of unused arrays for lines

@fix - this fixes disabling of unused texa and texsam arays when line
drawing - spotted in code review and bug hunting of another bug.

9 years agoevas - gl enigne - mask logic fix with texa draw arrays
Carsten Haitzler (Rasterman) [Mon, 9 Feb 2015 17:27:00 +0000 (02:27 +0900)]
evas - gl enigne - mask logic fix with texa draw arrays

this fixes a logic oops in addition of masking to evas which caused
crashes with a null texa array causing a crash in gldrawarrays

9 years agoEvas GL: Fix GLES1.1 extension initialisation bug
mythri.venugopal [Mon, 9 Feb 2015 05:23:29 +0000 (14:23 +0900)]
Evas GL: Fix GLES1.1 extension initialisation bug

Summary:
Extension function pointer initialisation requires glGetString(GL_EXTENSIONS).
To get GLESv1 extension string, GLESv1 context has to be bound.
Change involves updating extensions after GLESv1 context has been bound.

Reviewers: jpeg

Subscribers: cedric

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

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
9 years agoefl: interface are still clearly in beta.
Cedric BAIL [Sat, 7 Feb 2015 12:46:12 +0000 (13:46 +0100)]
efl: interface are still clearly in beta.

9 years agoevil: fix initialisation.
michelle legrand [Sat, 7 Feb 2015 12:45:05 +0000 (13:45 +0100)]
evil: fix initialisation.

Eina_Log is not available at this point of the initialisation.

9 years agoUpdate russian translation
Igor Murzov [Sat, 7 Feb 2015 12:38:49 +0000 (15:38 +0300)]
Update russian translation

9 years agoforgotten ee bit from previous commit
Mike Blumenkrantz [Fri, 6 Feb 2015 23:25:01 +0000 (18:25 -0500)]
forgotten ee bit from previous commit

9 years agoecore evas should not crash when unsetting pointer
Mike Blumenkrantz [Fri, 6 Feb 2015 22:54:08 +0000 (17:54 -0500)]
ecore evas should not crash when unsetting pointer

ref D812

disappointed.jpg

9 years agoEvas masking: Add forgotten file in previous commit
Jean-Philippe Andre [Fri, 6 Feb 2015 03:35:12 +0000 (12:35 +0900)]
Evas masking: Add forgotten file in previous commit

9 years agoEvas masking: Also fix map masking with non-bgra images
Jean-Philippe Andre [Fri, 6 Feb 2015 03:31:24 +0000 (12:31 +0900)]
Evas masking: Also fix map masking with non-bgra images

9 years agoecore-drm: Remove unused variable
Chris Michael [Thu, 5 Feb 2015 16:21:36 +0000 (11:21 -0500)]
ecore-drm: Remove unused variable

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: Fix issue with ecore_drm_output_crtc_Find sending back an
Chris Michael [Thu, 5 Feb 2015 16:06:41 +0000 (11:06 -0500)]
ecore-drm: Fix issue with ecore_drm_output_crtc_Find sending back an
invalid id. Fix T2086

Summary: In order to avoid getting returned an invalid id, we should
not be checking the currently active encoder and crtc combination
because outputs may have changed, encoders/crtc combinations could
have changed, etc, etc.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore_cocoa: Handle more special characters and capital characters.
Michelle Legrand [Thu, 22 Jan 2015 10:24:42 +0000 (11:24 +0100)]
ecore_cocoa: Handle more special characters and capital characters.

This improve the situation and only affect Ecore_Cocoa code base by
detecting a useful charactere.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_cocoa: add ecore event on mouse scroll for cocoa.
Michelle Legrand [Thu, 29 Jan 2015 12:56:49 +0000 (13:56 +0100)]
ecore_cocoa: add ecore event on mouse scroll for cocoa.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_cocoa: replace "keyname" by "key".
Michelle Legrand [Wed, 28 Jan 2015 14:11:01 +0000 (15:11 +0100)]
ecore_cocoa: replace "keyname" by "key".

Ecore_Event_Key attribute "key" cannot be NULL. This
raise a segmentation fault in Enventor when hitting on
modifier keys.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_cocoa: create a log domain and use Eina_Log.
Nicolas Aguirre [Thu, 29 Jan 2015 16:08:23 +0000 (17:08 +0100)]
ecore_cocoa: create a log domain and use Eina_Log.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_cocoa: don't send mouse event with negative x or y values.
Nicolas Aguirre [Thu, 29 Jan 2015 16:04:28 +0000 (17:04 +0100)]
ecore_cocoa: don't send mouse event with negative x or y values.

With cocoa you may have negatives values when Mouse Down or Up. This
changes fix this behavior by sending mouse event only if x and y are
inside the ecore_evas space.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_cocoa: add new events type for multiple window support.
Romain Perier [Thu, 15 Jan 2015 15:45:32 +0000 (16:45 +0100)]
ecore_cocoa: add new events type for multiple window support.

This commit adds a method in Ecore_Cocoa_Window to be able to retrieve an unique
identifier for each window. It adds new events type and modify existing ones to
pass these windows identifiers through the event call chain. Resize, GotFocus and
LotFocus events are also updated to pass these identifiers to event handlers.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_cocoa: use the right Cocoa notification handlers for focus events
Romain Perier [Thu, 15 Jan 2015 16:20:16 +0000 (17:20 +0100)]
ecore_cocoa: use the right Cocoa notification handlers for focus events

Don't use NSAppKitDefined events subtype for focus events, which contain NULL
window object most of the time. Use the NSWindowDelegate method designed for that
purpose instead. It fixes random focus issues in windows which was caused by
incorrect window identifier not found in ecore_evas_cocoa.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_cocoa: add on the fly resizing support.
Romain Perier [Thu, 15 Jan 2015 16:05:29 +0000 (17:05 +0100)]
ecore_cocoa: add on the fly resizing support.

Until now, video_resize events was received only when application returned control
to the event loop. When a window is resized dynamically a lot of video_resize
events are emitted from EcoreCocoaWindow::windowDidResize and not handled
immediatly, only when the main thread is back to the ecore main loop. This is why
there are not refreshed window areas. Call ecore_main_loop_iterate() from
windowDidResize solves the issue.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_cocoa: fix _nsevent_window_is_type_of() type check
Romain Perier [Tue, 23 Dec 2014 16:51:51 +0000 (17:51 +0100)]
ecore_cocoa: fix _nsevent_window_is_type_of() type check

isKindOfClass should receive an instance of a class and a class as arguments and
not two class. It fixes Mouse events sent to a window on OSX.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_cocoa: handle more special characters and capital characters.
Michelle Legrand [Thu, 22 Jan 2015 10:24:42 +0000 (11:24 +0100)]
ecore_cocoa: handle more special characters and capital characters.

This patch is self contained for Mac OS X and improve its keyboard handling.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeina: fix eina_test_rwlock test on OSX.
pierre lamot [Wed, 21 Jan 2015 11:04:37 +0000 (12:04 +0100)]
eina: fix eina_test_rwlock test on OSX.

add a reimplementation of clock_gettime for OSX within the test in
order to be able to test eina_condition_timedwait

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore: check that a test doesn't enter in an infitie loop.
pierre lamot [Wed, 21 Jan 2015 10:27:56 +0000 (11:27 +0100)]
ecore: check that a test doesn't enter in an infitie loop.

check that ecore_test_ecore_thread_eina_thread_queue_t6 doesn't
enter in an infinite loop if something goes wrong, if the main thread
doesn't receive the message number 10000

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeina: fix semaphore initialisation
pierre lamot [Wed, 21 Jan 2015 10:05:41 +0000 (11:05 +0100)]
eina: fix semaphore initialisation

This patch fix the semaphore initialisation on posix plateform

there was a preconditon test which returned the semaphore
uninitialised when count_init was 1, this caused the semaphore to
be unusable on OSX plateform. Furthermore, it seems that we need to
unlink the semaphore before its initialisation on OSX as there seems
to have some kind of persistence of the semaphore accross execution.

warning, this patch change the signification of the parametter
count_init on linux plateform, this parametter is now consistent on
every plateform, with the meaning of setting the initial count value
of the semaphore.

This used to be on linux 1 -> the semaphore is shared and initialised
at 1 and 0 -> the semaphore is not initialised, thus, by side effect
not shared and initialised at 0.

This patch set on linux plateform the semaphore as systematically
shared

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: jpeg decoders alows a difference of 1 bit per component.
pierre lamot [Tue, 20 Jan 2015 14:39:08 +0000 (15:39 +0100)]
evas: jpeg decoders alows a difference of 1 bit per component.

The required precision of decompressed images allows a difference of
1 bit for each pixel compoment [1] . Such difference has been noticed
on OSX when using libjpeg9 from macports.

evas_suite images tests has been modified to compare jpeg images with
this tolerance. Other image formats are still compare with exact
precision

[1] http://en.wikipedia.org/wiki/JPEG#Required_precision

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore: fix path comparison in Ecore_File test suite.
pierre lamot [Thu, 11 Dec 2014 13:09:06 +0000 (14:09 +0100)]
ecore: fix path comparison in Ecore_File test suite.

The Ecore_File test suite was comparing path with strcmp,
which can lead to incorect comparison in some case (comparing
realpath and expected path for instance)

This patch adds a function to compare paths within this tests. Paths
are compared by getting the "realpath" of each operand

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeina: memcmp can't be used to compare timeval due to potential padding on 64bit archi...
pierre lamot [Thu, 11 Dec 2014 10:21:50 +0000 (11:21 +0100)]
eina: memcmp can't be used to compare timeval due to potential padding on 64bit architecture.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoedje: epp - fix build of edje file in cas of recursive includes.
Nicolas Aguirre [Tue, 3 Feb 2015 09:44:11 +0000 (10:44 +0100)]
edje: epp - fix build of edje file in cas of recursive includes.

Amitesh Singh fixed this issue with Commit
e66e132d9dabecb8273fe3962099d4523fef1055, but this commit has been reverted
recently, by a commit freeing ressources
(6d0b834a76c3301bf4c4b29752f902dbe8a8525e). It's clear that we are leaking here
if we remove the free, but there is also a valgrind error when this memory is
freed. After trying to debug and understand the code of epp, i can only
propose to remove this free, we will need to include a lot of files before this
memory leak could be visible.

It is also not a real problem, the memory leak only concern the file name passed
in the include directive and epp is started per file anyway. It is unlikely to
create any real life problem and we better spend our time on more pressing matter.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: Evas_3D - fix order of transformation while updating bounding object.
Oleksandr Shcherbina [Thu, 5 Feb 2015 14:25:29 +0000 (15:25 +0100)]
evas: Evas_3D - fix order of transformation while updating bounding object.

Summary:
The order of tranformation changed to scale, orientation, position as
in some cases it can lead to incorrect value for the bounding box.

@fix

Reviewers: cedric, Hermet, raster

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: Evas_3D - fix evas_3d_scene_pick when trying to get empty texcoords from mesh.
Oleksandr Shcherbina [Thu, 5 Feb 2015 14:17:43 +0000 (15:17 +0100)]
evas: Evas_3D - fix evas_3d_scene_pick when trying to get empty texcoords from mesh.

Summary:
During filling evas pick public data by API evas_3d_scene_pick
segfault can occur if mesh was created without texcoords.
See functions - _pick_data_mesh_add, _pick_data_texcoord_update

@fix

Reviewers: cedric, Hermet, raster

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeldbus: eina_value not allocated from mempool.
Guilherme Lepsch [Thu, 5 Feb 2015 14:15:37 +0000 (15:15 +0100)]
eldbus: eina_value not allocated from mempool.

Summary: Eina_Value must be allocated with eina_value_new() to be freed by eina_value_free().
@fix

Reviewers: felipealmeida, larryolj, cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: Evas_3D - fix when bounding sphere is large, situation with incorrect frustum...
Bogdan Devichev [Thu, 5 Feb 2015 14:06:10 +0000 (15:06 +0100)]
evas: Evas_3D - fix when bounding sphere is large, situation with incorrect frustum calculation was possible.

Summary: When center of bounding sphere was out of frustum and number of intersections between bs and planes of frustum was more then 3, objects disappeared.
@fix

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeina: Eina_File - add test case for path resolution.
Daniel Hirt [Thu, 5 Feb 2015 14:01:12 +0000 (15:01 +0100)]
eina: Eina_File - add test case for path resolution.

Summary:
This is a follow-up to the 7cbf22212f0c3292dbd1919f4cdd15802e9b9d84
revert commit. It's a bit late, as the issue has already been fixed with
the later 7143bd7fb5196f97003216528bfbfb8bec4826bd commit.

This test checks eina_file_sanitize "../" case with absolute paths (i.e.
that start with "/"), and should fail prior the revert mentioned above.

Should come up with more tests like this one.

Reviewers: stefan_schmidt, cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeina: Eina_Value - use eina_mempool_free to cleanup the memory
vivek [Thu, 5 Feb 2015 13:57:14 +0000 (14:57 +0100)]
eina: Eina_Value - use eina_mempool_free to cleanup the memory

Summary:
The new value is allocated using Eina_Mempool, it should be freed using
eina_mempool, not using libc free.

@fix

Signed-off-by: vivek <vivek.ellur@samsung.com>
Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoEvas masking: Fix GL masking with maps and stuff
Jean-Philippe Andre [Thu, 5 Feb 2015 13:27:27 +0000 (22:27 +0900)]
Evas masking: Fix GL masking with maps and stuff

This fixes an issue spotted after the previous fix.
Passing the Y-invert flag is necessary because in the usual
case a map is rendered with Y-invert (OpenGL coords vs. Evas coords)
but in case a map is rendered in an FBO (another map's surface)
then Y-invert must be unset.

9 years agoEvas masking: Fix another issue with masking
Jean-Philippe Andre [Thu, 5 Feb 2015 07:11:45 +0000 (16:11 +0900)]
Evas masking: Fix another issue with masking

Fixes rendering in the following case:
- Object with a map has a mask
- Object is child of smart object which also has a map (eg. transit)
--> Masking did not apply to the children before this patch.

NOTE: This works fine in SW but still didn't work in GL, see the
      following commit...

9 years agoelua: correct eo inheritance behavior
Daniel Kolesa [Thu, 5 Feb 2015 11:10:29 +0000 (11:10 +0000)]
elua: correct eo inheritance behavior

Now we try to treat first inherit as a parent and everything else as a mixin.
If the first inherit is not a class (interface or mixin), every inherit is
treated as a mixin.

@fix

9 years agoeldbus: fix memory leak.
Guilherme Lepsch [Thu, 5 Feb 2015 10:28:36 +0000 (11:28 +0100)]
eldbus: fix memory leak.

Summary:

@fix

Reviewers: felipealmeida, larryolj, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoEcore_con: fix initialisation clean up and avoid memory leak.
Srivardhan Hebbar [Thu, 5 Feb 2015 10:26:58 +0000 (11:26 +0100)]
Ecore_con: fix initialisation clean up and avoid memory leak.

Summary: When ecore_init failed or when failed to initialize ecore_con_log_domain, then evil_shutdown was not called. So cleaned up code and added the fix.

@fix

Reviewers: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevil: prevent _evil_init_count from going below zero.
Srivardhan Hebbar [Thu, 5 Feb 2015 10:24:36 +0000 (11:24 +0100)]
evil: prevent _evil_init_count from going below zero.

Summary: _evil_init_count should never go below zero. This can occur, if a developer mistakenly calls evil_shutdown before calling evil_init. So fixing the code so that it never goes below zero.

Reviewers: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeldbus: production code inside Eina Safety Check assert.
Guilherme Lepsch [Thu, 5 Feb 2015 10:23:41 +0000 (11:23 +0100)]
eldbus: production code inside Eina Safety Check assert.

Summary: Eina Safety Checks assert macros don't do anything (no-op) if EINA_SAFETY_CHECKS is undefined.

@fix

Reviewers: felipealmeida, larryolj, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: Evas_3D - fix bug with uninit Evas_Mat4 flag.
Dmytro Dadyka [Thu, 5 Feb 2015 10:16:57 +0000 (11:16 +0100)]
evas: Evas_3D - fix bug with uninit Evas_Mat4 flag.

Reviewers: Hermet, raster, cedric

@fix

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoedje: Fix typo in a documentation while reading it.
Daniel Juyung Seo [Thu, 5 Feb 2015 01:50:03 +0000 (10:50 +0900)]
edje: Fix typo in a documentation while reading it.

9 years agoecore-x: Port deprecated API and new API function to xcb
Chris Michael [Wed, 4 Feb 2015 16:28:01 +0000 (11:28 -0500)]
ecore-x: Port deprecated API and new API function to xcb

Summary: This ports the deprecated screensaver_suspend and new API
screensaver_suspend to work with xcb.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-x: Deprecate old misspelled API function and add new one
Chris Michael [Wed, 4 Feb 2015 16:26:03 +0000 (11:26 -0500)]
ecore-x: Deprecate old misspelled API function and add new one

Summary: This deprecates the old misspelled screensaver_suspend API
function and adds a new one.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-x: Deprecate misspelled screensaver API function
Chris Michael [Wed, 4 Feb 2015 16:23:24 +0000 (11:23 -0500)]
ecore-x: Deprecate misspelled screensaver API function

Summary: This API function is misspelled, so after speaking with
Stefan, we've decided to deprecate this function add add a properly
spelled one.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoEcore_con: preventing _init_con_ssl_init_count to go below zero.
Srivardhan Hebbar [Wed, 4 Feb 2015 13:09:24 +0000 (14:09 +0100)]
Ecore_con: preventing _init_con_ssl_init_count to go below zero.

Summary: _init_con_ssl_init_count should not go below zero. This can occur if a developer mistakenly calls ssl shutdown before calling ssl init. So adding the check to prevent this.

Reviewers: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeina: fix valgrind invalid read of size in eina_file_path_sanitize.
Daniel Hirt [Wed, 4 Feb 2015 13:08:32 +0000 (14:08 +0100)]
eina: fix valgrind invalid read of size in eina_file_path_sanitize.

Summary:
Apparently eina_tmpstr_strlen counts the null character as well. This
doesn't follow how strlen works, as the latter excludes it from the count.
This resulted in mistreatment of the string in _eina_file_escape, with
tmp_str paths that had "../".

This fix will do for now, but it is advised that we avoid using
eina_tmpstr_strlen, to prevent such confusions in the future.

Test Plan:
The following lines will throw a valgrind 'invalid read of size 1' error
prior this fix:
  char *path = "home/mydir/../myfile";
  Eina_Tmpstr *tmp_str = eina_tmpstr_add(path);
  char *ret_path = eina_file_path_sanitize(path);

@fix

Reviewers: cedric, stefan_schmidt

Subscribers: tasn, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoedje: quick fix to guarantee that ed->path is always correctly set.
Cedric BAIL [Tue, 3 Feb 2015 17:55:33 +0000 (18:55 +0100)]
edje: quick fix to guarantee that ed->path is always correctly set.

NOTE: It will be better to completly remove ed->path in favor of using ed->file->f,
but that would be way to intrusive for this release cycle.

9 years agoecore-x - undo api/abi break with input selecting before release
Carsten Haitzler (Rasterman) [Wed, 4 Feb 2015 09:58:48 +0000 (18:58 +0900)]
ecore-x - undo api/abi break with input selecting before release

9 years agoupdate po's
Carsten Haitzler (Rasterman) [Wed, 4 Feb 2015 09:58:18 +0000 (18:58 +0900)]
update po's

9 years agoeet - fix endianess break added by cedric a year ago in image decoding
Carsten Haitzler (Rasterman) [Wed, 4 Feb 2015 09:03:20 +0000 (18:03 +0900)]
eet - fix endianess break added by cedric a year ago in image decoding

@fix

this fixes T1987 - the commit that broke it was:

commit 18d494489c5651aa152622a56579bbc1bda853cb
Author: Cedric BAIL <cedric.bail@samsung.com>
Date:   Fri Jan 3 16:20:53 2014 +0900

    eet: use eina_swap*() function instead of custom slower one.