platform/upstream/efl.git
7 years ago evas_clip: fix bug _clipper_del_cb function unset current clipper
Jiyoun Park [Fri, 7 Apr 2017 02:35:55 +0000 (11:35 +0900)]
   evas_clip: fix bug _clipper_del_cb function unset current clipper

   old_clipper = evas_object_clip_get(objA);
   evas_object_clip_unset(obj_A);
   evas_object_clip_set(obj_A, new_clipper);
   evas_object_del(old_clipper);

   when old_clipper deleted, _clipper_del_cb unset the current new_clipper of obj_A.

7 years agoelm_code: Don't refresh if fonts did not change
Andy Williams [Thu, 6 Apr 2017 22:29:38 +0000 (23:29 +0100)]
elm_code: Don't refresh if fonts did not change

7 years agoedje: remove invalid macro-check regarding coreaudio
Jiwon Kim [Thu, 6 Apr 2017 21:41:44 +0000 (14:41 -0700)]
edje: remove invalid macro-check regarding coreaudio

Summary:
By 403b0ecfa66530e9cd598bd013aeda76df7ee98c the coreaudio
support was dropped.
So 'HAVE_COREAUDIO' define is invalid.

Reviewers: jpeg

Subscribers: cedric, woohyun

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoelm.hoversel: adjust alignment correctly in mirror mode
Jeeyong Um [Thu, 6 Apr 2017 21:28:43 +0000 (14:28 -0700)]
elm.hoversel: adjust alignment correctly in mirror mode

Test Plan: elementary_test "hoversel"

Reviewers: cedric, jpeg

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoedje_program: add NULL check for ed->callbacks in edje_program
JEONGHYUN YUN [Thu, 6 Apr 2017 21:26:35 +0000 (14:26 -0700)]
edje_program: add NULL check for ed->callbacks in edje_program

Summary: Pointer ed->callbacks may have NULL value in callback add functions.

This reduce the chance of continue to kind of work for longer in case of memory
constrain. Maybe using Eina macro would be better.

Reviewers: jpeg, jypark

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoedje: fix name check matching correctly
JEONGHYUN YUN [Thu, 6 Apr 2017 21:24:45 +0000 (14:24 -0700)]
edje: fix name check matching correctly

Reviewers: jpeg, jypark

This could lead to a crash as we were checking against NULL on
the wrong pointer.

@fix

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoedje_edit: add NULL check for eina_mempool_malloc in _edje_edit_state_alloc()
JEONGHYUN YUN [Thu, 6 Apr 2017 21:23:19 +0000 (14:23 -0700)]
edje_edit: add NULL check for eina_mempool_malloc in _edje_edit_state_alloc()

Summary: Pointer eina_mempool_malloc return value may have NULL value when
module aren't properly installed. This reduce the chance of a crash and increase
the likelyness of properly handling the failure.

Reviewers: jpeg, jypark

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoevas: fix typo 'initializer to' to 'initialize to'
Bryce Harrington [Thu, 6 Apr 2017 21:22:27 +0000 (14:22 -0700)]
evas: fix typo 'initializer to' to 'initialize to'

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoecore_evas: Fix several typos in doxygen
Bryce Harrington [Thu, 6 Apr 2017 21:18:46 +0000 (14:18 -0700)]
ecore_evas: Fix several typos in doxygen

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoelm_code: fix copy/paste bug that slipped through
Andy Williams [Thu, 6 Apr 2017 22:14:03 +0000 (23:14 +0100)]
elm_code: fix copy/paste bug that slipped through

7 years agoelm_code: Fix coverity issue divide by zero
Bryce Harrington [Thu, 6 Apr 2017 21:28:27 +0000 (22:28 +0100)]
elm_code: Fix coverity issue divide by zero

Summary: @fix 1371128: DIVIDE_BY_ZERO

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Subscribers: ajwillia.ms, cedric, jpeg

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

7 years agoelm_code: Fix bug when deleting slection beyond start of document.
Andy Williams [Thu, 6 Apr 2017 21:16:27 +0000 (22:16 +0100)]
elm_code: Fix bug when deleting slection beyond start of document.

@fix

7 years agoevas: update webp output test.
Cedric BAIL [Thu, 6 Apr 2017 20:45:55 +0000 (13:45 -0700)]
evas: update webp output test.

webp has slightly change since we registered this test and even if the
output is visually still close, as we do a perfect pixels comparison,
we are impacted by the slightest change. It would be nice to introduce
a function that does a more fuzzy comparison.

7 years agoevas: always send a proper event to simplify callee logic.
Cedric BAIL [Thu, 6 Apr 2017 18:46:06 +0000 (11:46 -0700)]
evas: always send a proper event to simplify callee logic.

@fix

