platform/upstream/efl.git
8 years agoelm_menu: fix callback deletion from NULL object
Andrii Kroitor [Mon, 19 Sep 2016 07:47:28 +0000 (16:47 +0900)]
elm_menu: fix callback deletion from NULL object

Reviewers: cedric, raster, Hermet

Reviewed By: Hermet

Subscribers: jpeg, reutskiy.v.v

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

8 years agoefl_net_dialer_tcp: add SOCKS proxy support.
Gustavo Sverzut Barbieri [Mon, 19 Sep 2016 03:56:18 +0000 (00:56 -0300)]
efl_net_dialer_tcp: add SOCKS proxy support.

SOCKS is implemented in its own thread using synchronous/blocking
primitives, which simplifies the code a lot -- as well as simulate the
usage of Ecore_Thread as our users will likely do.

Since SOCKSv4a and SOCKSv5 allow name resolution, the whole
getaddrinfo() is done in the same thread, when needed, instead of a
separate thread to do that, which should also save some resources.

Instead of the legacy ECORE_CON_SOCKS_V4 and ECORE_CON_SOCKS_V5, now
we use socks_proxy, all_proxy and no_proxy. This matches our other
dialers http/websocket (which will use http_proxy, all_proxy and
no_proxy). If desired it's easy to add back support for those
variables, but I think we should just deprecate them. (The legacy code
will keep unchanged, thus direct users of ecore_con_server will still
use those -- just the previous users of ecore_con_server will be
converted to use the new API).

8 years agoefl_net_dialer_http: do eos on error.
Gustavo Sverzut Barbieri [Sat, 17 Sep 2016 14:27:58 +0000 (11:27 -0300)]
efl_net_dialer_http: do eos on error.

8 years agoefl_net_dialer: improve proxy docs.
Gustavo Sverzut Barbieri [Sat, 17 Sep 2016 01:19:37 +0000 (22:19 -0300)]
efl_net_dialer: improve proxy docs.

Document some proxy behavior like done by CURL, so we'll follow that
standard, with $http_proxy, $socks_proxy, $all_proxy and $no_proxy.

also add some missing @since.

8 years agoefl_promise: check NULL before calling.
Gustavo Sverzut Barbieri [Mon, 19 Sep 2016 04:16:37 +0000 (01:16 -0300)]
efl_promise: check NULL before calling.

we do not check any of success, failure or progress, so we must check
if they are valid before calling.

This fixed a bug in efl_net_dialer_tcp where it uses a null failure
cb and was SEGV.

8 years agoeina_thread: don't leak on pthread_cancel().
Gustavo Sverzut Barbieri [Sat, 17 Sep 2016 01:17:25 +0000 (22:17 -0300)]
eina_thread: don't leak on pthread_cancel().

if we cancel a thread we should still free the context, so use the new
EINA_THREAD_CLEANUP_PUSH() and EINA_THREAD_CLEANUP_POP()

8 years agoelm: Fix edit popup menu order
Andy Williams [Sat, 17 Sep 2016 22:58:55 +0000 (23:58 +0100)]
elm: Fix edit popup menu order

Cut/Copy/Paste is the standard order most other places.
@fix

8 years agoecore,ecore_con: fix migration to efl_future.
Cedric Bail [Sat, 17 Sep 2016 01:21:11 +0000 (18:21 -0700)]
ecore,ecore_con: fix migration to efl_future.

Efl_Future actually work with weak reference. So you do not need to
set things to NULL, but you actually need to register the memory location
of the future with efl_future_use.

8 years agoRevert "eina: Actually call eina_cpu_init() and eina_cpu_shutdown()"
Derek Foreman [Sat, 17 Sep 2016 00:39:38 +0000 (19:39 -0500)]
Revert "eina: Actually call eina_cpu_init() and eina_cpu_shutdown()"

This reverts commit 1881b0d34302b8c29d4b086715eeda9e576ee60a.

This is called from an array constructed with pre-processor macros and
I didn't notice.

8 years agoevas-drm: update drm engine recovery from all buffers used
Derek Foreman [Fri, 16 Sep 2016 21:12:22 +0000 (16:12 -0500)]
evas-drm: update drm engine recovery from all buffers used

Use the relatively new buffer release API to free up buffers instead
of immediately going nuclear and blowing away all buffer ages.

8 years agoeina_cpu: Fix broken E_API macro
Derek Foreman [Fri, 16 Sep 2016 20:56:46 +0000 (15:56 -0500)]
eina_cpu: Fix broken E_API macro

