platform/upstream/efl.git
7 years agoevas: make sure we always wait in the correct thread.
Cedric BAIL [Thu, 2 Feb 2017 18:29:39 +0000 (10:29 -0800)]
evas: make sure we always wait in the correct thread.

7 years agoelm_code: add support for redo
YeongJong Lee [Thu, 2 Feb 2017 18:07:02 +0000 (18:07 +0000)]
elm_code: add support for redo

Summary:
now, elm_code support redo.
shortcut is <Ctrl> + <y>

Test Plan:
1. elementary_test - Code Editor
2. Check that undo and redo are work correctly.

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Subscribers: cedric, jpeg

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

7 years agoevlog - fix "remove setting stack var to 0" that broke evlogs
Carsten Haitzler (Rasterman) [Thu, 2 Feb 2017 01:13:24 +0000 (10:13 +0900)]
evlog - fix "remove setting stack var to 0" that broke evlogs

this fixes b38c610c7e60cbdcb45fd6d27450e39e3a9c9dd1 - recent commit by
me. bad me! spank!

7 years agoevas grid smart - fix divide by 0
Carsten Haitzler (Rasterman) [Wed, 1 Feb 2017 23:50:11 +0000 (08:50 +0900)]
evas grid smart - fix divide by 0

if object happens to be 0x0 then we can get a divide by 0... fix!

@fix

7 years agoecore_wl2: Make www events opt-in
Derek Foreman [Wed, 1 Feb 2017 22:21:34 +0000 (16:21 -0600)]
ecore_wl2: Make www events opt-in

Now we must set EFL_WAYLAND_ENABLE_WWW to turn on www.  (Note:
this does NOT re-enable any visual effect, it merely controls
the event infrastructure that can be used to let a client
know when its window is mapped or moving)

This wasn't really disabled properly earlier, so disable it now
for a slight performance win when dragging windows (and a major
reduction in log chatter when debugging wayland)

7 years agoedje: change seat signals
Bruno Dilly [Wed, 1 Feb 2017 19:14:39 +0000 (17:14 -0200)]
edje: change seat signals

Use seat names as prefix, not as suffix, following
a top-down approach and avoiding issues
with applications that may be receiving
doubled signals (legacy + suffixed).

So instead of "mouse,in,seat1" signal will be
"seat,seat1,mouse,in".

7 years agoedje: fix CID 1368019 - Null pointer dereferences
Bruno Dilly [Thu, 26 Jan 2017 20:26:23 +0000 (18:26 -0200)]
edje: fix CID 1368019 - Null pointer dereferences

It only should check if it's allowed to focus a part
if a part was passed (if rp is null such check should
be skipped).

7 years agoefl_net_dialer_http: check for finished handles after unpause.
Gustavo Sverzut Barbieri [Wed, 1 Feb 2017 18:23:11 +0000 (16:23 -0200)]
efl_net_dialer_http: check for finished handles after unpause.

After we call curl_multi_socket_action() we must call
_efl_net_dialer_http_curlm_check() in order to call
curl_multi_info_read() and be notified of handles that were
finished. Otherwise the handle is gone and we'll be waiting for an
action that will never happen.

Fixes T5079

7 years agobuild: Fix screw up with wayland header auto generation
Derek Foreman [Wed, 1 Feb 2017 17:29:40 +0000 (11:29 -0600)]
build: Fix screw up with wayland header auto generation

7 years agocmake: handle 'FindXXX.cmake' standard with 'find-XXX' libraries.
Gustavo Sverzut Barbieri [Wed, 1 Feb 2017 14:25:43 +0000 (12:25 -0200)]
cmake: handle 'FindXXX.cmake' standard with 'find-XXX' libraries.

One can use virtual 'find-XXX' entries in LIBRARIES or
PUBLIC_LIBRARIES to use XXX_LIBRARIES and XXX_INCLUDE_DIR.

7 years agocmake: handle support libraries in .pc
Gustavo Sverzut Barbieri [Wed, 1 Feb 2017 14:25:08 +0000 (12:25 -0200)]
cmake: handle support libraries in .pc

support libraries (src/static_libs), such as rg_etc, must not be
handled as a regular target, after all these are usually not shared
library and if they are, they have no .pc associated, then we use "-l"
as for system libraries, but using the installation path.

7 years agocmake: remove dependency on libjpeg in eet as it is handled in common
Stefan Schmidt [Wed, 1 Feb 2017 13:22:11 +0000 (14:22 +0100)]
cmake: remove dependency on libjpeg in eet as it is handled in common