7 years agoecore_evas: fix 'be delete' to 'be deleted'
Bryce Harrington [Thu, 6 Apr 2017 18:14:09 +0000 (14:14 -0400)]
ecore_evas: fix 'be delete' to 'be deleted'

Subscribers: cedric, jpeg

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

7 years agoaccess: Fix warning hiding a potential crash
Jean-Philippe Andre [Thu, 6 Apr 2017 09:14:40 +0000 (18:14 +0900)]
access: Fix warning hiding a potential crash

See 5da4c96087260ff50e0e76fe69e5de5121a9accc

7 years agoColorclass: Add fixed attribute to remove error message
Jeeyong Um [Thu, 6 Apr 2017 07:24:59 +0000 (16:24 +0900)]
Colorclass: Add fixed attribute to remove error message

Test Plan: elementary_test -to "color classes"

Reviewers: cedric, jpeg

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

7 years agoemile_image: add error handling code for ifd_offset value
Jaeun Choi [Thu, 6 Apr 2017 06:34:53 +0000 (15:34 +0900)]
emile_image: add error handling code for ifd_offset value

Signed-off-by: JEONGHYUN YUN <jh0506.yun@samsung.com>
7 years agofix evas canvas callbacks to use correct legacy callback function
Carsten Haitzler (Rasterman) [Thu, 6 Apr 2017 05:43:04 +0000 (14:43 +0900)]
fix evas canvas callbacks to use correct legacy callback function

7 years agoelm - cache dump - disable this to fix jp's issues of proxies etc.
Carsten Haitzler (Rasterman) [Thu, 6 Apr 2017 05:31:19 +0000 (14:31 +0900)]
elm - cache dump - disable this to fix jp's issues of proxies etc.

this will stop proxies, maps, and other filter object content from
being dropped whenever elm calls elm_cache_all_flush() to flush all
caches.

@fix

7 years agoelm_code: Fix crashes with backspace on OpenBSD
Andy Williams [Wed, 5 Apr 2017 22:59:23 +0000 (23:59 +0100)]
elm_code: Fix crashes with backspace on OpenBSD

@fix

7 years agoelm_code: better safety around widget edge cases
Andy Williams [Wed, 5 Apr 2017 21:40:43 +0000 (22:40 +0100)]
elm_code: better safety around widget edge cases

Fixes crashes when dragging selection out of widget.
@fix

7 years agoelementary: access calls "access,activated" smart callback
Shinwoo Kim [Wed, 5 Apr 2017 10:58:46 +0000 (19:58 +0900)]
elementary: access calls "access,activated" smart callback

The "access,activated" smart callback is called when "Activate the selected item"
gesture occurs.
Application could do the activation action using elm_access_action_cb_set.
But we recommend not to use elm_access_action_cb_set for this purpose on atspi
environment. And this would be usual widget behavior as elm_button does.

7 years agoecore_evas: Fix some pluralization grammatical errors
Bryce Harrington [Tue, 4 Apr 2017 13:24:55 +0000 (09:24 -0400)]
ecore_evas: Fix some pluralization grammatical errors

Subscribers: cedric, jpeg

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

7 years agoEvas_Common: Fix assorted typos
Bryce Harrington [Tue, 4 Apr 2017 13:23:55 +0000 (09:23 -0400)]
Evas_Common: Fix assorted typos

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric, jpeg

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

7 years agoEvas GL: Correct a couple typos in doxygen comments
Bryce Harrington [Tue, 4 Apr 2017 13:21:34 +0000 (09:21 -0400)]
Evas GL: Correct a couple typos in doxygen comments

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: devilhorns, cedric, jpeg

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

7 years agoEvas_Loader: Fix pluralization in grammar
Bryce Harrington [Tue, 4 Apr 2017 13:20:48 +0000 (09:20 -0400)]
Evas_Loader: Fix pluralization in grammar

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric, jpeg

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

7 years agoevas: Correct typos in Evas_Eo.h docs
Bryce Harrington [Tue, 4 Apr 2017 13:20:24 +0000 (09:20 -0400)]
evas: Correct typos in Evas_Eo.h docs

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric, jpeg

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

7 years agoevas textblock: fix top/bottom valign tag reversed issue
Youngbok Shin [Tue, 4 Apr 2017 09:36:41 +0000 (18:36 +0900)]
evas textblock: fix top/bottom valign tag reversed issue

Summary:
valign tag is for handling vertical align according to line's height and
text's height. But, it worked in a line which has only one font and
one font size, too. And the result was abnormal depending its font.
The line's height is [ascent + descent]. But, Textblock uses max ascent and
items's height(could be used max ascent + max descent according to its position)
when Textblock calculates item's yoff.
So, If Textblock calculate yoff based on line's height,
it should use only ascent and descent instead of max ascent and max descent.
@fix