Oops, I cut and paste it from a wrong file.

Thanks to Vincent Torri for the quick catch.

8 years agoeo invalid err - make the thread self more useful like main.
Carsten Haitzler (Rasterman) [Fri, 16 Sep 2016 20:49:32 +0000 (05:49 +0900)]
eo invalid err - make the thread self more useful like main.

8 years agoeina_cpu: Detect NEON if available
Derek Foreman [Fri, 16 Sep 2016 18:05:56 +0000 (13:05 -0500)]
eina_cpu: Detect NEON if available

We may have a few conditionals around that think this has actually been
set at some point, let's surprise them by actually doing that.

8 years agoeina_thread: Don't ensure affinity core is lower than number of cpus
Derek Foreman [Thu, 15 Sep 2016 21:09:00 +0000 (16:09 -0500)]
eina_thread: Don't ensure affinity core is lower than number of cpus

CPUs can be turned off after boot leading to a sparse mapping of core ids.

For example, if I turn off the first four cores on an exynos 5422 (these
are the low speed cores) then the high speed cores are still numbered 4-7
but there are only 4 cores present.

In that situation using affinity_core % num_cpus will prevent ever being
able to set affinity at all.

Just remove the pointless check and let the user set whatever core id they
want.

8 years agorender_thread: Attempt to set affinity to a random fast core
Derek Foreman [Thu, 15 Sep 2016 21:05:25 +0000 (16:05 -0500)]
render_thread: Attempt to set affinity to a random fast core

We've been pinning the render thread for every EFL process to core 0.
This is a bit silly in the first place, but some big.LITTLE arm systems,
such as exynos 5422, have the LITTLE cores first.

On those systems we put all the render threads on a slow core.

This attempts to fix that by using a random core from the pool of fast
cores.

If we can't determine which cores are fast (ie: we're not on a
linux kernel with cpufreq enabled) then we'll continue doing what we've
always done.

8 years agoeina_cpu: Add an internal api for getting a random fast core
Derek Foreman [Thu, 15 Sep 2016 21:02:10 +0000 (16:02 -0500)]
eina_cpu: Add an internal api for getting a random fast core

In a big.LITTLE ARM system cores can have different capabilities.  This
gives an internal API that randomly returns the core id of any of the
system's fastest cores.

On systems where all cores are the same, it will return any available core.

If we don't have cpufreq support we just return 0

8 years agoeina: Actually call eina_cpu_init() and eina_cpu_shutdown()
Derek Foreman [Fri, 16 Sep 2016 15:58:36 +0000 (10:58 -0500)]
eina: Actually call eina_cpu_init() and eina_cpu_shutdown()

Without calling eina_cpu_init() the eina_cpu_features bits aren't
properly set up.

Let's call it and see if anything exciting happens.

8 years agoEina: fix colors messages in MSYS2
Vincent Torri [Fri, 16 Sep 2016 12:27:30 +0000 (14:27 +0200)]
Eina: fix colors messages in MSYS2

With MSYS1 or cygwin 1.5, or DOS console, the display is done by redirecting
stdout and al. So to change the colors, the Win32 API of the console must be
used.
On the contrary, the terminals based on mintty (like cygwin 1.8 terminal or MSYS2)
the redirection is done with pipes, so the Win32 API of the console does not
work when changing the colors and we can use the POSIX colors of printf.

This patch is fixing the eina code which alwayss use the Win32 API of the console
on Windows, even if mintty-based terminals are used

8 years agoefl_io and efl_net examples: fix O_CLOEXEC on windows.
Gustavo Sverzut Barbieri [Fri, 16 Sep 2016 10:42:24 +0000 (07:42 -0300)]
efl_io and efl_net examples: fix O_CLOEXEC on windows.

use the efl_io_closer_close_on_exec_set() to use a simple boolean
instead of a flag that may be undefined on some platforms, such as
windows.

8 years agoefl_io_file: unbreak windows build (missing O_CLOEXEC).
Gustavo Sverzut Barbieri [Fri, 16 Sep 2016 10:26:54 +0000 (07:26 -0300)]
efl_io_file: unbreak windows build (missing O_CLOEXEC).

To avoid many ifdef, define the flag to 0 so we "| 0" or "& ~0", that
have no effect.

Fixes T4612.