7 years agoRevert "edje_edit: fix segmentation fault(Array index is out of bound)"
Vyacheslav Reutskiy [Wed, 1 Feb 2017 13:08:13 +0000 (15:08 +0200)]
Revert "edje_edit: fix segmentation fault(Array index is out of bound)"

This patch need to revert because it just a temporary solution for load
'inherit_only' groups. Problem with these groups is solved in patch
c3733a213ba2de3acc2496a381e8e3f591f2c10a

This reverts commit 88f5ac22c1dcd2ddaf4fda4f170fb5c0ad9b3afd.

7 years agoedje_cc: remove 'inherit_only' groups from result edj file
Vyacheslav Reutskiy [Wed, 1 Feb 2017 13:02:46 +0000 (15:02 +0200)]
edje_cc: remove 'inherit_only' groups from result edj file

The 'inherit_only' groups are helpers and no sense to save it to edj
file.

@fix

7 years agocmake: emile is depending on efl
Marcel Hollerbach [Wed, 1 Feb 2017 11:19:24 +0000 (12:19 +0100)]
cmake: emile is depending on efl

there is some .eot.h file included from the efl interfaces, so we need a
dependency here

7 years agocmake: use the jpeg module of cmake to find the library
Marcel Hollerbach [Wed, 1 Feb 2017 11:18:33 +0000 (12:18 +0100)]
cmake: use the jpeg module of cmake to find the library

finding libjpeg can be a bit more complex, there are systems that are
not delivering a .pc for it. So we should just use the cmake module to
find it.

7 years agocmake: fix efl version number
Stefan Schmidt [Wed, 1 Feb 2017 10:42:03 +0000 (11:42 +0100)]
cmake: fix efl version number

We are in the merge window for 1.19 so our number is actually 1.18.99

7 years agocmake: downgrade minimum cmake version to 3.4
Stefan Schmidt [Wed, 1 Feb 2017 10:40:25 +0000 (11:40 +0100)]
cmake: downgrade minimum cmake version to 3.4

There seems really no reason to have such a new version as 3.7 as minimum
here. MAybe even go down to 3.1 as suggested on the mailing list.

7 years agoelm_code: add copy/paste/cut undo
YeongJong Lee [Wed, 1 Feb 2017 09:08:14 +0000 (09:08 +0000)]
elm_code: add copy/paste/cut undo

Summary: The patch for supporting copy,paste and cut undo

Test Plan:
1. elementary_test - Code Editor
2. Check that undo work correctly when copy,paste and cut

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Subscribers: cedric, jpeg

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

7 years agoDnD/Container: fix drag during animation
Daniel Zaoui [Fri, 27 Jan 2017 10:08:55 +0000 (12:08 +0200)]
DnD/Container: fix drag during animation

If the user icons are set but animation time is set to 0, the icons are
not deleted, resulting in ghosts images in the application.
Additionally, behavior was badly handled when animation time or timeout
before drag were set to 0.

@fix

7 years agoecore_input: support Xbox One joystick
Shinwoo Kim [Wed, 1 Feb 2017 07:33:52 +0000 (16:33 +0900)]
ecore_input: support Xbox One joystick

Add joystick mapper for Microsoft X-Box One pad (Covert Forces)

7 years agoevas gl common - reduce data structure sizes got gl common context
Carsten Haitzler (Rasterman) [Wed, 1 Feb 2017 07:08:04 +0000 (16:08 +0900)]
evas gl common - reduce data structure sizes got gl common context

this reduced pipes to 32 as default max pipes is 32 and we never
actually go  up beyond 32 unless oyu use env vars to expand... and no
one will... and actual testing shows us top out at about 30 pipes
usage in anything i can find/test. this packs more bool flags together
as bits instead of itns or chars to save memory.

@optimize

7 years agoEldbus: add test suite for eldbus (eldbus_object*)
Mykola Solyanko [Wed, 1 Feb 2017 04:10:18 +0000 (13:10 +0900)]
Eldbus: add test suite for eldbus (eldbus_object*)

Summary:
add tests for next API:
eldbus_object_bus_name_get
eldbus_object_connection_get
eldbus_object_method_call_new
eldbus_object_path_get
eldbus_object_ref
eldbus_object_send
eldbus_object_get
eldbus_object_introspect
eldbus_object_peer_ping
eldbus_object_peer_machine_id_get
eldbus_object_get

Reviewers: cedric, NikaWhite, myoungwoon, raster

Subscribers: m.solyanko, jpeg, artem.popov

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

7 years agoelm_code: fix that selected code can't undo
YeongJong Lee [Tue, 31 Jan 2017 19:04:33 +0000 (19:04 +0000)]
elm_code: fix that selected code can't undo