Test Plan: Will attached in comment section.

Reviewers: raster, herdsman, jpeg, woohyun

Reviewed By: raster

Subscribers: cedric

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

7 years agoEvil: fix fcntl() with sockets
Vincent Torri [Mon, 3 Apr 2017 04:16:56 +0000 (06:16 +0200)]
Evil: fix fcntl() with sockets

On Windows, fd and sockets are different. Sockets are actually HANDLES, hence
_get_osfhandle() should not be used with sockets, and GetHandleInformation()
 and SetHandleInformation() can be used directly with sockets.

This is fixed by adding a function to test if the 'fd passed to fcntl() is a
socket or not.

7 years agocombobox: fix 0px height on first click
Marcel Hollerbach [Fri, 31 Mar 2017 19:23:48 +0000 (21:23 +0200)]
combobox: fix 0px height on first click

the height of a item is 0 because the item is not realized, so if no
item is realized we are waiting until one is realized, until then we
just take 1px as a height, so at minimum one item needs to be realized.

If there is a realized item (or we are getting the event that there is
one) we are just calling _table_resize again, and are getting the size
for real.

7 years agocombobox: fix layer setting for the hover
Marcel Hollerbach [Fri, 31 Mar 2017 17:56:36 +0000 (19:56 +0200)]
combobox: fix layer setting for the hover

in cases where a ui is using layers other objects could overlap the
hover object. Which is wrong, the genlist should stay above the rest of
the content, in any case.

7 years agocombobox: Fix combobox for the case the parent is not the window
Marcel Hollerbach [Fri, 31 Mar 2017 17:50:46 +0000 (19:50 +0200)]
combobox: Fix combobox for the case the parent is not the window

if the parent is not a window the elm hover is created for the parent of
the combobox, which is a problem because the hover will not expand to
its full size of the window, and will stay in the size of the parent.

Adding the top widget instead of the parent widget fixes that.

7 years agoelm_code: fix backspace newline in BSD
Andy Williams [Fri, 31 Mar 2017 20:50:45 +0000 (21:50 +0100)]
elm_code: fix backspace newline in BSD

7 years agoecore-evas: add flag for buffer canvas to prevent deadlock in pixels_get
Mike Blumenkrantz [Fri, 31 Mar 2017 18:57:34 +0000 (14:57 -0400)]
ecore-evas: add flag for buffer canvas to prevent deadlock in pixels_get

when calling pixels_get during a render callback, another render would trigger
which would cause a deadlock from evas spinlock usage

@fix

7 years agodoc: add explicit note for timeline animator about first frame position
Mike Blumenkrantz [Fri, 31 Mar 2017 18:57:34 +0000 (14:57 -0400)]
doc: add explicit note for timeline animator about first frame position

7 years agoeolian: fix incorrect function prototypes in legacy headers
Daniel Kolesa [Fri, 31 Mar 2017 15:49:38 +0000 (17:49 +0200)]
eolian: fix incorrect function prototypes in legacy headers

C functions that take no arguments need to have void in the arg
list. Otherwise, it would mean taking any number of arguments.

7 years agorelease: Update NEWS and bump version for 1.19.0-beta4 release
Stefan Schmidt [Fri, 31 Mar 2017 13:26:47 +0000 (15:26 +0200)]
release: Update NEWS and bump version for 1.19.0-beta4 release

7 years agoefl: terrible kludge so avoid termination crash on osx
Jean Guyomarc'h [Thu, 23 Mar 2017 21:58:08 +0000 (22:58 +0100)]
efl: terrible kludge so avoid termination crash on osx

Currently, elementary programs crash on termination on macOS (seems
Sierra-specific). This is very nasty, looks like deep memory corruption...
Without valgrind (or like) support on Sierra, it is difficult to
pinpoint the origin of the problem.

Due to the imminient release, and after discussion with @stefan, this
kludge will allow the release to happen.

This commit MUST be reverted just after the release, so we don't
blindfold ourselves!

Ref T5245

7 years agoelm_flipselector: delete ecore job in group del function
Jaeun Choi [Fri, 31 Mar 2017 05:16:06 +0000 (14:16 +0900)]
elm_flipselector: delete ecore job in group del function

ecore_job_del was missing in a4d2c51d1404c1d8563dd7ac37e64ee105aa6226

7 years agoelm_flipselector: fixed flipselector item deletion process
Jaeun Choi [Thu, 30 Mar 2017 11:13:39 +0000 (20:13 +0900)]
elm_flipselector: fixed flipselector item deletion process

flipselector item destructor had a severe drawback and this patch fixes it.
when deleting multiple items at once, the view needs to be updated only once.
however, the destructor updated the view on deletion of
every single item and it caused a severe performance issue.
the worst case happened when deleting a flipselector object -
with 10000 items, it took 10 seconds to finish deletion.