8 years agoeo - id lookup failure expansive error print for ebbter debug
Carsten Haitzler (Rasterman) [Fri, 16 Sep 2016 09:51:22 +0000 (18:51 +0900)]
eo - id lookup failure expansive error print for ebbter debug

whenan eoid lookup fails, now print a lot of information on the issue
like the actual id, generation of the id, if its a class or object
(the class bit), if its ref or super bit is set, the actual id (which
includes the table heirachy), which thread id it is, what domain the
object id is and the current and local domains as well as what domains
are mapped in.

8 years agoecore_con: forgotten update of Eina_Promise to Efl_Future convertion due to git rebase.
Cedric Bail [Fri, 16 Sep 2016 04:51:15 +0000 (21:51 -0700)]
ecore_con: forgotten update of Eina_Promise to Efl_Future convertion due to git rebase.

8 years agoecore_con: migrate use of Eina_Promise to Efl_Future.
Cedric Bail [Fri, 16 Sep 2016 04:48:42 +0000 (21:48 -0700)]
ecore_con: migrate use of Eina_Promise to Efl_Future.

8 years agoeio: use proper const for progress.
Cedric Bail [Fri, 16 Sep 2016 04:48:25 +0000 (21:48 -0700)]
eio: use proper const for progress.

8 years agoecore: migrate job and timeout tests to use efl_future.
Cedric Bail [Fri, 16 Sep 2016 04:48:01 +0000 (21:48 -0700)]
ecore: migrate job and timeout tests to use efl_future.

8 years agoecore: make sure that progress type have the proper const.
Cedric Bail [Fri, 16 Sep 2016 04:47:41 +0000 (21:47 -0700)]
ecore: make sure that progress type have the proper const.

8 years agoecore: migrate job and timeout to use future.
Cedric Bail [Fri, 16 Sep 2016 04:46:00 +0000 (21:46 -0700)]
ecore: migrate job and timeout to use future.

8 years agoecore: shut up const warning.
Cedric Bail [Fri, 16 Sep 2016 04:45:05 +0000 (21:45 -0700)]
ecore: shut up const warning.

8 years agoecore: do not trigger future,none once value/cancel has been set.
Cedric Bail [Fri, 16 Sep 2016 04:43:47 +0000 (21:43 -0700)]
ecore: do not trigger future,none once value/cancel has been set.

This would have forced who ever used future,none signal to manually
filter out event triggered by all the future beeing fullfiled and
disconnecting once they receive a value or are marked failed.

8 years agoelm fileselector: fix legacy methods for Entry and Button
Vitor Sousa [Thu, 15 Sep 2016 00:02:15 +0000 (21:02 -0300)]
elm fileselector: fix legacy methods for Entry and Button

Some legacy functions that works with string paths were not redirecting for
the correct code when called with Elm.Fileselector.Button or
Elm.Fileselector.Entry.
This commit fixes this problem.

@fix

8 years agoelm fileselector: fix test to wait for the right event
Vitor Sousa [Wed, 14 Sep 2016 23:45:16 +0000 (20:45 -0300)]
elm fileselector: fix test to wait for the right event

Fileselector test was waiting for the wrong event. It caused the test to
fail in some situations, since it could check the object when it is
not ready.

Fix T4502

@fix

8 years agoelementary: properly handle refcounting of file in efl_ui_image asynchronous image...
Cedric Bail [Wed, 14 Sep 2016 23:52:08 +0000 (16:52 -0700)]
elementary: properly handle refcounting of file in efl_ui_image asynchronous image openning.

8 years agoeina: allow graceful failure when calling eina_thread_cancel with NULL.
Cedric Bail [Wed, 14 Sep 2016 23:50:05 +0000 (16:50 -0700)]
eina: allow graceful failure when calling eina_thread_cancel with NULL.

8 years agobindings: cxx: add more new files to buildsystem to make sure they land in dist
Stefan Schmidt [Wed, 14 Sep 2016 16:01:25 +0000 (18:01 +0200)]
bindings: cxx: add more new files to buildsystem to make sure they land in dist

Another set of new files which have not been referenced and thus never put into
dist.

8 years agoeina/ecore: allow threads to be canceled, use in ecore_con.
Gustavo Sverzut Barbieri [Wed, 14 Sep 2016 04:38:58 +0000 (01:38 -0300)]
eina/ecore: allow threads to be canceled, use in ecore_con.

As discussed in the mailing list, many people will use worker threads
to execute blocking syscalls and mandating ecore_thread_check() for
voluntary preemption reduces the ecore_thread usefulness a lot.

