Commit Graph

31566 Commits

Author SHA1 Message Date
Felipe Magno de Almeida 96be303eee Fix 2015-09-26 13:14:26 -07:00
Felipe Magno de Almeida 09a1e75dcb Fixed argument's argument property ownership 2015-09-25 17:27:23 -07:00
Felipe Magno de Almeida 462ecf69d3 Fixed connection_model_set on object. 2015-09-25 13:15:49 -07:00
Felipe Magno de Almeida 7457f37df4 eldbus_model: Removed constructor from connection 2015-09-23 16:07:50 -07:00
Felipe Magno de Almeida 1b9aeb529b eldbus_model: Removed a few other constructor 2015-09-23 15:57:56 -07:00
Felipe Magno de Almeida 5cce0f2b22 eldbus_model: Removed a few constructors 2015-09-23 15:49:50 -07:00
Guilherme Lepsch 6732e02838 esoap_model: Soap Model implementation 2015-09-23 13:45:47 -07:00
Guilherme Lepsch 4e5a7227da eflat_xml_model: "Flat" Xml Model implementation 2015-08-31 16:51:04 -03:00
Guilherme Lepsch 132e320017 eldbus: Created Emodel implementation for Eldbus 2015-08-31 16:47:48 -03:00
Guilherme Lepsch 6a1025c09e ejson: Json Efl.Model implementation 2015-08-31 16:45:45 -03:00
Guilherme Lepsch cb2cea98cd efl_model: Common Efl.Model implementation functions 2015-08-29 16:42:27 -03:00
Felipe Magno de Almeida e0b12153c8 eina: Created EINA_VALUE_TYPE_OPTIONAL that is a single-element container that can be empty
Eina Value Optional can be used to create a eina value that can be set
or be empty and can be embedded in a eina_value_struct.
2015-08-29 16:40:10 -03:00
ChunEon Park d71182af7a ecore win32: increase command buffer size.
PATH_MAX is not enough for command.
Even in this case, the buffer is not being used only for path.
2015-08-29 16:59:19 +09:00
ChunEon Park 0647f68770 ecore win32: modifiy to better meaningful exception. 2015-08-29 16:46:22 +09:00
Amitesh Singh eab2b5af84 eina: cpu - fix a typo in eina_cpu_count API doc 2015-08-29 08:01:10 +05:30
ChunEon Park e656dde568 emile jpeg: more descriptive comment. 2015-08-29 00:59:06 +09:00
jiin.moon 1073774d8e emile: fix can not parsing the EXIF info of the jpeg file which has IFD offset
Summary:
IFD offset of jpeg is not fixed.
But emile support only 0x8 on now

Reviewers: jypark, cedric, Hermet

Reviewed By: Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3000
2015-08-29 00:47:43 +09:00
Oleksandr Shcherbina c850cc0d80 evas_canvas3d: Recalculation coordinates for pick object from scene
Summary:
Change recalculation coordinate for pick to depend on size of viewport, not from
scene data.
Due to not correct working pick in case resize view window.
@fix

Reviewers: cedric, Hermet

Reviewed By: Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2950
2015-08-28 20:32:46 +09:00
Subodh Kumar b35d2f9762 Eina rectangle: Check for valid rectangle before taking intersection
Summary:
Check for valid rectangle

If any dst or src rectangle has zero width or height,
intersection should not return true.

@fix

Test Plan: Added test cases

Reviewers: cedric, herdsman, Hermet

Reviewed By: Hermet

Subscribers: shilpasingh, cedric

Differential Revision: https://phab.enlightenment.org/D2990
2015-08-28 16:30:29 +09:00
Carsten Haitzler 0a77262524 eet - improve eet file storage when encoding by aligning data
this forces data when written to be aligned to 8 bytes. this makes
mapping keys directly far better as from now on you can assume all
data is aligned to 8 bytes allowing you, if you want, to use eet files
as caches for raw binary data you mmap directly and just use (not
portable though).

@feat
2015-08-28 12:56:18 +09:00
Daniel Hirt d6b6a73358 Evas textblock: fix case of own_closer in style_set
Looks like it was assumed that an fnode->orig_format always ends with a
'/' character if the fnode is an own_closer.
The problem is that a paragraph separator ("ps" and "br" - the latter in
legacy newline mode) is also an own_closer, but might not have '/' at the
end, so decrementing the length is wrong.

This fixes T2654. The example markup had "br" read as "b", which led to
a mismatch with the "font_weight=Bold" tag. Coincidentally, "ps" was not
affected as there was no matching "p" in the style.

@fix
2015-08-27 22:59:19 +03:00
Stefan Schmidt f38fffa576 evas/gl_common: add new header files to build to make them available for dist 2015-08-27 16:42:18 +02:00
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