this patch has two points:
1. if a flipselector object is on deletion, item destructor doesn't update the view
2. otherwise, view update is handled in one job for multiple item deletion

7 years agoFixes latest crash w/rage
Al Poole [Fri, 31 Mar 2017 02:13:03 +0000 (11:13 +0900)]
Fixes latest crash w/rage

Summary:
eina_file_virtualize is causing issues.

memfile_set is better but see attached bt.

What to do???

Reviewers: raster, cedric

Subscribers: jpeg

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

7 years agoelm_code: Fix newline crash on BSD
Andy Williams [Thu, 30 Mar 2017 22:20:22 +0000 (23:20 +0100)]
elm_code: Fix newline crash on BSD

@fix

7 years agoevil_string: fix strndup() for non-NULL terminated strings.
Gustavo Sverzut Barbieri [Wed, 29 Mar 2017 13:11:01 +0000 (10:11 -0300)]
evil_string: fix strndup() for non-NULL terminated strings.

If the given string is not null-terminated, then strlen() will go out
of boundaries, we must limit the lookup to given 'n' parameter.

To do so use strnlen(), that is a strlen() bounded by a maximum size.

7 years agoecore_con: remove warnings if FD_CLOEXEC is undefined.
Gustavo Sverzut Barbieri [Tue, 28 Mar 2017 18:25:39 +0000 (15:25 -0300)]
ecore_con: remove warnings if FD_CLOEXEC is undefined.

currently it's being defined in evil_fcntl.h, but the actual
implementation of fcntl() in evil_fcntl.c is causing problems with
sockets. So one possibility is to remove the ifdef, another is to
change the implementation.

7 years agoeina: fix compilation warning on _WIN32 due missing strndup()
Gustavo Sverzut Barbieri [Tue, 28 Mar 2017 18:22:14 +0000 (15:22 -0300)]
eina: fix compilation warning on _WIN32 due missing strndup()

Eina.h will include Evil.h, but those using direct include of internal
headers must include it as well.

7 years agoothers: support efl_net_dialer_windows.
Gustavo Sverzut Barbieri [Mon, 27 Mar 2017 19:11:29 +0000 (16:11 -0300)]
others: support efl_net_dialer_windows.

these are not working on windows yet due other factors, anyway add the
proper ifdefs

7 years agoecore_ipc: use new efl_net_*_windows classes.
Gustavo Sverzut Barbieri [Mon, 27 Mar 2017 18:54:38 +0000 (15:54 -0300)]
ecore_ipc: use new efl_net_*_windows classes.

7 years agoecore_con_local_path_new(): implemented for Windows
Gustavo Sverzut Barbieri [Mon, 27 Mar 2017 18:42:11 +0000 (15:42 -0300)]
ecore_con_local_path_new(): implemented for Windows

7 years agoimplement efl_net_{socket,dialer,server}_windows
Gustavo Sverzut Barbieri [Wed, 22 Mar 2017 07:29:16 +0000 (04:29 -0300)]
implement efl_net_{socket,dialer,server}_windows

This is the local socket for windows, analogous to AF_UNIX.

`Efl_Net_Socket_Windows` is the base class doing `ReadFile()` and
`WriteFile()` using overlapped I/O, as well as the close procedure
(`FlushFileBuffers()`, `DisconnectNamedPipe()` and
`CloseHandle()`). These are done on top of an existing HANDLE that is
set by `Efl_Net_Dialer_Windows` (from `CreateFile()`) or
`Efl_Net_Server_Windows` (from `CreateNamedPipe()`).

The overlapped I/O will return immediately, either with operation
completed or `ERROR_IO_PENDING`, which means the kernel will execute
that asynchronously and will later `SetEvent(overlapped.hEvent)` which
is an event we wait on our main loop. That `overlapped` handle must
exist during the call lifetime, thus cannot be bound to `pd`, as we
may call `CancelIo()` but there is no guarantee the memory won't be
touched, in that case we keep the overlapped around, but without an
associated object.

Windows provides no notification "can read without blocking" or
non-blocking calls that returns partial data. The way to go is to use
these overlapped I/O, with an initial `ReadFile()` to an internal
buffer, once that operation finishes, we callback the user to says
there is something to read (`efl_io_reader_can_read_set()`) and wait
until `efl_io_reader_read()` is called to consume the available data,
then `ReadFile()` is called again to read more data to the same
internal buffer.

Likewise, there is no "can write without blocking" or non-blocking
calls that sends only partial data. The way to go is to get user bytes
in `efl_io_writer_write()` and copy them in an internal buffer, then
call `WriteFile()` on that and inform the user nothing else can be
written until that operation completes
(`efl_io_writer_can_write_set()`).