A clear example is ecore_con usage of connect() and getaddrinfo() in
threads. If the connect timeout expires, the thread will be cancelled,
but it was blocked on syscalls and they will hang around for long
time. If the application exits, ecore will print an error saying it
can SEGV.

Then enable access to pthread_setcancelstate(PTHREAD_CANCEL_ENABLE)
via eina_thread_cancellable_set(EINA_TRUE), to pthread_cancel() via
eina_thread_cancel(), to pthread_cleanup_push()/pthread_cleanup_pop()
via EINA_THREAD_CLEANUP_PUSH()/EINA_THREAD_CLEANUP_POP() and so on.

Ecore threads will enforce non-cancellable threads on its own code,
but the user may decide to enable that and allow cancellation, that's
not an issue since ecore_thread now plays well and use cleanup
functions.

Ecore con connect/resolve make use of that and enable cancellable
state, efl_net_dialer_tcp benefits a lot from that.

A good comparison of the benefit is to run:

   ./src/examples/ecore/efl_io_copier_example tcp://google.com:1234 :stdout:

before and after. It will timeout after 30s and with this patch the
thread is gone, no ecore error is printed about possible SEGV.

8 years agoeo-cxx: Replace for ENOMEM to avoid warnings
Felipe Magno de Almeida [Wed, 14 Sep 2016 03:55:51 +0000 (00:55 -0300)]
eo-cxx: Replace for ENOMEM to avoid warnings

8 years agoeo-cxx: Fix race promises
Felipe Magno de Almeida [Wed, 14 Sep 2016 03:33:02 +0000 (00:33 -0300)]
eo-cxx: Fix race promises

8 years agoeo-cxx: Add promise type
Felipe Magno de Almeida [Wed, 17 Aug 2016 23:48:24 +0000 (20:48 -0300)]
eo-cxx: Add promise type

8 years agoeo-cxx: Add race promises through eina::variant
Felipe Magno de Almeida [Wed, 17 Aug 2016 02:26:52 +0000 (23:26 -0300)]
eo-cxx: Add race promises through eina::variant

8 years agoeo-cxx: race for promises
Felipe Magno de Almeida [Mon, 15 Aug 2016 17:47:16 +0000 (14:47 -0300)]
eo-cxx: race for promises

8 years agoeina-cxx: Moved variant to eina C++
Felipe Magno de Almeida [Mon, 15 Aug 2016 17:47:00 +0000 (14:47 -0300)]
eina-cxx: Moved variant to eina C++

8 years agoevas: link output with evas canvas at finalize time.
Cedric BAIL [Tue, 13 Sep 2016 23:12:04 +0000 (16:12 -0700)]
evas: link output with evas canvas at finalize time.

8 years agoevas: remove useless symbol.
Cedric BAIL [Tue, 13 Sep 2016 23:11:48 +0000 (16:11 -0700)]
evas: remove useless symbol.

8 years agoevas: efl_canvas_output should be able to provide pixels if requested.
Cedric BAIL [Tue, 13 Sep 2016 23:10:26 +0000 (16:10 -0700)]
evas: efl_canvas_output should be able to provide pixels if requested.

8 years agoefl_net_dialer_* use timeout promise instead of timer object.
Gustavo Sverzut Barbieri [Tue, 13 Sep 2016 19:08:25 +0000 (16:08 -0300)]
efl_net_dialer_* use timeout promise instead of timer object.

i wasn't aware of efl_loop_timeout for one-shot timeout promises, then
use it instead of a full object.

8 years agoevas: Add missing return values for _efl_canvas_output_lock/unlock
Chris Michael [Tue, 13 Sep 2016 13:36:15 +0000 (09:36 -0400)]
evas: Add missing return values for _efl_canvas_output_lock/unlock
functions

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agoevas: Mark unused parameters as being EINA_UNUSED
Chris Michael [Tue, 13 Sep 2016 13:32:48 +0000 (09:32 -0400)]
evas: Mark unused parameters as being EINA_UNUSED

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agotests: eio: use eina file infrastructure for temporary file creation
Stefan Schmidt [Thu, 16 Jun 2016 13:37:46 +0000 (15:37 +0200)]
tests: eio: use eina file infrastructure for temporary file creation

The tmp dir is not always /tmp.

8 years agoeio_eet: Added test suite for eio eet module.
Vivek Ellur [Mon, 6 Jun 2016 14:47:49 +0000 (16:47 +0200)]
eio_eet: Added test suite for eio eet module.