Summary: Change some undo logic and remove unused function

Test Plan:
1. elementary_test - Code Editor
2. Select lines.
3. Remove selected lines.
4. undo removed lines(<Ctrl> + <z>)

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Subscribers: cedric, jpeg

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

7 years agoelput: Improve debug output for added devices
Chris Michael [Tue, 31 Jan 2017 15:55:55 +0000 (10:55 -0500)]
elput: Improve debug output for added devices

Small patch which does not print out debug info for devices we do not
handle, and adds the 'type' of device to the debug output (pointer,
keyboard, etc).

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelput: Don't add devices which we are not going to use
Chris Michael [Tue, 31 Jan 2017 15:54:09 +0000 (10:54 -0500)]
elput: Don't add devices which we are not going to use

If an input device is not a pointer, keyboard, or touch device then we
are not going to be handling events for it, so do not create a new
Elput device for it.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoRevert "elput: Change return of device_add/remove functions"
Chris Michael [Tue, 31 Jan 2017 15:53:30 +0000 (10:53 -0500)]
Revert "elput: Change return of device_add/remove functions"

Reverting this in favor of a better way to improve debug output

This reverts commit cee7ee39932c31a21d3dd90e19703371a946a0c0.

7 years agoelput: Change return of device_add/remove functions
Chris Michael [Tue, 31 Jan 2017 15:34:22 +0000 (10:34 -0500)]
elput: Change return of device_add/remove functions

Minor change on the return value of the device_add and device_remove
functions so that we can avoid debug output for devices which we do
not deal with.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-evas-wayland: Minor formatting fix
Chris Michael [Tue, 31 Jan 2017 15:29:50 +0000 (10:29 -0500)]
ecore-evas-wayland: Minor formatting fix

NB: No functional changes, just formatting

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelput: Add more robust debugging output for input devices
Chris Michael [Tue, 31 Jan 2017 15:29:25 +0000 (10:29 -0500)]
elput: Add more robust debugging output for input devices

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoeina log bt - make it an eaven easier copy & paste to get a bt now
Carsten Haitzler (Rasterman) [Tue, 31 Jan 2017 10:30:41 +0000 (19:30 +0900)]
eina log bt - make it an eaven easier copy & paste to get a bt now

just copy & paste into a terminal and hit enter.

7 years agoevas gl common - have a gl array buffer pool to avoid hitting malloc
Carsten Haitzler (Rasterman) [Tue, 31 Jan 2017 09:04:47 +0000 (18:04 +0900)]
evas gl common - have a gl array buffer pool to avoid hitting malloc

this improves performance a bit by avoding libc's malloc and the heap
by using a custom buffer pool thathas basically immediate O(1) lookup
time (in real life) that baloons out and contracts back as time goes on.

@optimize

7 years agoevas draw context - reduce size and allocations and frees
Carsten Haitzler (Rasterman) [Tue, 31 Jan 2017 05:50:52 +0000 (14:50 +0900)]
evas draw context - reduce size and allocations and frees

so a little perf fun shows malloc/free/realloc/etc. are, combined a
reasonable overhead. this reduced malloc overhead for draw contexts so
whne we duplicate them or create new ones, we re-use a small cache of
8 of them to avoid re-allocation. just take the first one from the
list as it really is that simple. mempool would not have helped more
here and cost more overhead.

@optimize

7 years agoevlog - remove setting stack var to 0 until it is needed later
Carsten Haitzler (Rasterman) [Tue, 31 Jan 2017 05:48:36 +0000 (14:48 +0900)]
evlog - remove setting stack var to 0 until it is needed later

we set stack var to 0 even if evlog was off and thus didn't use it.
this cleans up the evlog func a bit and also moves locking until later
so it's locked for the minimum period to punt something into the log
buffer. it's an improvement, but no bug fix.

7 years agoevas async preload - fix valgrind issue in accessing image after free
Carsten Haitzler (Rasterman) [Tue, 31 Jan 2017 05:47:36 +0000 (14:47 +0900)]
evas async preload - fix valgrind issue in accessing image after free

cache flish and async end ended up dropping some cacneled images that
were then accessed further in the cancel func for the thread. this
fixes that

@fix

7 years agoedje_pick: implement fonts copy
Vyacheslav Reutskiy [Tue, 31 Jan 2017 08:11:36 +0000 (10:11 +0200)]
edje_pick: implement fonts copy

Previously this functional was miss. Edje_Pick was tried to copy fonts
from data block "edje_source_fontmap" what always empty because edje_cc
never fill it.