This is cumbersome since we say we "sent" stuff when we actually
didn't, it's still in our internal buffer (`pd->send.bytes`), but
nonetheless the kernel and the other peer may be adding even more
buffers, in this case we need to do a best effort to get it
delivery. A particular case is troublesome: `write() -> close()`, this
may result in `WriteFile()` pending, in this case we wait using
`GetOverlappedResult()`, *this is nasty and may block*, but it's the
only way I see to cope with such common use case.

Other operations, like ongoing `ReadFile()` or `ConnectNamedPipe()`
will be canceled using `CancelIo()`.

Q: Why no I/O Completion Port (IOCP) was used? Why no
   CreateThreadpoolIo()? These perform much better!

A: These will call back from secondary threads, but in EFL we must
   report back to the user in order to process incoming data or get
   more data to send. That is, we serialize everything to the main
   thread, making it impossible to use the benefits of IOCP and
   similar such as CreateThreadpoolIo(). Since we'd need to wakeup the
   main thread anyways, using `OVERLAPPED.hEvent` with
   `ecore_main_win32_handler_add()` does the job as we expect.

Thanks to Vincent Torri (vtorri) for his help getting this code done
with an example on how to do the NamedPipe handling on Windows.

7 years agoecore_con_*_example: compile on win32.
Gustavo Sverzut Barbieri [Mon, 27 Mar 2017 19:08:39 +0000 (16:08 -0300)]
ecore_con_*_example: compile on win32.

 - win32 doesn't provide getline().
 - _write() exists, use _write_() instead

7 years agoecore_ipc_client_example: win32 doesn't provide getline().
Gustavo Sverzut Barbieri [Mon, 27 Mar 2017 15:45:30 +0000 (12:45 -0300)]
ecore_ipc_client_example: win32 doesn't provide getline().

7 years agoefl_net_dialer_unix_example: read in loop while "can_read".
Gustavo Sverzut Barbieri [Mon, 27 Mar 2017 13:53:43 +0000 (10:53 -0300)]
efl_net_dialer_unix_example: read in loop while "can_read".

While in UNIX we use 'select()/poll()' to query for read fds and this
will eventually callback with "can_read" event, use the loop to match
other implementations where can_read keeps true if not all data was
read.

7 years agofix ecore con client exmaple to match cmdline help output for options
Carsten Haitzler (Rasterman) [Wed, 29 Mar 2017 07:49:03 +0000 (16:49 +0900)]
fix ecore con client exmaple to match cmdline help output for options

7 years agofix ecore con server exmaple to match cmdline help output for options
Carsten Haitzler (Rasterman) [Wed, 29 Mar 2017 07:28:21 +0000 (16:28 +0900)]
fix ecore con server exmaple to match cmdline help output for options

7 years agowin: Mark unstable APIs as @beta (stack API)
Jean-Philippe Andre [Wed, 29 Mar 2017 00:39:34 +0000 (09:39 +0900)]
win: Mark unstable APIs as @beta (stack API)

We have a tag for unstable API, use it. It'll be visible in the
doc and force users to add the macro before being able to compile
code.

This amends d8dd685966858dcc393302.

7 years agowindow stacks - make these unstable bta api for now
Carsten Haitzler (Rasterman) [Tue, 28 Mar 2017 04:51:39 +0000 (13:51 +0900)]
window stacks - make these unstable bta api for now

until settled, make these as beta for now.

7 years agoecore timeline animators - actually state the starting time
Carsten Haitzler (Rasterman) [Tue, 28 Mar 2017 02:44:22 +0000 (11:44 +0900)]
ecore timeline animators - actually state the starting time

the starting time has always been "now" like in timers (loop time). it
would appear some people don't know this.

7 years agoecore pub headers - use __sun not __sun__ for ifdef for solaris
Carsten Haitzler (Rasterman) [Mon, 27 Mar 2017 10:09:25 +0000 (19:09 +0900)]
ecore pub headers - use __sun not __sun__ for ifdef for solaris

7 years agoEina_Value: strdup() is used, so include string.h
Vincent Torri [Sun, 26 Mar 2017 16:48:10 +0000 (18:48 +0200)]
Eina_Value: strdup() is used, so include string.h

7 years agoEcore: siginfo_t type is defined in sys/siginfo.h on Solaris
Vincent Torri [Sun, 26 Mar 2017 15:48:13 +0000 (17:48 +0200)]
Ecore: siginfo_t type is defined in sys/siginfo.h on Solaris

7 years agogengrid: fix the crash in _elm_gengrid_item_edge_check
Amitesh Singh [Sun, 26 Mar 2017 15:14:09 +0000 (20:44 +0530)]
gengrid: fix the crash in _elm_gengrid_item_edge_check