Summary:
Added new test suite for eio eet module

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

Subscribers: stefan_schmidt, jpeg, cedric

Tags: #efl

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

8 years agoedje: Fix memory overflow on svg loader.
Jaehyun Cho [Tue, 13 Sep 2016 08:49:36 +0000 (17:49 +0900)]
edje: Fix memory overflow on svg loader.

Initialize temporary index not to cause memory overflow on svg loader.

8 years agoRemove leftover evas_out usage from legacy
Daniel Hirt [Tue, 13 Sep 2016 07:38:02 +0000 (10:38 +0300)]
Remove leftover evas_out usage from legacy

Build failed after b5456893ee8a1a86a9b7e0342f644f3785711e06 due to
a missing header.

8 years agoevas: Fix possible crash in evas_model_save_eet.c
Oleksandr Shcherbina [Tue, 13 Sep 2016 06:17:53 +0000 (15:17 +0900)]
evas: Fix possible crash in evas_model_save_eet.c

Summary: @fix

Reviewers: cedric, raster, Hermet

Reviewed By: Hermet

Subscribers: artem.popov, jpeg

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

8 years agoelm_calendar: Fix header text bug.
Woochan Lee [Tue, 13 Sep 2016 06:13:45 +0000 (15:13 +0900)]
elm_calendar: Fix header text bug.

Summary:
There is a bug. when calendar showing very first time.
the some of the headers(weekday name) is blank.

Because of elm_layout_text_set() called with NULL value.

Need to insert all of the weekday names before set text.

@fix

Test Plan:
Execute elementary_test
Open calendar sample.
See the all of the header names there.

Reviewers: cedric, jpeg, Hermet

Reviewed By: Hermet

Subscribers: cedric, jpeg

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

8 years agoSync mailmap
Simon Lees (SUSE) [Tue, 13 Sep 2016 05:42:58 +0000 (15:12 +0930)]
Sync mailmap

8 years agoevas: start working on efl_canvas_output.
Cedric BAIL [Mon, 12 Sep 2016 23:18:08 +0000 (16:18 -0700)]
evas: start working on efl_canvas_output.

This should when done enable the possibility for multi screen in wayland
along with remote display, wireless display and screencasting.

8 years agoeio: properly track destruction of all Eet eio request.
Cedric BAIL [Mon, 12 Sep 2016 18:19:10 +0000 (11:19 -0700)]
eio: properly track destruction of all Eet eio request.

@fix T4550

8 years agoefl_net_dialer_tcp: add connect timeout.
Gustavo Sverzut Barbieri [Mon, 12 Sep 2016 17:48:03 +0000 (14:48 -0300)]
efl_net_dialer_tcp: add connect timeout.

8 years agoefl_net_dialer_websocket: close and emit EOS on error.
Gustavo Sverzut Barbieri [Mon, 12 Sep 2016 16:44:35 +0000 (13:44 -0300)]
efl_net_dialer_websocket: close and emit EOS on error.

On errors we should close the websocket and if it's in streaming mode
emit an EOS.

8 years agoefl_net_dialer_tcp: emit EOS on errors.
Gustavo Sverzut Barbieri [Mon, 12 Sep 2016 16:21:20 +0000 (13:21 -0300)]
efl_net_dialer_tcp: emit EOS on errors.

I/O copier and others may depend on end-of-stream to stop processing,
then emit the EOS on failures.

8 years agoefl_net_dialer_http: emit eos only at the end.
Gustavo Sverzut Barbieri [Mon, 12 Sep 2016 15:46:05 +0000 (12:46 -0300)]
efl_net_dialer_http: emit eos only at the end.

http copiers were never finishing since eos was being reset to FALSE
before the I/O copier job executed.

8 years agoefl_net_socket_fd: fail early on double close.
Gustavo Sverzut Barbieri [Mon, 12 Sep 2016 16:17:50 +0000 (13:17 -0300)]
efl_net_socket_fd: fail early on double close.

8 years agoefl_io_closer: add close_on_exec and close_on_destructor properties.
Gustavo Sverzut Barbieri [Mon, 12 Sep 2016 15:23:29 +0000 (12:23 -0300)]
efl_io_closer: add close_on_exec and close_on_destructor properties.

the purpose of these properties are to make it more uniform the
handling of these auto-close behavior.