This patch rework the fonts copy from input files.

@fix

7 years agoeina_evlog: Don't call get_time prematurely
Derek Foreman [Mon, 30 Jan 2017 21:28:29 +0000 (15:28 -0600)]
eina_evlog: Don't call get_time prematurely

If we're not logging events this generates a lot of wasted system
calls.  They probably don't amount to much, but it's trivial to
get rid of them, and they make a mess when logging with strace.

7 years agoelementary: Ensure pointer hotspot update and reduce duplicated code
Chris Michael [Mon, 30 Jan 2017 17:59:29 +0000 (12:59 -0500)]
elementary: Ensure pointer hotspot update and reduce duplicated code

When we mouse_in on a window, the cursor hotspot may need updating for
the new pointer image, so utilize an existing function we already have
which will set the pointer image and calculate updated hotspot. This
patch also uses the same function call in _elm_win_frame_cb_move_stop
in order to reduce duplication.

ref T4987

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelementary: Don't hide pointer window on mouse out
Chris Michael [Mon, 30 Jan 2017 17:37:44 +0000 (12:37 -0500)]
elementary: Don't hide pointer window on mouse out

This patch fixes an issue where pointers would occasionally disappear
when running EFL apps in a Wayland compositor. This was occuring
because we would hide the pointer window on mouse_out (and thus attach a NULL
buffer to the pointer surface), but then when we mouse_in again on the
window, it still have a NULL buffer attached to that pointer surface.
This patch fixes the issue.

ref T4987

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelementary: No need to reset pointer surface on resize
Chris Michael [Mon, 30 Jan 2017 17:24:27 +0000 (12:24 -0500)]
elementary: No need to reset pointer surface on resize

As the pointer canvas will already be visible at this point, there is
no need to redo the wl_pointer_set_cursor call as we can just set the
pointer image we desire on the surface (_elm_theme_object_set) and
when the pointer canvas renders, it will have the proper cursor

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelementary: No need to set null pointer surface on mouse out
Chris Michael [Mon, 30 Jan 2017 17:21:49 +0000 (12:21 -0500)]
elementary: No need to set null pointer surface on mouse out

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-evas: Remove unused 'just_mapped' flag
Chris Michael [Mon, 30 Jan 2017 16:50:05 +0000 (11:50 -0500)]
ecore-evas: Remove unused 'just_mapped' flag

As this flag is not being used anywhere for anything, remove it.
Useless to have it.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-evas-wayland: Only fetch framespace values if we have a window
Chris Michael [Mon, 30 Jan 2017 16:07:07 +0000 (11:07 -0500)]
ecore-evas-wayland: Only fetch framespace values if we have a window

Minor optimization to avoid always fetching framespace values even if
we were not going to use them.

@optimize

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelementary: Create wayland pointer before frame
Chris Michael [Mon, 30 Jan 2017 16:03:57 +0000 (11:03 -0500)]
elementary: Create wayland pointer before frame

If we create the pointer After the frame, then we end up setting
elm_object_cursor on the frame object which we do not need so this
patch just slightly modifies the order of things during finalize so
that _elm_win_frame_add does not end up calling
_elm_object_part_cursor_set on the frame object.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelementary: Don't set wayland window pointer if pointer ee not visible
Chris Michael [Mon, 30 Jan 2017 15:58:55 +0000 (10:58 -0500)]
elementary: Don't set wayland window pointer if pointer ee not visible

This small patch avoids resetting ecore_wl2_window_pointer (and thus
wl_pointer_set_cursor) if the actual pointer canvas is not visible.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agomem gadget: document all the values received in the edje message
Dave Andreoli [Sun, 29 Jan 2017 13:51:57 +0000 (14:51 +0100)]
mem gadget: document all the values received in the edje message

So that themers are aware of the unused fields

7 years agoelm_code: Add a safety code to prevent arithmetic exception
YeongJong Lee [Sat, 28 Jan 2017 12:38:37 +0000 (12:38 +0000)]
elm_code: Add a safety code to prevent arithmetic exception

Test Plan:
1. elementary_test - Code Editor
2. Chack there is not arithmetic exception

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Subscribers: cedric, jpeg

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

7 years agocmake: add ecore_con.
Gustavo Sverzut Barbieri [Fri, 27 Jan 2017 19:25:12 +0000 (17:25 -0200)]
cmake: add ecore_con.

7 years agocmake: pkg-config names uses dashes and are not uniform.
Gustavo Sverzut Barbieri [Fri, 27 Jan 2017 19:22:24 +0000 (17:22 -0200)]
cmake: pkg-config names uses dashes and are not uniform.

