Commit Graph

31594 Commits

Author SHA1 Message Date
Stefan Schmidt 17e5b1c8f6 ecore_wayland: only add listener if recovery interface was binded correctly
In the case the bidn fails we could crash here by accessing it.
2015-08-27 16:21:06 +02:00
Youngbok Shin f210e42966 edje: Fix double free scenario caused by static pointer.
Summary:
The result of evas_object_textblock_cursor_content_get() API has to be cleaned
by outside.  _edje_entry_cursor_content_get() is calling free() inside of the
function for handle the result using static pointer. But, the caller of
_edje_entry_cursor_content_get() is already handling the result using free().
It can cause double free problem.

The bigger issue is in elementary. See elm_entry_cursor_content_get() API's
document. The document advice developers to free the result when it is done.

@fix

Test Plan: N/A

Reviewers: tasn, raster, woohyun

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2991
2015-08-27 11:06:23 +01:00
Ji-Youn Park bd8f585d74 ecore_pipe: add write fdset and except fdset.
ecore_pipe_wait can be run not only select but also _ecore_glib_select__locked.
if write fdset is null, it make problem in FD_ISSET.

@fix
2015-08-27 16:28:10 +08:30
Stefan Schmidt 658a51b3ac ecore_wayland: add wayland session recovery listener
Register and wait for the uuid event issued by the compositor once a new
surface is created.
2015-08-26 16:04:49 +02:00
Stefan Schmidt 54695313dd ecore_wayland: bind and destroy session_recovery interface correctly.
This was missing from the initial session recovery support patches. Bind
the interface so we can actually work with it on the client side and destroy
it at the end.

@fix
2015-08-26 15:58:27 +02:00
Tom Hacohen d6b18c1e25 Eo base: print an error when an object with a parent is destructed.
This should not happen. Objects with parents must have their parents
unset before they reach refcount == 0. That's because the parent is the
one holding the refcount. This means that if we get to the destructor
(object is deleted) while a parent is still set, we have an error
scenario.
2015-08-26 14:17:28 +01:00
Tom Hacohen acc158a2bf Revert "Revert "Eo base: Change parent_set to be an assignment of ref.""
Had to revert it until I pushed the changes to elm, which I had issues
with. Now the patch can safely go back in.

This reverts commit 37abea3831.
2015-08-26 10:47:06 +01:00
Tom Hacohen 37abea3831 Revert "Eo base: Change parent_set to be an assignment of ref."
Damn, this breaks some things. Reverting until fixed.

This reverts commit 9c78ee0bf4.
2015-08-26 10:33:24 +01:00
Tom Hacohen 9c78ee0bf4 Eo base: Change parent_set to be an assignment of ref.
After this change, parent_set assigns a ref, so for example:
  obj = eo_add(CLASS, parent); /* Ref is 1 */
  eo_do(obj, eo_parent_set(parent2)); /* Ref is 1 */
  eo_ref(obj); /* Ref is 2 */
  eo_do(obj, eo_parent_set(NULL)); /* Ref is 1, giving the ref to NULL */
  eo_do(obj, eo_parent_set(parent)); /* Ref is 1 */

This is following a discussion on the ML about commit
8689d54471.

@feature
2015-08-26 10:11:18 +01:00
Jaehyun Cho b9c24fa951 edje_cc_out: Fix edje_cc compile error with script on Windows.
On Windows, PATH_MAX is 260 and PATH_MAX is used as string buffer
size in edje_cc compile. This causes edje_cc compile error when the edc
file contains "script" keyword and the length of file paths is
relatively long.
To resolve this problem, change the string buffer size in edje_cc
compile.

@fix
2015-08-26 13:43:38 +09:00
ChunEon Park 97b214b033 Revert "Revert "ecore_win: fix the incorrect mouse cursor position.""
This reverts commit 3ce8860dab.

Apply only to mouse wheel case. Button press/release wans't problem actually.
If I correct, this is caused because of different nature of window systems.
Anyway our Ecore_Event_Mouse values should keep consistency among the various systems.
2015-08-25 19:35:45 +09:00
ChunEon Park 3ce8860dab Revert "ecore_win: fix the incorrect mouse cursor position."
This reverts commit 1f1542f824.

coordinate has been corrupted. need to investigate more.
2015-08-25 18:13:14 +09:00
Marcel Hollerbach 46e9eed2c4 build: replace libsystemd-{daemon, journal} with libsystemd
Summary:
since all the libs got merged into libsystemd in 209, we can just check
for libsystemd