8 years agoconfig: Add Escape key binding to naviframe.
Jaehyun Cho [Mon, 12 Sep 2016 11:30:50 +0000 (20:30 +0900)]
config: Add Escape key binding to naviframe.

Naviframe item is popped when Escape key is pressed.

8 years agoEdje_Edit: check returned value edje_edit_edje_file_save function.
Mykyta Biliavskyi [Mon, 12 Sep 2016 11:31:08 +0000 (14:31 +0300)]
Edje_Edit: check returned value edje_edit_edje_file_save function.

In edje_edit_group_copy() for case when save routine is failed
still returned EINA_TRUE. Now will be returned result of save routine.

@fix
CID: 1362727

8 years agotests: eo_cxx: make sure new header files is included in dist tarball
Stefan Schmidt [Mon, 12 Sep 2016 11:01:48 +0000 (13:01 +0200)]
tests: eo_cxx: make sure new header files is included in dist tarball

This new file is available in the src tree but as we do not reference it in the
Makefile it is never put into the dist tarball making distcheck fail.

8 years agoexamples: elementary: fix build for cxx examples needing ecore_cxx includes
Stefan Schmidt [Mon, 12 Sep 2016 08:05:12 +0000 (10:05 +0200)]
examples: elementary: fix build for cxx examples needing ecore_cxx includes

The elementary cxx examples now need Ecore_Manual.hh from the cxx bindings.
Make sure we setup the include paths accordingly.

8 years agoevas map: fix the rendering problem.
Hermet Park [Mon, 12 Sep 2016 07:50:00 +0000 (16:50 +0900)]
evas map: fix the rendering problem.

I got an issue report about map rendering.
After investigated, I found that was introduced by data overflow.

For fast computation, evas map uses integer data type rather than float,
that gives up some range of data size.

So, if vertex range is a little large but still reasonable,
polygon won'be properly displayed due to the integer overflow.

We can fix this by changing FPc data type to 64 bits (ie, long long)
But I didn't do yet though I can simply fix this costlessly.

By the way, my test case map points are below.

0: -1715, -5499
1: -83, -1011
2: 1957, 5721
3: 325, 1233

and gl result is perfect but sw is totally broken.

@fix

8 years agoelementary test_glview: guide ELM_ACCEL rather than ELM_ENGINE
Hermet Park [Mon, 12 Sep 2016 04:09:17 +0000 (13:09 +0900)]
elementary test_glview: guide ELM_ACCEL rather than ELM_ENGINE

Specifying explicit engine name is not honored now
because backened engine name depends on the system.
We prefer to guide accelerator rather than engine.

8 years agoeolian-cxx: Implement future template class for C++
Felipe Magno de Almeida [Sun, 7 Aug 2016 19:52:48 +0000 (16:52 -0300)]
eolian-cxx: Implement future template class for C++

8 years agoembryo_cc: fix memory overflow in str
WooHyun Jung [Mon, 12 Sep 2016 01:09:32 +0000 (10:09 +0900)]
embryo_cc: fix memory overflow in str

After for-loop i can have value 11. So the str should be longer than 11.

@fix

8 years agoelm: don't show our elm_code popup if ctrl pressed
Andy Williams [Sun, 11 Sep 2016 18:10:04 +0000 (19:10 +0100)]
elm: don't show our elm_code popup if ctrl pressed

8 years agoelm: Add popup edit menu in elm_code
Andy Williams [Sun, 11 Sep 2016 17:47:05 +0000 (18:47 +0100)]
elm: Add popup edit menu in elm_code

8 years agoEcore_con_ssl: fix return value of ecore_con_ssl_client_upgrade.
Mykyta Biliavskyi [Sun, 11 Sep 2016 17:15:50 +0000 (20:15 +0300)]
Ecore_con_ssl: fix return value of ecore_con_ssl_client_upgrade.

In case when _ecore_con_ssl_client_init_(gnutls/openssl) finished
successful a enum ECORE_CON_SSL_ERROR_NONE value (0) returned. Function
ecore_con_ssl_client_upgrade return Eina_Bool and in case of success
EINA_FALSE was returned.

@fix

8 years agoeio: finish port to new efl_io_manager API.
Cedric BAIL [Fri, 9 Sep 2016 23:22:20 +0000 (16:22 -0700)]
eio: finish port to new efl_io_manager API.

8 years agoecore: shutup unused arguments warning.
Cedric BAIL [Fri, 9 Sep 2016 23:21:47 +0000 (16:21 -0700)]
ecore: shutup unused arguments warning.