ecore_con provides ecore-con, but ethumb_client provides
ethumb_client. That means we need replace '_' with '-' and allow to
override that, so ethumb_client will work.

7 years agocmake: create and install 'checkme' files for libraries.
Gustavo Sverzut Barbieri [Fri, 27 Jan 2017 18:54:11 +0000 (16:54 -0200)]
cmake: create and install 'checkme' files for libraries.

7 years agocmake: use CMAKE_INSTALL_LIBDIR instead of 'lib'
Gustavo Sverzut Barbieri [Fri, 27 Jan 2017 18:53:14 +0000 (16:53 -0200)]
cmake: use CMAKE_INSTALL_LIBDIR instead of 'lib'

this matches the platform preference whenever lib, lib32 or lib64.

7 years agocmake: EFL_BIN() now checks for EFL_UTILITY and installs to proper location.
Gustavo Sverzut Barbieri [Fri, 27 Jan 2017 17:27:51 +0000 (15:27 -0200)]
cmake: EFL_BIN() now checks for EFL_UTILITY and installs to proper location.

utility binaries shouldn't be in bin ($PATH), but in a
library-specific directory (lib/${libname}/utils/v-${maj}.${min})

7 years agocmake/eo: expose HAVE_EO_ID to build via config_gen.h
Gustavo Sverzut Barbieri [Fri, 27 Jan 2017 17:26:07 +0000 (15:26 -0200)]
cmake/eo: expose HAVE_EO_ID to build via config_gen.h

7 years agoecore_con: add missing string nul byte terminator to efl_net_ip_address.
Gustavo Sverzut Barbieri [Fri, 27 Jan 2017 17:25:23 +0000 (15:25 -0200)]
ecore_con: add missing string nul byte terminator to efl_net_ip_address.

7 years agoeolian gen: imply -gT if -o T:f is specified
Daniel Kolesa [Fri, 27 Jan 2017 16:11:43 +0000 (17:11 +0100)]
eolian gen: imply -gT if -o T:f is specified

If you specify type-explicit output filename, this automatically
adds it so that it's generated even without specifying -gT.

This is meant to help user friendliness. Also add a note about
this to help listing.

7 years agocmake: remove comment, it was my misunderstanding, not a bug.
Gustavo Sverzut Barbieri [Fri, 27 Jan 2017 15:57:10 +0000 (13:57 -0200)]
cmake: remove comment, it was my misunderstanding, not a bug.

7 years agocmake/eolian: generate source, headers and legacy in one command.
Gustavo Sverzut Barbieri [Fri, 27 Jan 2017 15:53:15 +0000 (13:53 -0200)]
cmake/eolian: generate source, headers and legacy in one command.

actually wasn't a bug, I need to specify -gchl to generate legacy as
well.

7 years agocmake: fix make-clean as add_custom_command() deletes output files.
Gustavo Sverzut Barbieri [Fri, 27 Jan 2017 15:34:25 +0000 (13:34 -0200)]
cmake: fix make-clean as add_custom_command() deletes output files.

there is no way to mark output file as "precious", then cmake's
suggestion is to use add_custom_target() instead.

However that will always execute, so our generator script needs to be
smarter and only touch stuff when actually needed.

7 years agocmake: add EFL_SUPPORT_LIB() and simplify/speedup its usage.
Gustavo Sverzut Barbieri [Fri, 27 Jan 2017 14:38:52 +0000 (12:38 -0200)]
cmake: add EFL_SUPPORT_LIB() and simplify/speedup its usage.

generate a static library for src/static_libs and use that as
LIBRARIES for the actual library, for those such as rg_etc that are
used multiple times will even speed up the final build by compiling
only once.

Although not used, they can be made into shared libraries that would
go inside /usr/lib/efl/support/v-1.19/libname.so

7 years agocmake: add ector.
Gustavo Sverzut Barbieri [Fri, 27 Jan 2017 12:45:20 +0000 (10:45 -0200)]
cmake: add ector.

7 years agocmake/tests: improve naming and add missing include directories.
Gustavo Sverzut Barbieri [Fri, 27 Jan 2017 12:34:58 +0000 (10:34 -0200)]
cmake/tests: improve naming and add missing include directories.

Some tests were relocated to subdirectory but need shared files, or
may need files from src/tests by including them relatively (../) as
done in ector.

With subdirectories we may end with src/test/libname/suite, to make it
more user friendly and backward compatible call these libname_suite.

7 years agocmake: auto-include subdirectories with generated .eo.*
Gustavo Sverzut Barbieri [Fri, 27 Jan 2017 12:13:34 +0000 (10:13 -0200)]
cmake: auto-include subdirectories with generated .eo.*