Reviewers: cedric

Subscribers: stefan_schmidt, morlenxus

Differential Revision: https://phab.enlightenment.org/D2984
2015-08-25 10:52:47 +02:00
ChunEon Park 1f1542f824 ecore_win: fix the incorrect mouse cursor position.
Ecore_Event_Mouse_* x, y values are relative to the current window position
as well as the root x, y, values are relative to the root window.

previously, x,y is started from the root window and root x, y values are invalid.

fix them

@fix
2015-08-25 15:34:13 +09:00
Thanatermesis 08238de3e0 small typo in docs, mounse is mouse 2015-08-25 03:04:50 +02:00
Stefan Schmidt 495046e0eb eldbus: add since tag for now public eldbus_message_signal_new API
Thanks go to vtorri for bringing this to my attention.
2015-08-24 12:07:10 +02:00
Marcel Hollerbach 2eb4f2604d evas_3d: fix defines
Summary:
evas_3d: removed unnessecary defines

Evas_Real was allready defined.

The typedefs of the Eo types can be avoided by fixing the include order

Reviewers: cedric, stefan_schmidt, tasn

Reviewed By: stefan_schmidt, tasn

Subscribers: stefan_schmidt, cedric

Projects: #efl

Maniphest Tasks: T2658

Differential Revision: https://phab.enlightenment.org/D2974
2015-08-24 12:00:57 +02:00
Stefan Schmidt eb6832f62e evas/filter: Remove unused variable
lib/evas/filters/evas_filter_parser.c:861:14: warning: unused variable 'ok' [-Wunused-variable]
2015-08-24 10:15:11 +02:00
Stefan Schmidt c4b4cd5967 eldbus: remove now public eldbus_message_signal_new declaration from private.h
The declaration is now on eldbus_message as EAPI so we can safely remove it here.
2015-08-24 10:11:34 +02:00
Lukasz Stanislawski 0416d4d9bb eldbus: add eldbus_message_signal_new to public header
Test Plan: elementary tests

Reviewers: cedric

Subscribers: seoz, cedric

Differential Revision: https://phab.enlightenment.org/D2772
2015-08-24 10:07:40 +02:00
Carsten Haitzler bdebfe7962 efl - jp2k loader - guard against openjpeg bug tha causes an abort
so... if you load a non-jp2k file using openjpeg, you can get an abort
deep inside the openjpeg library that we can't do anything about. we
set all error handlers but literally the openjpeg code has ab assert
there that causes this bug. it shouldn't and newer opengjpeg libs have
it removed, but 1.5.2 has it and this causes an untrappable crash.
this is simply bad behavior in openjpeg not allowing it to be used
safely to loade image files. the relevant backtrace:

    w=w@entry=0x7fffffffb548, h=h@entry=0x7fffffffb54c,
    alpha=alpha@entry=0x7fffffffb556 "", map=map@entry=0x7fff29ac2000,
    length=<optimized out>, error=error@entry=0x7fffffffb5bc,
    opts=<optimized out>)
    at modules/evas/image_loaders/jp2k/evas_image_load_jp2k.c:111

the relevant code in openjpeg:

int cio_numbytesleft(opj_cio_t *cio) {
  assert((cio->end - cio->bp) >= 0);
        return cio->end - cio->bp;
}

so that assert is triggered. and nothing can be done about it which is
pretty poor.

so an upgrade of openjpeg should fix this as in newer versions have
dropped the assert line in that function, but until poeople have that from
their distro, this adds magic number checks for file headers that avoids
using openjpeg if it's not "apparently" a jp2k file. this does not
stop a corrupt file or a maliciously designed file still causing this
problem, but it does just result in an abort() and isnn't seemingly an
overflow isse that can be exploted, so if you still suffer, find a way to
upgrade openjpeg to 2.x. until then... this reduces inadvertent damage.

@fix
2015-08-24 11:39:12 +09:00
Cedric BAIL b6d2dc2cdf eina: fix coverity issue CID 1317154. 2015-08-22 19:52:57 +02:00
ChunEon Park b5ae1b84f9 ethum: fix compilation on Windows due to missing visibility setting. 2015-08-22 16:09:25 +09:00
ChunEon Park 12b4e371ac evil: add missing since 2015-08-22 16:02:35 +09:00
Tom Hacohen 93ade6f4ce Eo base: clean up parent removal in destructor.
This cleans up the changes in 8689d54471.
This commit reduces code duplication, and fixes broken handling of
overridden parent_set().
2015-08-21 17:23:13 +01:00
Cedric BAIL 7aea193a97 ecore_con: fix test to properly send the right amount of data (including the '\0'). 2015-08-21 17:54:13 +02:00
Vincent Torri 743e6a1a24 eina: use new eina_file_path_join API
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-21 17:10:39 +02:00
Vincent Torri 33227fc15d eina: add API to join pahs, as well as path separators
eina_str_join() is used a lot to contatenate paths, but the
separator should be '\' on Windows. So add 2 API and 2 defines for
more cross platform code