8 years agoecore: fix reference counting of promise value for efl_future_race and efl_future_all.
Cedric BAIL [Fri, 9 Sep 2016 23:20:52 +0000 (16:20 -0700)]
ecore: fix reference counting of promise value for efl_future_race and efl_future_all.

8 years agoefl_net_dialer_tcp: make asynchronous resolve and connect.
Gustavo Sverzut Barbieri [Fri, 9 Sep 2016 23:09:51 +0000 (20:09 -0300)]
efl_net_dialer_tcp: make asynchronous resolve and connect.

both resolve (getaddrinfo()) and connect() are now done in
Ecore_Thread, avoid to block the main loop.

My plan is to always use the threaded connect() using a blocking
socket, only set it to non-blocking after the socket is returned to
the main thread and before it's accessible to the user. It will make
the connect behavior more uniform.

Some errors were moved from HTTP to Dialer as they are more generic.

8 years agoecore-drm2: Rename output_fb_release to just fb_release
Chris Michael [Fri, 9 Sep 2016 19:08:40 +0000 (15:08 -0400)]
ecore-drm2: Rename output_fb_release to just fb_release

As this function releases FBOs on a given output, lets just shorten
the API function name so it can stay grouped into the ecore_drm2_fb.c
file ... leaving it as ecore_drm2_output_fb_release reads like it
should have gone into the ecore_drm2_output.c file...

NB: No real function changes here, just an API rename.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agoecore-drm2: Add missing EINA_SAFETY checks for public facing API
Chris Michael [Fri, 9 Sep 2016 19:05:00 +0000 (15:05 -0400)]
ecore-drm2: Add missing EINA_SAFETY checks for public facing API
functions

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agogl_drm_ee: Remove repulsive hack and do proper gbm buffer accounting
Derek Foreman [Fri, 9 Sep 2016 18:35:22 +0000 (13:35 -0500)]
gl_drm_ee: Remove repulsive hack and do proper gbm buffer accounting

We no longer need this hack as we now have a way to properly handle the
buffer locking in the engine, and don't currently deal with multi-head.

8 years agoecore_drm2: Add ecore_drm2_output_fb_release way to force buffer release
Derek Foreman [Fri, 9 Sep 2016 18:33:15 +0000 (13:33 -0500)]
ecore_drm2: Add ecore_drm2_output_fb_release way to force buffer release

Adds an api to attempt to release an fb from an output.  This will try
to first free any queued but not display buffers, which may harmlessly
give us a render target.

However, if that fails it will try to get buffers that have been sent to
scanout, which can lead to tearing.

8 years agoecore_drm2: Add release handlers for buffers
Derek Foreman [Fri, 9 Sep 2016 18:31:20 +0000 (13:31 -0500)]
ecore_drm2: Add release handlers for buffers

Allow the engine to register a callback for buffer release.  This lets us
do appropriate buffer bookkeeping (for example, gbm locking) in the
engine.

8 years agoecore_drm2: Store gbm_bo for Fbs and add a getter function for it
Derek Foreman [Fri, 9 Sep 2016 18:18:41 +0000 (13:18 -0500)]
ecore_drm2: Store gbm_bo for Fbs and add a getter function for it

This will aid with proper locking in gl_drm later

8 years agoremove TODO/hacks for eo, it's fixed now.
Gustavo Sverzut Barbieri [Fri, 9 Sep 2016 17:53:11 +0000 (14:53 -0300)]
remove TODO/hacks for eo, it's fixed now.

Tasn fixed https://phab.enlightenment.org/T4418 so these are not needed anymore.

8 years agodocs: fix editable section writer erasing wrong fields
Daniel Kolesa [Fri, 9 Sep 2016 12:48:33 +0000 (14:48 +0200)]
docs: fix editable section writer erasing wrong fields

8 years agodocs: add editable sections where possible
Daniel Kolesa [Fri, 9 Sep 2016 12:43:02 +0000 (14:43 +0200)]
docs: add editable sections where possible

8 years agoeolian: properly add < in struct/enum field docs
Daniel Kolesa [Fri, 9 Sep 2016 11:04:04 +0000 (13:04 +0200)]
eolian: properly add < in struct/enum field docs

Fixes T4443.

8 years agoEo: Remove the EO_DEBUG env check. We have DBG for that.
Tom Hacohen [Fri, 9 Sep 2016 10:38:07 +0000 (11:38 +0100)]
Eo: Remove the EO_DEBUG env check. We have DBG for that.