7 years agocmake: if path is absolute, include as-is.
Gustavo Sverzut Barbieri [Fri, 27 Jan 2017 12:03:44 +0000 (10:03 -0200)]
cmake: if path is absolute, include as-is.

7 years agocmake: add embryo.
Gustavo Sverzut Barbieri [Thu, 26 Jan 2017 18:36:21 +0000 (16:36 -0200)]
cmake: add embryo.

7 years agocmake: add missing files (oops)
Gustavo Sverzut Barbieri [Thu, 26 Jan 2017 18:22:49 +0000 (16:22 -0200)]
cmake: add missing files (oops)

7 years agocmake: enable systemd/upower ecore modules.
Gustavo Sverzut Barbieri [Thu, 26 Jan 2017 18:21:17 +0000 (16:21 -0200)]
cmake: enable systemd/upower ecore modules.

eldbus was a dependency.

7 years agocmake: add eldbus.
Gustavo Sverzut Barbieri [Thu, 26 Jan 2017 18:16:15 +0000 (16:16 -0200)]
cmake: add eldbus.

7 years agocmake: improve options summary with per-library values.
Gustavo Sverzut Barbieri [Thu, 26 Jan 2017 17:50:05 +0000 (15:50 -0200)]
cmake: improve options summary with per-library values.

segment the options based on libraries, makes it easier to read.

7 years agocmake: fix strlcpy() detection and usage.
Gustavo Sverzut Barbieri [Thu, 26 Jan 2017 17:35:35 +0000 (15:35 -0200)]
cmake: fix strlcpy() detection and usage.

Linux usually ship with strlcpy(), but it's inside bsd/string.h and
needs -lbsd.

On BSD it's inside string.h and libc.

7 years agocmake: more headers and function checks.
Gustavo Sverzut Barbieri [Thu, 26 Jan 2017 17:25:17 +0000 (15:25 -0200)]
cmake: more headers and function checks.

7 years agodocgen: link to the method an overriden one overrides
Daniel Kolesa [Thu, 26 Jan 2017 16:50:16 +0000 (17:50 +0100)]
docgen: link to the method an overriden one overrides

7 years agodocgen: autodocument inherited methods/properties
Daniel Kolesa [Thu, 26 Jan 2017 16:40:16 +0000 (17:40 +0100)]
docgen: autodocument inherited methods/properties

7 years agocmake/eolian: fix EOLIAN_BIN type.
Gustavo Sverzut Barbieri [Thu, 26 Jan 2017 16:48:20 +0000 (14:48 -0200)]
cmake/eolian: fix EOLIAN_BIN type.

So EOLIAN_BIN had no type, which resulted in BOOL and thus ON/OFF. It
should be labeled as FILEPATH and then we can remove the special case
in EflMacros.cmake.

7 years agocmake: define EFL_{LIB}_BUILD and DLL_EXPORT.
Gustavo Sverzut Barbieri [Thu, 26 Jan 2017 16:20:52 +0000 (14:20 -0200)]
cmake: define EFL_{LIB}_BUILD and DLL_EXPORT.

These are used on Windows builds to force dllexport/dllimport.

7 years agocmake: add eet.
Gustavo Sverzut Barbieri [Thu, 26 Jan 2017 16:02:21 +0000 (14:02 -0200)]
cmake: add eet.

7 years agocmake: auto-detect binaries in src/bin/libname if no CMakeLists.txt
Gustavo Sverzut Barbieri [Thu, 26 Jan 2017 15:58:26 +0000 (13:58 -0200)]
cmake: auto-detect binaries in src/bin/libname if no CMakeLists.txt

similar to tests, binaries should also follow the same rule and allow
single-binaries with single-source.

7 years agocmake: auto-detect tests in src/tests/libname if no CMakeLists.txt
Gustavo Sverzut Barbieri [Thu, 26 Jan 2017 15:56:49 +0000 (13:56 -0200)]
cmake: auto-detect tests in src/tests/libname if no CMakeLists.txt

previously we were only auto-detecting sources in src/tests/libname/
subdirectories, but we should also check the parent directory if no
subdirectories were processed.

7 years agocmake: fix test include and defines.
Gustavo Sverzut Barbieri [Thu, 26 Jan 2017 15:54:19 +0000 (13:54 -0200)]
cmake: fix test include and defines.