@feature

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-21 17:10:29 +02:00
Cedric BAIL b5d2cef660 ector: don't forget to reset cairo matrix to identity. 2015-08-21 16:40:34 +02:00
Cedric BAIL 86b53cbefc efl: fix Efl.Gfx.Shape.Dup to use const parameter. 2015-08-21 16:40:32 +02:00
Cedric BAIL 1235426069 efl: prevent segv while interpolating empty shape. 2015-08-21 16:40:32 +02:00
Cedric BAIL d194eeeba9 evas: improve simple VG example to interpolate a full VG tree. 2015-08-21 16:40:31 +02:00
Cedric BAIL f2e3777a09 eina: add test for decomposition and composition of matrix. 2015-08-21 16:40:31 +02:00
Cedric BAIL 8228145ca9 eina: add eina_matrix4_quaternion_get and eina_quaternion_matrix4_get.
Implementation taken from pseudo code at :
http://www.w3.org/TR/css3-transforms/#decomposing-a-3d-matrix
2015-08-21 16:40:31 +02:00
Cedric BAIL abfe65e05d eina: add eina_matrix4_multiply and eina_matrix4_identity function. 2015-08-21 16:40:31 +02:00
Cedric BAIL 26f33dc6bd eina: add eina_matrix4_transpose. 2015-08-21 16:40:31 +02:00
Cedric BAIL 0330717ab2 eina: add tests for eina_matrix4_inverse. 2015-08-21 16:40:31 +02:00
Cedric BAIL bb926e2dc7 eina: add eina_matrix4_inverse. 2015-08-21 16:40:31 +02:00
Cedric BAIL 57def1eed0 eina: test eina_matrix4_normalized. 2015-08-21 16:40:31 +02:00
Cedric BAIL 694149c773 eina: add eina_matrix4_normalized. 2015-08-21 16:40:31 +02:00
Cedric BAIL 4f0f81bb30 eina: add eina_matrix4_determinant. 2015-08-21 16:40:31 +02:00
Cedric BAIL c82015d062 eina: our 3x3 matrix are 2D matrix, not 3D rotation matrix. 2015-08-21 16:40:31 +02:00
Cedric BAIL 05fdfcc76a evas: add logic to duplicate recursively an Efl_VG_Node tree. 2015-08-21 16:40:31 +02:00
Cedric BAIL 126edbb48c evas: allow parent during dup to be an Evas_Object_VG. 2015-08-21 16:40:31 +02:00
Cedric BAIL 7cb92ff35d evas: add support for interpolating Efl_VG_Node tree. 2015-08-21 16:40:31 +02:00
Cedric BAIL d595324a8d evas: add an unique name for each Efl.VG.Base object and make it possible to find it from parent. 2015-08-21 16:40:31 +02:00
Vincent Torri c73ccef4a7 Evil: fix compilation when MSVC is not available.
localtime_s is not defined in msvcrt.dll but rather is defined in
Microsoft libc when Visual Studio or other stuff is installed.

Issue introduced in:024812c1a76286991f292c3191936778ec219ff8

Fixes T2681

@fix
2015-08-21 13:12:32 +01:00
Jean-Philippe Andre 2472dfdb24 Evas filters: Fix build for Jenkins gcc_x32
Disable bit32 library if it's not available.
We should probably either ship it or disable it altogether
for the filters. Hmm.
2015-08-21 11:42:30 +09:00
Chris Michael 65578034ef Add experimental implementation of custom animator ticks
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-08-20 14:21:02 -04:00
Cedric BAIL 67ef1b11ff evas: properly fix unref of ector renderer.
Async rendering doesn't have a main loop cleanup function. The only one
being called is in the rendering thread. I wrongly assumed in my previous
patch that render_post on an object was called after the async render was
done which is obviously not the case as pointed by Subhransu. This patch
now wait for the async rendering to be done.
2015-08-20 15:39:16 +02:00