8 years agoUpdate the EFL according to new Eo API changes.
Tom Hacohen [Fri, 9 Sep 2016 10:24:37 +0000 (11:24 +0100)]
Update the EFL according to new Eo API changes.

I didn't expect it (my bad), but why the hell is this done manually
instead of using Eolian?! People, use Eolian.

8 years agoevas drm engine - fix build if gl not enabled for drm engine build
Carsten Haitzler (Rasterman) [Fri, 9 Sep 2016 10:11:06 +0000 (19:11 +0900)]
evas drm engine - fix build if gl not enabled for drm engine build

this fixes the build after a derek b0rk :)

8 years agoEo: Merge in changes in how functions are registered to classes.
Tom Hacohen [Fri, 9 Sep 2016 10:14:45 +0000 (11:14 +0100)]
Eo: Merge in changes in how functions are registered to classes.

More information in the relevant commit itself:
7ebf9d879d41169beda06b0195e4a3b3c60818e1

Breaks ABI and API

8 years agoEo: Change the way functions are registered to classes
Tom Hacohen [Fri, 9 Sep 2016 09:53:58 +0000 (10:53 +0100)]
Eo: Change the way functions are registered to classes

This change lets us remove a field from the structure that leads to
around 20KiB more of saving in private dirty pages in elementary.

This also looks a bit better and feels a bit cleaner.

Breaks API and ABI.

8 years agoeolian: separate ops struct for normal and class funcs (to match new API)
Daniel Kolesa [Thu, 8 Sep 2016 14:38:52 +0000 (16:38 +0200)]
eolian: separate ops struct for normal and class funcs (to match new API)

8 years agoEo: don't allow object override to introduce previously undefined functions.
Tom Hacohen [Fri, 9 Sep 2016 09:53:45 +0000 (10:53 +0100)]
Eo: don't allow object override to introduce previously undefined functions.

8 years agoeo - move eoid lookup to ptr indir file and clean up some code
Carsten Haitzler (Rasterman) [Fri, 9 Sep 2016 09:44:21 +0000 (18:44 +0900)]
eo - move eoid lookup to ptr indir file and clean up some code

this improves the readability of some of the new domain related and
ptr indir code..

8 years agoeo test suite - finish off the tests so we're testing all the features
Carsten Haitzler (Rasterman) [Fri, 9 Sep 2016 09:42:21 +0000 (18:42 +0900)]
eo test suite - finish off the tests so we're testing all the features

testing all the core features of eo domains now. yes it could be a lot
more extensive but it tests the important day to day cases. this is
the case across most of our tests too - they dont really stress things
out a lot.

8 years agoeo - we actually steal the 3rd highest bit for classes - fix
Carsten Haitzler (Rasterman) [Fri, 9 Sep 2016 03:50:56 +0000 (12:50 +0900)]
eo - we actually steal the 3rd highest bit for classes - fix

we now just lost another bit from generation count. down to 6 in 32bit
and 26 in 64 bit. this sucks but is necessary. now we are using the
bits just below ref and super bits the code was just maskign off the
next bit as a class marker. this was so so so so wrong. it was the ide
table space. we just never used numbers high enough to start using it.
since i added domain there now those bits can be used easily with
thread domain or other domain. argh! existing eo bug found and fixed.
annoying! :) i added another #define there just to be clear we use
that bit for classes.

8 years agoeo class add - dont always call getenv as this is epxensive. get once
Carsten Haitzler (Rasterman) [Fri, 9 Sep 2016 02:19:01 +0000 (11:19 +0900)]
eo class add - dont always call getenv as this is epxensive.  get once

so class creation is possibly a little slower thanks to always calling
getenv. get once then store rsult from there on out.

8 years agom4: fix the name for ecore-sdl in the pkconfig files.
Stefan Schmidt [Fri, 9 Sep 2016 09:09:48 +0000 (11:09 +0200)]
m4: fix the name for ecore-sdl in the pkconfig files.

Like some other libs we need to have a special handling here to get ecore-sdl
into the pc file instead ecore_sdl.

Fixes T4397

8 years agoeo: avoid redefinition of type Efl_Promise
Jean Guyomarc'h [Fri, 9 Sep 2016 06:39:02 +0000 (08:39 +0200)]
eo: avoid redefinition of type Efl_Promise

clang complained about type redefinition being a C11 feature, throwing a
warning for each compiling unit including Eo.h.