TESTS_WD is prefixed to TESTS_SRC_DIR and should be empty (no idea why
it's like that, maybe to allow relative paths).

TESTS_SRC_DIR must be defined to test source directory and a typo was
preventing that.

7 years agocmake: add emile and EFL_OPTION_BACKEND()
Gustavo Sverzut Barbieri [Thu, 26 Jan 2017 15:13:51 +0000 (13:13 -0200)]
cmake: add emile and EFL_OPTION_BACKEND()

Add emile and with that EFL_OPTION_BACKEND() to support choosing among
different backends for something, in emile's case it's crypto backend
(gnutls, openssl or none).

7 years agocmake: pkg-config can have version and needs HAVE/ENABLED defines.
Gustavo Sverzut Barbieri [Thu, 26 Jan 2017 13:13:01 +0000 (11:13 -0200)]
cmake: pkg-config can have version and needs HAVE/ENABLED defines.

pkg-config names can be encoded with a version requirement, such as
zlib>=1.2.3, thus we need to remove that from the variable.

with autotools we used HAVE_XXX and ENABLED_XXX to instruct such
optional library was present, then define that just for the user
target by adding that to its CFLAGS.

This allows us to remove some defines that matches the name, only
leave those that translate from original pkg-config name, such as
libsystemd->systemd.

7 years agoBattery Theme: Don't set min sizes -- Fixes sizing of batman.
Stephen 'Okra' Houston [Thu, 26 Jan 2017 15:33:25 +0000 (09:33 -0600)]
Battery Theme: Don't set min sizes -- Fixes sizing of batman.

7 years agogengrid: fix serach items in genlist by text
Vyacheslav Reutskiy [Thu, 26 Jan 2017 08:54:30 +0000 (10:54 +0200)]
gengrid: fix serach items in genlist by text

If a part name is NULL get text for search from TEXT part 'elm.text".

@fix

7 years agocmake: add ecore.
Gustavo Sverzut Barbieri [Wed, 25 Jan 2017 21:26:02 +0000 (19:26 -0200)]
cmake: add ecore.

no tests or modules (which depend on eldbus).

7 years agocmake: add efl library.
Gustavo Sverzut Barbieri [Wed, 25 Jan 2017 21:24:00 +0000 (19:24 -0200)]
cmake: add efl library.

still no tests and no binaries, but compiles the interfaces required
by other libraries such as ecore.

7 years agocmake: check for variable defined, not if it evaluates to false.
Gustavo Sverzut Barbieri [Wed, 25 Jan 2017 21:22:11 +0000 (19:22 -0200)]
cmake: check for variable defined, not if it evaluates to false.

otherwise we can't have modules off by default.

7 years agocmake/eina: check more required functions and link with unwind if found.
Gustavo Sverzut Barbieri [Wed, 25 Jan 2017 21:21:06 +0000 (19:21 -0200)]
cmake/eina: check more required functions and link with unwind if found.

unwind is needed for debug, thus link to that.

7 years agocmake: improvements to eolian handling.
Gustavo Sverzut Barbieri [Wed, 25 Jan 2017 21:16:06 +0000 (19:16 -0200)]
cmake: improvements to eolian handling.

 - fix doc and state SOURCES shouldn't get any EO_FILES, these should
   go to the specific PUBLIC_EO_FILES or EO_FILES.

 - generate eolian files in relative directories, required by
   efl/interfaces

 - .eot files fail if you give -o c:..., they need an explicit "-gh"
   followed by "-o i:..."

 - .legacy.h are generated automatically, but needs an extra pass (q66
   was informed about it)

 - if EOLIAN_BIN=on, then use in-tree binary, depending on such target
   only if it's the case. This allow cross-compiling and also bypass
   regenerate all .eo files if eina/eolian changed (as requested by
   Raster), simply reconfigure with EOLIAN_BIN=path, which can be
   EOLIAN_BIN=bin/eolian_gen if you wish ;-)

 - use COMMENT keyword to change the eolian summary (output)

7 years agocmake: if EOLIAN_BIN=ON, use built eolian_gen.
Gustavo Sverzut Barbieri [Wed, 25 Jan 2017 18:02:25 +0000 (16:02 -0200)]
cmake: if EOLIAN_BIN=ON, use built eolian_gen.

7 years agocmake: EFL_OPTION() now supports DEPENDS to handle conditionals.
Gustavo Sverzut Barbieri [Wed, 25 Jan 2017 16:50:04 +0000 (14:50 -0200)]
cmake: EFL_OPTION() now supports DEPENDS to handle conditionals.

This is now used by ENABLE_SYSTEMD and ENABLE_VALGRIND, which moves to
"common.cmake" since they are shared among multiple libraries.

With that I found that LINK_FLAGS is indeed a string, not a CMake List
(space separated, not ";"), then fix that so compilation actually works.