_elm_gengrid_item_edge_check can have eo_it as NULL if none of widget item
is focused. This could happen if item_focus is not enabled on items.

test case: elm test -> gengrid 2 (enable only "focus hightligt set") and move focus.

@fix

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoGengrid: Bring the item into view scope before swapping.
Umesh Tanwar [Sun, 26 Mar 2017 14:46:13 +0000 (20:16 +0530)]
Gengrid: Bring the item into view scope before swapping.

Summary:
The gengrid item should be into view scope while reordering the items.

@fix
Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com>
Test Plan: elmementary_test -> gengrid 2 -> horizontal mode + reordering

Reviewers: singh.amitesh, cedric

Subscribers: cedric, atulfokk, jpeg

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

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoEcore_Con: Fix compilation on Solaris
Vincent Torri [Sun, 26 Mar 2017 09:49:19 +0000 (11:49 +0200)]
Ecore_Con: Fix compilation on Solaris

FIONREAD is defined in sys/filio.h

7 years agoelm_code: fix CID 1368489
Andy Williams [Sat, 25 Mar 2017 12:59:13 +0000 (12:59 +0000)]
elm_code: fix CID 1368489

@fix

7 years agoefreet: Don't prefer the second perfect over the first in desktop_exec_find()
Derek Foreman [Fri, 24 Mar 2017 19:28:37 +0000 (14:28 -0500)]
efreet: Don't prefer the second perfect over the first in desktop_exec_find()

We test a second match for a perfect match, then stop all further processing,
but we never test the first match. This leads to a situation where a system
wide .desktop file is given precedence over a local override.

Instead, check the first match too.

 #test-e

7 years agoecore-evas: better handling for pointer_warp with buffer canvas
Mike Blumenkrantz [Thu, 23 Mar 2017 17:11:44 +0000 (13:11 -0400)]
ecore-evas: better handling for pointer_warp with buffer canvas

if buffer canvas is not image object, this needs to emit a move event
to be consistent with other engines

probably this should emit events in all cases, but adding for image buffers
this close to release seems potentially risky so I'll leave that for later

ref 4a691f79df88d4b26c5af48ffb811e28f031e2f1

7 years agoevas_events: look for seats on hash instead of input devices
Bruno Dilly [Thu, 23 Mar 2017 22:00:44 +0000 (19:00 -0300)]
evas_events: look for seats on hash instead of input devices

Summary:
Otherwise it won't ever find the modifier masks.

Fixes T5146

@fix

Reviewers: iscaro, Jaehyun_Cho

Subscribers: cedric, jpeg

Maniphest Tasks: T5146

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

7 years agoecore-drm2: Remove unused field in Output structure
Chris Michael [Fri, 24 Mar 2017 12:54:52 +0000 (08:54 -0400)]
ecore-drm2: Remove unused field in Output structure

The 'planes' field in Ecore_Drm2_Output structure is unused and can
thus be removed here.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoeet cmdline tool - dont give garbage certificate length if there is none
Carsten Haitzler (Rasterman) [Fri, 24 Mar 2017 05:03:20 +0000 (14:03 +0900)]
eet cmdline tool - dont give garbage certificate length if there is none

7 years agoecore audio: Fix loss of last stream
Jiwon Kim [Fri, 24 Mar 2017 01:34:53 +0000 (10:34 +0900)]
ecore audio: Fix loss of last stream

Summary:
pa_stream's write callback requires to size of stream data
using 'len' parameter.
This size depend on pulse audio's internal status and not
consistent.