7 years agocmake/common: add missing checks for eina, simplify to one file.
Gustavo Sverzut Barbieri [Wed, 25 Jan 2017 15:03:52 +0000 (13:03 -0200)]
cmake/common: add missing checks for eina, simplify to one file.

Since the macros were moved to EflMacros.cmake, there is no reason to
keep CommonHeaderChecks.cmake anymore, put them all in
config/common.cmake

Keep the checks sorted so they're easy to organize.

Add missing check for prctl() and iconv() (which we were checking
iconv.h, but the code used '#if HAVE_ICONV').

7 years agoecore-wl2: Don't set opaque or input regions if already set
Chris Michael [Wed, 25 Jan 2017 17:02:35 +0000 (12:02 -0500)]
ecore-wl2: Don't set opaque or input regions if already set

If the window opaque/input regions already match what is being
requested (to be set), then no need for the compositor to create
regions and set them.

@optimize
@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoRevert "evas: Fix resource leak in evas_module_find_type"
Chris Michael [Wed, 25 Jan 2017 14:40:07 +0000 (09:40 -0500)]
Revert "evas: Fix resource leak in evas_module_find_type"

Reverting this as it causes crashes in Terminology and other EFL apps.
Needs investigation.

This reverts commit 8b2ca30eb5bc112b47155cc3694be1aa39b1345f.

7 years agoedje_entry: don't send a 'changed' signal if Control is lock
Vyacheslav Reutskiy [Wed, 25 Jan 2017 14:10:47 +0000 (16:10 +0200)]
edje_entry: don't send a 'changed' signal if Control is lock

This patch is avoid extra 'change' signals from edje_entry to
elm_entry.
Basically the entry fields does not react to keys pressed with
modificator 'Ctrl'. I was test on Windows 7, MacOS 10.12 and Unity
(GTK+) and they all have similar behavior - keys with 'Ctrl' are
ignored. So this patch make expected beharior for elm_entry
(edje_entry).

7 years agoelput: Fix resource leak
Chris Michael [Wed, 25 Jan 2017 14:01:12 +0000 (09:01 -0500)]
elput: Fix resource leak

Coverity reports that we leak 'msg' here if we fail to append
arguments to the message.

Fixes CID1367499

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoethumb: Fix resource leak
Chris Michael [Wed, 25 Jan 2017 13:56:38 +0000 (08:56 -0500)]
ethumb: Fix resource leak

Coverity reports a resource leak here as we were not freeing
'sanitized_path' inside the if statement.

Fixes CID1367502

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: Fix resource leak in evas_module_find_type
Chris Michael [Wed, 25 Jan 2017 13:53:41 +0000 (08:53 -0500)]
evas: Fix resource leak in evas_module_find_type

Coverity reports a resource leak here if we successfully load the evas
module as we were never freeing the eina_module here. Previously we
would just return the evas module without proper cleanup of the
eina_module. This patch fixes the leak by calling eina_module_free if
we successfully load the evas module.

Fixes CID1367503

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: Minor formatting fix
Chris Michael [Wed, 25 Jan 2017 13:52:47 +0000 (08:52 -0500)]
evas: Minor formatting fix

NB: No functional changes

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore_input: support PS4 joystick
Shinwoo Kim [Wed, 25 Jan 2017 13:31:03 +0000 (22:31 +0900)]
ecore_input: support PS4 joystick

Add joystick mapper for Sony Computer Entertainment Wireless Controller

7 years agoedje - fix border scale by interpolation
Carsten Haitzler (Rasterman) [Wed, 25 Jan 2017 13:30:13 +0000 (22:30 +0900)]
edje - fix border scale by interpolation

several theme elements uses transitioning border scale by for
animation and this has been broken for quite some time now. the theme
sall looked wrong for ages. i just never junted down exactly why, but
i know... i wrote the themes that made use of scale by animation
interpolating from like 0.1 to 1 and so on to make for example a
shadow go from sharp to blurry... the theme hasnt changed. edje did.
it broke.

this fixes it back to where it was. interpolation now works. i left a
comment so no one tries to "fix it".

@fix

7 years agoevas - proxy - fix clipping of proxy renders that broke terminology
Carsten Haitzler (Rasterman) [Wed, 25 Jan 2017 09:44:58 +0000 (18:44 +0900)]
evas - proxy - fix clipping of proxy renders that broke terminology

so proxies just rendered nothing when used in terminology. they used
to work for the tab switcher (ctl+shift+home). this now works again.

there is a good chance this may break something else though... what i
can't seem to find...

this fixes T5131