When a efl read audio's last stream, length of read('bread')
is less than write callback's 'len' parameter.
If the gap between 'len' and 'bread' is small,
last stream is played fortunately.
Otherwise, the last stream is discarded.
(It is doubtful about pa_stream's pre-buffering.)

To prevent it, push silent stream which is amount
of deficient length.

@fix T5281

Reviewers: raster

Reviewed By: raster

Subscribers: cedric, jpeg, woohyun

Maniphest Tasks: T5281

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

7 years agoecore_evas: delete exit idler when done with it
Jean Guyomarc'h [Thu, 23 Mar 2017 20:16:10 +0000 (21:16 +0100)]
ecore_evas: delete exit idler when done with it

7 years agoEina_Xattr: fix memory corruption
Artem Popov [Thu, 23 Mar 2017 14:27:22 +0000 (16:27 +0200)]
Eina_Xattr: fix memory corruption

Summary:
There should be reallocation +1 (for last '\0') and also
checking >0, not !=0, because of getxattr can return -1 in case of error
@fix

Reviewers: cedric, raster, NikaWhite, jpeg

Reviewed By: NikaWhite

Subscribers: myoungwoon

Tags: #efl

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

7 years agoecore_evas extn - fix buffer n check for lock files with untrusted val
Carsten Haitzler (Rasterman) [Thu, 23 Mar 2017 07:27:19 +0000 (16:27 +0900)]
ecore_evas extn - fix buffer n check for lock files with untrusted val

the code added by minkyoung has a definite security flaw here trusting
e->response to be within a small range when all it is is an int -
range is not limited other than that... so fix the code to check for
range like further code below does.

this commit went in 2 days ago... so not an existing bug fix.

7 years agoevas: Fix a rare issue with GL and map and mask
Jean-Philippe Andre [Tue, 21 Mar 2017 10:10:44 +0000 (19:10 +0900)]
evas: Fix a rare issue with GL and map and mask

The things you learn to love...

The situation was:
- An object is mapped (naviframe in an animation)
- One of its children has a mask
- The window is rotated by 90 or 270 degrees (landscape)

The mask glsl code to invert the x,y coordinate depends on the
screen rotation and this somehow was wrong.

Tested on Tizen and in elm_test "Masking", made with @jiin.moon.

@fix

7 years agoelm_code: fix keyboard selection forward
Andy Williams [Tue, 21 Mar 2017 22:36:53 +0000 (22:36 +0000)]
elm_code: fix keyboard selection forward

@fix

7 years agoelm_map: Fix work of elm_map_overlay_icon_set if icon is NULL.
se.osadchy [Tue, 21 Mar 2017 18:13:15 +0000 (11:13 -0700)]
elm_map: Fix work of elm_map_overlay_icon_set if icon is NULL.

Summary:
Delete check on NULL for icon object due to incorrect work. Function must delete
icon in map overlay (according to documentation) if we set NULL, but with this check -
nothing happening and after elm_map_overlay_icon_get we have not NULL returned value.
@fix

Reviewers: cedric, Hermet, raster, jpeg

Reviewed By: cedric

Subscribers: artem.popov

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

7 years agoecore: proper macro usage for double comparision. Summary: The comparisions are done...
Umesh Tanwar [Tue, 21 Mar 2017 18:11:19 +0000 (11:11 -0700)]
ecore: proper macro usage for double comparision. Summary: The comparisions are done between doubles.  EINA_FLT_EQ -> EINA_DBL_EQ

Summary: Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com>

Reviewers: singh.amitesh, cedric

Subscribers: jpeg, atulfokk

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoecore_evas_extn: do not update plug image when lockfile is invalid.
Minkyoung Kim [Tue, 21 Mar 2017 18:05:43 +0000 (11:05 -0700)]
ecore_evas_extn: do not update plug image when lockfile is invalid.

Summary:
This prevent invalid shared memory access.
Invalid access occur when server is resized sequentially from now to A-size
to B-size, and client receive A resize message after resizing B.
Then client try to render plug image with A-size, but shared memory is B-size
buffer. Size are mismatch. This makes segmentation fault when uploading texture(gl)
or rendering image(sw).

Test Plan: Indicator rendering on Tizen3.0 platform.

Reviewers: jypark, wonsik, dkdk, scholb.kim, jiin.moon, jpeg, cedric

Reviewed By: cedric

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agogenlist: Fix another issue with insert sorted
Jean-Philippe Andre [Mon, 20 Mar 2017 13:24:41 +0000 (22:24 +0900)]
genlist: Fix another issue with insert sorted

Fixes T5274

@fix

7 years agoevas gl: Fix a compilation warning
Jean-Philippe Andre [Mon, 20 Mar 2017 03:51:16 +0000 (12:51 +0900)]
evas gl: Fix a compilation warning

The fallback lib handle is not required unless EGL/GLES is used.

7 years agoeina_debug: do not leak a spinlock when the path is not given
Marcel Hollerbach [Sat, 18 Mar 2017 21:06:30 +0000 (22:06 +0100)]
eina_debug: do not leak a spinlock when the path is not given

7 years agogl_drm: Fix KHR partial update support
Derek Foreman [Fri, 17 Mar 2017 20:32:26 +0000 (15:32 -0500)]
gl_drm: Fix KHR partial update support

I fixed this in other engines but missed this one.  The result is some
terrible flickering on gl_drm on recent mali drivers.

7 years agoecore_drm2: Move function call after the NULL check
Derek Foreman [Fri, 17 Mar 2017 20:06:39 +0000 (15:06 -0500)]
ecore_drm2: Move function call after the NULL check

Was dereferencing ob before NULL checking it.  What could possibly go
wrong?

7 years agogl_drm: Properly disable EGL_EXT_buffer_age when we don't have it
Derek Foreman [Fri, 17 Mar 2017 20:04:47 +0000 (15:04 -0500)]
gl_drm: Properly disable EGL_EXT_buffer_age when we don't have it

If we don't have EGL_EXT_buffer_age then we don't have buffer age - it's
a completely independent extension to KHR partial update.

This partially fixes partial update on recent mali drivers.

7 years agotheme: remove event gaps in enlightenment window frames
Mike Blumenkrantz [Fri, 17 Mar 2017 17:16:53 +0000 (13:16 -0400)]
theme: remove event gaps in enlightenment window frames

@fix

7 years agoefreet: CRI and fail after 10 attempts to connect to efreetd
Mike Blumenkrantz [Fri, 17 Mar 2017 17:16:53 +0000 (13:16 -0400)]
efreet: CRI and fail after 10 attempts to connect to efreetd

if efreetd cannot be connected to, stop infinitely trying to spawn it
since this generates crazy cpu load

probably this path should also send some cache events so that watchers
do not simply idle forever

ref T5200

7 years agoecore-evas: handle title_set and name_class_set for buffer engine
Mike Blumenkrantz [Fri, 17 Mar 2017 17:16:53 +0000 (13:16 -0400)]
ecore-evas: handle title_set and name_class_set for buffer engine

7 years agotheme: make bryce vertical clipping work as expected
Mike Blumenkrantz [Fri, 17 Mar 2017 17:16:53 +0000 (13:16 -0400)]
theme: make bryce vertical clipping work as expected

ref a94351a789ae7c11efb72c1b9f35cd7fae4d7fa2

7 years agoevas table: CRI when attempting to pack a table child into another table
Mike Blumenkrantz [Fri, 17 Mar 2017 17:16:53 +0000 (13:16 -0400)]
evas table: CRI when attempting to pack a table child into another table

@fix

7 years agoelm_code: Update and demo status messages inline
Andy Williams [Fri, 17 Mar 2017 10:07:04 +0000 (10:07 +0000)]
elm_code: Update and demo status messages inline

7 years agoelementary: enhance atspi accessible documentation
Shinwoo Kim [Fri, 17 Mar 2017 07:52:16 +0000 (16:52 +0900)]
elementary: enhance atspi accessible documentation

7 years agogengrid: avoid call select callback twice in mode ELM_OBJECT_MULTI_SELECT_MODE_WITH_C...
Vyacheslav Reutskiy [Fri, 17 Mar 2017 06:59:26 +0000 (08:59 +0200)]
gengrid: avoid call select callback twice in mode ELM_OBJECT_MULTI_SELECT_MODE_WITH_CONTROL

If multi select mode is ELM_OBJECT_MULTI_SELECT_MODE_WITH_CONTROL and
user code try unselect a item and select another part which not
realized select callback calls twice in this case. For avoid this no
needs focus newly selected item.

@fix

7 years agoluncher: improving engage animations
Andy Williams [Thu, 16 Mar 2017 22:57:03 +0000 (22:57 +0000)]
luncher: improving engage animations

7 years agoeina_file: fixed T2244
Ivan Furs [Wed, 15 Mar 2017 17:49:19 +0000 (10:49 -0700)]
eina_file: fixed T2244

Summary:
dirty fix for 'eet' problems with file deletion on WINDOWS
to work with the commit: D4698, D4699

Reviewers: cedric, NikaWhite, rimmed, vtorri, raster

Reviewed By: cedric

Subscribers: artem.popov, cedric, jpeg

Maniphest Tasks: T2244

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoevas: drop redundant pointer check
Bryce Harrington [Wed, 15 Mar 2017 17:40:01 +0000 (10:40 -0700)]
evas: drop redundant pointer check

Summary:
The function already has a precondition test for !font, so this
additional test will never trigger.

@fix CID1371525

Reviewers: cedric, jpeg

Subscribers: jpeg, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoelementary: Fix minor typo in efl_ui_win.eo
Chris Michael [Tue, 14 Mar 2017 14:51:01 +0000 (10:51 -0400)]
elementary: Fix minor typo in efl_ui_win.eo

Small patch to fix a minor typo in the "noblank" property of
efl_ui_win.eo

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agogenlist: Fix a leak
Jean-Philippe Andre [Tue, 14 Mar 2017 14:07:34 +0000 (23:07 +0900)]
genlist: Fix a leak

Thanks @herdsman

7 years agoecore: Fix memory leak and logic
Jean-Philippe Andre [Tue, 14 Mar 2017 13:28:50 +0000 (22:28 +0900)]
ecore: Fix memory leak and logic

@cedric... how could this even happen??

7 years agorelease: Update NEWS and bump version for 1.19.0-beta3 release
Stefan Schmidt [Tue, 14 Mar 2017 09:58:39 +0000 (10:58 +0100)]
release: Update NEWS and bump version for 1.19.0-beta3 release