platform/upstream/efl.git
7 years agoeio_model: Provide main loop even without parent
Jean-Philippe Andre [Wed, 5 Oct 2016 11:53:26 +0000 (20:53 +0900)]
eio_model: Provide main loop even without parent

An eio model (and I believe most other models as well, in fact)
require a Efl.Loop.User as parent in order for efl future/promises
to work. This adds a fallback code directly inside eio model. The
alternative was to parent and efl_del all models in fileselector.

See T4686

7 years agoevas: Provide loop from Evas.Canvas
Jean-Philippe Andre [Wed, 5 Oct 2016 10:51:42 +0000 (19:51 +0900)]
evas: Provide loop from Evas.Canvas

And indirectly also Efl.Canvas.Object.

I believe those two classes should even inherit from Efl.Loop.User.
Right now this patch relies on the new dependence of Evas over Ecore,
and is maybe a bit ugly as is.

Ping @cedric

See T4686

7 years agoRevert "ecore_evas x - dont set withdrawn to fals on show but wait for wm state"
Carsten Haitzler (Rasterman) [Wed, 5 Oct 2016 23:53:19 +0000 (08:53 +0900)]
Revert "ecore_evas x - dont set withdrawn to fals on show but wait for wm state"

This reverts commit 2c736adc873bfb998103da60650ebc156cba70ad.

well that was totally unexpected. - efl app windows dont show at all..
wtf? this should not have affected that at all..

7 years agoecore_evas x - dont set withdrawn to fals on show but wait for wm state
Carsten Haitzler (Rasterman) [Wed, 5 Oct 2016 23:37:28 +0000 (08:37 +0900)]
ecore_evas x - dont set withdrawn to fals on show but wait for wm state

so we handled override cases and set withdrawn to false on show, but
when normally managed it might be nicer to wait for a state change via
the wm state property to know we are "normal"

this should fix T4699

7 years agoepp: fix memory corruption when using #warning and #error
Jean Guyomarc'h [Wed, 5 Oct 2016 10:00:38 +0000 (12:00 +0200)]
epp: fix memory corruption when using #warning and #error

The epp instructions #warning and #error would led to a segmentation
fault (invalid free) because the malloced buffer's base pointer was
moved.

@fix

7 years agoUi text: port link anchors from entry
Daniel Hirt [Wed, 5 Oct 2016 14:10:20 +0000 (17:10 +0300)]
Ui text: port link anchors from entry

This is without the viewport optimization in the meantime.

7 years agoCanvas text: add annotation_positions_get method
Daniel Hirt [Wed, 5 Oct 2016 14:10:14 +0000 (17:10 +0300)]
Canvas text: add annotation_positions_get method

We need a method that allows us to place the cursors at the start and end of an
annotation. This is required for things like getting the geometry of a range.

@feature

7 years agoEfl canvas text: fix api doc a bit
Daniel Hirt [Wed, 5 Oct 2016 14:10:06 +0000 (17:10 +0300)]
Efl canvas text: fix api doc a bit

7 years agoCanvas text cursor: add simple_geometry_get method
Daniel Hirt [Wed, 5 Oct 2016 14:09:59 +0000 (17:09 +0300)]
Canvas text cursor: add simple_geometry_get method

The ported geometry_get was actually the legacy simple_geometry_get.
For getting simple geometries like selection this was enough, but I forgot that
we also need to query more complex geometries e.g. links.
This is required to implement link anchors in Ui Text.

Now geometry_get and simple_geometry_get are the same as their legacy
counterparts.

@feature

7 years agoUi text: update all decorations on resize
Daniel Hirt [Wed, 5 Oct 2016 14:09:53 +0000 (17:09 +0300)]
Ui text: update all decorations on resize

7 years agoUi text: port atspi implementation
Daniel Hirt [Wed, 5 Oct 2016 14:09:46 +0000 (17:09 +0300)]
Ui text: port atspi implementation

7 years agoeina: Fix compilation with clang
Jean-Philippe Andre [Wed, 5 Oct 2016 07:27:46 +0000 (16:27 +0900)]
eina: Fix compilation with clang

It's not because the bug with __builtin_prefetch is inside
clang/llvm that we must break the build for people who prefer it
over gcc. As soon as a non-broken version is out, the ifdef must
be either removed (and ask people to update their clang install)
or add a version check based on __clang_xxx__.

Compilation tested with clang 3.8.1 and gcc 6.2.1.

7 years agonaviframe: Add "push,finished" and "pop,finished" smart callbacks.
Jaehyun Cho [Tue, 4 Oct 2016 06:50:42 +0000 (15:50 +0900)]
naviframe: Add "push,finished" and "pop,finished" smart callbacks.

"push,finished" and "pop,finished" smart callbacks are added to notice
when push and pop operation is finished.

New smart callback signals are added as follows.

"push,finished,item,activated" : Called when item push is finished and
void *event_info in smart callback is activated item (new item).

"push,finished,item,deactivated" : Called when item push is finished and
void *event_info in smart callback is deactivated item (current item).

"pop,finished,item,activated" : Called when item pop is finished and
void *event_info in smart callback is activated item (previous item).

"pop,finished,item,deactivated" : Called when item pop is finished and
void *event_info in smart callback is deactivated item (current item).

7 years agonaviframe: Fix to show/hide item view.
Jaehyun Cho [Wed, 5 Oct 2016 08:30:42 +0000 (17:30 +0900)]
naviframe: Fix to show/hide item view.

Naviframe item view did not become visible if top item view is deleted
by elm_object_item_del().
To resolve this problem, program for "elm,state,visible" is fixed and
"elm,state,invisible" is added.

7 years agonaviframe: Remove redundant programs.
Jaehyun Cho [Wed, 5 Oct 2016 05:12:44 +0000 (14:12 +0900)]
naviframe: Remove redundant programs.

The redundant programs emit duplicate signals incorrectly.

7 years agonaviframe: Fix to reset pushing flag of pushed item.
Jaehyun Cho [Tue, 4 Oct 2016 09:55:06 +0000 (18:55 +0900)]
naviframe: Fix to reset pushing flag of pushed item.

If multiple items are pushed, then pushing flag of the pushed item is
not reset.
To resolve this problem, pushing flag of the pushed item is reset.

7 years agoevas/vg: renamed the legacy vg shape apis
Subhransu Mohanty [Wed, 5 Oct 2016 02:07:11 +0000 (11:07 +0900)]
evas/vg: renamed the legacy vg shape apis

Reviewers: Hermet, cedric, jpeg

Subscribers: cedric, jpeg

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

7 years agoeina_cpu: Fix arm build
Derek Foreman [Tue, 4 Oct 2016 19:29:36 +0000 (14:29 -0500)]
eina_cpu: Fix arm build

commit e2875cefc49768f919919fbfa478f81570168688 accidentally removed
some unrelated headers needed for testing ARM NEON support on linux.

7 years agoevas-software-x11: Remove unused variable and mark unused parameters
Chris Michael [Tue, 4 Oct 2016 13:41:53 +0000 (09:41 -0400)]
evas-software-x11: Remove unused variable and mark unused parameters

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore_file/ipc: clean up documentation
Jee-Yong Um [Tue, 4 Oct 2016 12:08:17 +0000 (21:08 +0900)]
ecore_file/ipc: clean up documentation

Summary: move comment from c source to header and adjust ingroup relationship

Reviewers: cedric, jpeg, Hermet

Reviewed By: Hermet

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

7 years agoeio - put in fix by disabling some fallback code
Al Poole [Tue, 4 Oct 2016 06:01:40 +0000 (15:01 +0900)]
eio - put in fix by disabling some fallback code

as per https://phab.enlightenment.org/T4619

fixes 4619

@fix

7 years agoecore_x - remove ecore_x_vsync tool as it isnt enabled or used runtime
Carsten Haitzler (Rasterman) [Mon, 3 Oct 2016 15:10:29 +0000 (00:10 +0900)]
ecore_x - remove ecore_x_vsync tool as it isnt enabled or used runtime

so ecore_x_vsync as a tool uses glx for nvidia drivers plut "wait for
vblank" extensions to try vsync "sync". the problem is this is flakey
because the drivers may or may not continue vsyncing after screen off
or syspend/resume or vt changes and all the workarounds dont seem to
be reliable, so since this causes this to be disabled, no point
keeping all the code and build stuff around, so remove this "unused
junk" we have in the tree.

7 years agoEdje_Edit: add forgotten part_item_index API into header
Vitalii Vorobiov [Mon, 3 Oct 2016 17:07:13 +0000 (20:07 +0300)]
Edje_Edit: add forgotten part_item_index API into header

It was already implemented but looks like forgotten to be added into
Edje_Edit header, so we got banch of unused and unavailable API

@fix

7 years agoeina_list prefetch macros - handle misstyped list ptr by casting
Carsten Haitzler (Rasterman) [Sun, 2 Oct 2016 03:05:07 +0000 (12:05 +0900)]
eina_list prefetch macros - handle misstyped list ptr by casting

so it seems enlightenment someqhere uses a void * as a list per for
EINA_LIST_FREE ... so do some casing of that type to handle such badness

7 years agotests: oops, remove invalid trailing slash
Jean Guyomarc'h [Sat, 1 Oct 2016 19:26:16 +0000 (21:26 +0200)]
tests: oops, remove invalid trailing slash

7 years agotests: add missing symbols
Jean Guyomarc'h [Sat, 1 Oct 2016 19:09:54 +0000 (21:09 +0200)]
tests: add missing symbols

make check failed on OSX (clang) because of missing symbols.

7 years agotests: check for the presence of clock_gettime()
Jean Guyomarc'h [Sat, 1 Oct 2016 15:32:13 +0000 (17:32 +0200)]
tests: check for the presence of clock_gettime()

macOS Sierra provides clock_gettime().
Instead of testing for the Mach kernel to re-implement clock_gettime(),
let first check that clock_gettime() is not already declared. Older OSX
versions will have the Mach-only fallback.

@fix

7 years agotests: mimic POSIX API in clock_gettime()
Jean Guyomarc'h [Sat, 1 Oct 2016 15:29:24 +0000 (17:29 +0200)]
tests: mimic POSIX API in clock_gettime()

Let the clock_gettime() re-implementation have the same signature than
its POSIX definition.

7 years agoeina: fix macos spinlocks and upgrade API to sierra
Jean Guyomarc'h [Sat, 1 Oct 2016 13:09:37 +0000 (15:09 +0200)]
eina: fix macos spinlocks and upgrade API to sierra

7 years agoeo - eo ptr lookup - do some prefetches to get some micro-speedups
Carsten Haitzler (Rasterman) [Sat, 1 Oct 2016 14:37:34 +0000 (23:37 +0900)]
eo - eo ptr lookup - do some prefetches to get some micro-speedups

prefetching a bit helps.. a bit like 0.2% or so... but it does help. :)

7 years agoeina list - make use of prefetch for minor speedups
Carsten Haitzler (Rasterman) [Sat, 1 Oct 2016 08:51:25 +0000 (17:51 +0900)]
eina list - make use of prefetch for minor speedups

i see a speedup of about 8% over a series of list walking and freeing
functions given this change. it's a small speedup but still not too
shabby just for some prefetches thrown in. ymmv depending on memory
subsystem, memory speed itself, cpu and architecture.

@optimize

7 years agoeina - add prefetch macros to map to compiler builtins if they exist
Carsten Haitzler (Rasterman) [Sat, 1 Oct 2016 06:36:00 +0000 (15:36 +0900)]
eina - add prefetch macros to map to compiler builtins if they exist

this allows you to portably use prefetch compiler builtins. this adds
EINA_PREFETCH(), EINA_PREFETCH_WRITE(), EINA_PREFETCH_NOCACHE() and
EINA_PREFETCH_NOCACHE_WRITE() macros to do this that are "nothing" if
your compiler doesnt support it. of course it also requires your
compielr compile instructions for your architecture and it can only do
so if the architecture it compiles for has these instructions, so be
aware.

@feat

7 years agoEvas_Device: Fix API name.
Guilherme Iscaro [Thu, 29 Sep 2016 20:51:14 +0000 (17:51 -0300)]
Evas_Device: Fix API name.

Summary:
It should be evas_device_add_full() in order to follow the EFL
name pattern.

Reviewers: DaveMDS, bdilly

Reviewed By: DaveMDS, bdilly

Subscribers: cedric, jpeg

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

7 years agoefl: Update Efl.Model to use new Efl_Promise and Efl_Future
Felipe Magno de Almeida [Thu, 29 Sep 2016 16:12:09 +0000 (13:12 -0300)]
efl: Update Efl.Model to use new Efl_Promise and Efl_Future

Replaced all Eina_Promise_Owner and Eina_Promise with Efl_Promise and
Efl_Future.

7 years agoeo - goto-ify a chunk iof code moving debug printfs out of hot paths
Carsten Haitzler (Rasterman) [Thu, 29 Sep 2016 06:29:34 +0000 (15:29 +0900)]
eo - goto-ify a chunk iof code moving debug printfs out of hot paths

this moves a lot of error case handling into goto's so the code gets
out of the hot path and this should help expecially since variou
smacros do things like:

   do { char buf[256]; sprintf(buf, fmt, ptr); _eo_pointer_error(buf); } while (0)

   _Efl_Class *klass; \
   do { \
      klass = _eo_class_pointer_get(klass_id); \
      if (!klass) { \
         _EO_POINTER_ERR("Class (%p) is an invalid ref.", klass_id); \
      return ret; \
   } \
} while (0)

so putting quite a chunk of code inside a rare "if this errors"
handler that will cause l1 cache misses and this we don't want, thus
moving stuff in eo core out of hot paths to cut down on overhead. yes
it might not be pretty but it's kind of the right thing at such a core
level of efl. this also does the same to the eo base class as this is
also going to be relatively hot given it's the core of every other
object.

7 years agoeo - fix error case lock not unlocking with shared objects from coverity
Carsten Haitzler (Rasterman) [Thu, 29 Sep 2016 05:14:43 +0000 (14:14 +0900)]
eo - fix error case lock not unlocking with shared objects from coverity

this fixes CID 1363294

7 years agoeo - remove pointless if found by coverity
Carsten Haitzler (Rasterman) [Thu, 29 Sep 2016 02:36:03 +0000 (11:36 +0900)]
eo - remove pointless if found by coverity

fix CID 1363295

7 years agoeo - silence coverit "leak" on eo init if eoid table tls alloc fails
Carsten Haitzler (Rasterman) [Thu, 29 Sep 2016 00:50:02 +0000 (09:50 +0900)]
eo - silence coverit "leak" on eo init if eoid table tls alloc fails

creating a new tls for the eoid table should just never fail so this
is moot anyway, but it silences CID 1362735

7 years agoelm: nstate - cleanup edje signal cb
Amitesh Singh [Thu, 29 Sep 2016 04:59:58 +0000 (10:29 +0530)]
elm: nstate - cleanup edje signal cb

@fix

7 years agoelementary: refactor elm_atspi_bridge function
Bruno Dilly [Wed, 28 Sep 2016 21:23:05 +0000 (18:23 -0300)]
elementary: refactor elm_atspi_bridge function

In order to avoid the following build warning:

lib/elementary/elm_atspi_bridge.c: In function
  ‘_children_changed_signal_send’:
lib/elementary/elm_atspi_bridge.c:3971:4: warning: ‘idx’ may
  be used uninitialized in this function [-Wmaybe-uninitialized]
    _bridge_signal_send(data, event->object, ATSPI_DBUS_INTERFACE_EVENT_OBJECT

A little refactoring was done to function _children_changed_signal_send.
Actually I wasn't able to see a codepath to use idx unintialized,
but this way is more clear and avoid compiler possible confusion.

7 years agoexamples/elementary: drop generated.h from SOURCES
Bruno Dilly [Wed, 28 Sep 2016 01:54:58 +0000 (22:54 -0300)]
examples/elementary: drop generated.h from SOURCES

Remove codegen_example_generated.h from codegen_example_SOURCES
and let it only on nodist_codegen_example_SOURCES and
on BUILT_SOURCES.

Also add dependency between codegen_example.c
and codegen_example_generated.h since it's required
to compile.

Avoid the following build error:
  CODEGEN      codegen_example_generated.c
  codegen_example.c:26:39: fatal error: codegen_example_generated.h:
      No such file or directory
  compilation terminated.
  Makefile:4960: recipe for target 'codegen_example.o' failed

7 years agoexamples/ecore: add example suffix to ecore_evas_vnc
Bruno Dilly [Tue, 27 Sep 2016 22:17:12 +0000 (19:17 -0300)]
examples/ecore: add example suffix to ecore_evas_vnc

Make its name similar to all the other example
files on this folder.

7 years agoconfigure: show if vnc server was enabled or not
Bruno Dilly [Tue, 27 Sep 2016 21:29:43 +0000 (18:29 -0300)]
configure: show if vnc server was enabled or not

So we can see by configure log if it should be working =)

7 years agoexamples/ecore: fix vnc example build
Bruno Dilly [Tue, 27 Sep 2016 21:17:07 +0000 (18:17 -0300)]
examples/ecore: fix vnc example build

Fix missing dependency.

Get rid of the following error:

/usr/bin/ld: ecore_evas_vnc.o: undefined reference
  to symbol 'ECORE_EVENT_MOUSE_BUTTON_UP'
src/lib/ecore_input/.libs/libecore_input.so.1: error adding symbols:
  DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:2306: recipe for target 'ecore_evas_vnc' failed

7 years agodata: elm: images: fix double data file definitions leading to races
Stefan Schmidt [Wed, 28 Sep 2016 12:33:18 +0000 (14:33 +0200)]
data: elm: images: fix double data file definitions leading to races

For a while now I had strange races during make install on Jenkins where some
image files either already existed or chmod was called on files not there yet.

It took some digging but it turns out commit
8dcd5207cc61e604efc942a62137bdeda4060aa0 broke this as a side effect. The black
magic that already installed the files JP refers to is sitting in
data/Makefile.am. It is plain autofoo stuff and just includes the images
Makefile to get the list of files.

JP was correct though that the glayer files have not been installed into the
correct subdir. Fixing this as well here.

7 years agoedje_cc: don't warn when image attributes are missing in inherit_only group
Youngbok Shin [Wed, 28 Sep 2016 06:49:23 +0000 (15:49 +0900)]
edje_cc: don't warn when image attributes are missing in inherit_only group

Summary:
The inherit_only groups could be used for template of other groups.
So, even if it has image part, it dose not need to have image attributes.
@fix

Test Plan: N/A

Reviewers: cedric, conr2d, jpeg, raster

Reviewed By: raster

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

7 years agoupdate gitignore to ignore eo_dbug output script from .in file
Carsten Haitzler (Rasterman) [Wed, 28 Sep 2016 06:29:04 +0000 (15:29 +0900)]
update gitignore to ignore eo_dbug output script from .in file

7 years agoector: make the ector objects as shared object after eo changes.
Subhransu Mohanty [Wed, 28 Sep 2016 06:28:27 +0000 (15:28 +0900)]
ector: make the ector objects as shared object after eo changes.
 As ector objects are acessed by draw thread we need to create it as
 shared object in order to access it from other thread.
 Note: there is some performance lag...

Summary: make ector object as shared eo object to acess from other thread.

Reviewers: cedric, jpeg, raster

Reviewed By: jpeg, raster

Subscribers: cedric, jpeg

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

7 years agoelementary: remove unused part in segmentcontrol theme
Jean Guyomarc'h [Wed, 28 Sep 2016 06:12:03 +0000 (08:12 +0200)]
elementary: remove unused part in segmentcontrol theme

The empty ("") state was never used, and is actually just an alias to
the "default" state, so let's just remove it.

7 years agoelementary: fix invalid state in segmentcontrol
Jean Guyomarc'h [Wed, 28 Sep 2016 06:10:13 +0000 (08:10 +0200)]
elementary: fix invalid state in segmentcontrol

This fixes runtime errors such as:

ERR<29027>:edje lib/edje/edje_calc.c:756 _edje_part_description_apply()
Cannot find description "normal" in part "text2" from group
"elm/segment_control/item/default". Fallback to default description.

The "normal" (non-existant) state corresponds to a disabled state,
which is provided by the "default" state.

7 years agoedje_program: add NULL checking
Jaehwan Kim [Wed, 28 Sep 2016 05:47:26 +0000 (14:47 +0900)]
edje_program: add NULL checking

7 years agoeo id and shared domain objects - do locking properly and better
Carsten Haitzler (Rasterman) [Wed, 28 Sep 2016 04:25:26 +0000 (13:25 +0900)]
eo id and shared domain objects - do locking properly and better

so there were a few issues. one we had a spinlokc on the eoid table
for shared objects AND then had a mutex for accessing those objects
(released on return from any eo function). BUT this missed some funcs
like eo_ref, eo_unref and so on in eo.c ... oops. so fixed. but then i
realized there was a race condition. we locked the eoid table then
unlocked with our pointer THEN locked the sharted object mutex ...
then unlocked it. that was a race condtion gap. so we should share the
same lock anyway - if it's a shared object, grab the shared object
mutex then do a lookup and if the lookup does not fail, KEEP the lock
until it is released by the return from eo function or by some special
macro/funcs that released a matching lock. since its a recursive lock
this is all fine. as its also a universal single lock for all objects
we just need the eoid to know if it's shared and needs locking based
on the domain bits. so now do this locking properly with just a single
mutex, not both a spinlock and mutex and keep the lock around until
totally done with the object. this plugs the race condition holes and
goes from 1 spinlock lock and unlock then a mutex lock and unlokc to
just a single mutex lock and unlock. this means shared objects are
actually truly safe across threads and only have the overhead of a
single recursive mutex to lock and unlock in every api call.

7 years agoelementary: fix copy & paste error, thanks Dave.
Cedric BAIL [Tue, 27 Sep 2016 17:54:09 +0000 (10:54 -0700)]
elementary: fix copy & paste error, thanks Dave.

7 years agoelm: rename globally used variable 'ret' to prevent shadow warnings
Mike Blumenkrantz [Tue, 27 Sep 2016 14:50:55 +0000 (10:50 -0400)]
elm: rename globally used variable 'ret' to prevent shadow warnings

please do not do this.

7 years agoecore_evas_wayland: Add NULL checking for surface
Youngbok Shin [Tue, 27 Sep 2016 12:50:04 +0000 (08:50 -0400)]
ecore_evas_wayland: Add NULL checking for surface

Summary: Need to NULL check before using surface like other cases.

Test Plan: N/A

Reviewers: jpeg, raster, ManMower, devilhorns

Reviewed By: devilhorns

Subscribers: cedric

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

7 years agoelm_panel : Fix bug with set scrollable panel orient.
JEONGHYUN YUN [Tue, 27 Sep 2016 08:11:03 +0000 (17:11 +0900)]
elm_panel : Fix bug with set scrollable panel orient.

Summary:
1. Fix wrong logic of ELM_PANEL_ORIENT_RIGHT case in _state_sync.
2. Move pre calc function in anim_cb to sizing_eval function.
   This code have caused problem that scrollable panel is not animated during drawer open and close.
3. Maintain content size ratio when orient is changed.
4. Freeze scroller when orient is changed.
   This code will need to change orientation when drawer opened.

Reviewers: cedric, eunue

Subscribers: cedric, jpeg

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

7 years agoevas sw x11 - disable the loop begin/end that deadlocks evas
Carsten Haitzler (Rasterman) [Tue, 27 Sep 2016 07:08:20 +0000 (16:08 +0900)]
evas sw x11 - disable the loop begin/end that deadlocks evas

this is quick to get evas working again. this disables part of
7e2d700d06ff970d68ae208d59bca76f6ea07467 that creates deadlocks. this
thread waits on mainloop. mainloop waits on this render thread. BOOM.
deadlock.

7 years agoecore_cocoa: upgrade API to macOS Sierra
Jean Guyomarc'h [Tue, 27 Sep 2016 06:20:20 +0000 (08:20 +0200)]
ecore_cocoa: upgrade API to macOS Sierra

Since macOS 10.12, several enumarations have been deprecated in favor of
new ones, with more meaningful ones, which are defined in SDK 10.12.

7 years agoefl configure - show that systemd is enabled by default
Carsten Haitzler (Rasterman) [Tue, 27 Sep 2016 04:45:03 +0000 (13:45 +0900)]
efl configure - show that systemd is enabled by default

7 years agoautotools: correct the configure help for systemd
Amitesh Singh [Tue, 27 Sep 2016 05:24:37 +0000 (10:54 +0530)]
autotools: correct the configure help for systemd

by default, systemd on linux is enabled. mention this in help

7 years agoMerge branch 'devs/iscaro/ecore_evas_vnc_multiseat'
Bruno Dilly [Tue, 27 Sep 2016 01:07:13 +0000 (22:07 -0300)]
Merge branch 'devs/iscaro/ecore_evas_vnc_multiseat'

This series adds the Ecore_Evas multi-seat VNC support
using the software X11 backend.
This implementation tries to mimic the Wayland's multi-seat support.

This series also introduces two new kinds of EFL events, which are:
 * EFL_CANVAS_EVENT_DEVICE_ADDED - Which is emitted every
   time an Evas_Device is created.
 * EFL_CANVAS_EVENT_DEVICE_REMOVED - Which is emmited every
   time an Evas_Device is removed/deleted.

The new events are useful when one wants to monitor how many
and what kind of devices are connected to the system.

Patches by iscaro.
Differential Revision: https://phab.enlightenment.org/D4295

@feature

7 years agoExamples: Add an Ecore Evas VNC example.
Guilherme Iscaro [Thu, 15 Sep 2016 22:57:02 +0000 (19:57 -0300)]
Examples: Add an Ecore Evas VNC example.

This commit adds an Ecore_Evas examples that can be used to test
the VNC multi-seat support.

7 years agoEcore_Evas_X: Dispatch Ecore_Events for VNC clients.
Guilherme Iscaro [Tue, 20 Sep 2016 17:00:06 +0000 (14:00 -0300)]
Ecore_Evas_X: Dispatch Ecore_Events for VNC clients.

This patch adds the support for Ecore events from a remove
VNC client. Every time it happens a VNC mouse move/click/wheel or a
VNC keyboard event an Ecore event event will be created and dispatched.

7 years agoEcore_Input: Add Efl_Input_Device in Ecore_Events structs.
Guilherme Iscaro [Tue, 20 Sep 2016 16:57:49 +0000 (13:57 -0300)]
Ecore_Input: Add Efl_Input_Device in Ecore_Events structs.

The Efl_Input_Device will contain the device which originated the event,
this will be useful for dealing with multi-seat environment. When the device
is NULL it means that the event originated from the default seat.

7 years agoEcore_Evas_X: Add VNC draw support.
Guilherme Iscaro [Wed, 21 Sep 2016 16:52:57 +0000 (13:52 -0300)]
Ecore_Evas_X: Add VNC draw support.

This patch adds the support to draw the X11 screen contents to
all remove VNC clients.

7 years agoEvas Software X11: Add a callback that informs the current screen content pixels.
Guilherme Iscaro [Wed, 21 Sep 2016 16:46:17 +0000 (13:46 -0300)]
Evas Software X11: Add a callback that informs the current screen content pixels.

This is necessary in order to implement a VNC server. Using this
callback the VNC server will be able to draw the current screen to the
VNC clients.

7 years agoEvas_Device: Use efl_del() in evas_device_del().
Guilherme Iscaro [Tue, 20 Sep 2016 17:49:57 +0000 (14:49 -0300)]
Evas_Device: Use efl_del() in evas_device_del().

The Evas_Input_Device should be have its parent set to NULL, otherwise
Eo might complain.

@fix

7 years agoEvas_Device: Add a new event for added and removed devices.
Guilherme Iscaro [Tue, 20 Sep 2016 15:10:08 +0000 (12:10 -0300)]
Evas_Device: Add a new event for added and removed devices.

This commits adds two event types for EFL_CANVAS. Every time
a device is added or removed the matching event will be emitted.

7 years agoEvas_Device: Add evas_device_full_add() API.
Guilherme Iscaro [Tue, 20 Sep 2016 16:44:23 +0000 (13:44 -0300)]
Evas_Device: Add evas_device_full_add() API.

This will make it simpler to add a Evas_Device with its fields already set.

7 years agoEvas_Common: Fix typo.
Guilherme Iscaro [Tue, 20 Sep 2016 16:41:58 +0000 (13:41 -0300)]
Evas_Common: Fix typo.

@fix

7 years agoEfl_Input_Device: Implement efl_input_device_parent_set().
Guilherme Iscaro [Tue, 20 Sep 2016 16:40:31 +0000 (13:40 -0300)]
Efl_Input_Device: Implement efl_input_device_parent_set().

This commits moves the parent_set implementation where it should be.

7 years agopo - update
Carsten Haitzler (Rasterman) [Tue, 27 Sep 2016 00:09:21 +0000 (09:09 +0900)]
po - update

7 years agoefl - fix build to build multip.edj from the right edc source
Carsten Haitzler (Rasterman) [Tue, 27 Sep 2016 00:08:24 +0000 (09:08 +0900)]
efl - fix build to build multip.edj from the right edc source

the makefile was wrong making multip.edj for the multitouch test in
elm the wrong src thus breaking the crosshairs. this fixes that again
so the test is right.

@fix

7 years agoecore: add a prototype ecore_thread helper with Efl_Promise/Efl_Future coupled.
Cedric BAIL [Mon, 26 Sep 2016 23:35:52 +0000 (16:35 -0700)]
ecore: add a prototype ecore_thread helper with Efl_Promise/Efl_Future coupled.

7 years agoelm_atspi_bridge: Active descendant changed signal not sent issue fix.
Shilpa Singh [Mon, 26 Sep 2016 21:28:09 +0000 (14:28 -0700)]
elm_atspi_bridge: Active descendant changed signal not sent issue fix.

Summary:
Active descendant changed signal send function checks for wrong object,
hence always returns with out actually sending signal.

The state is set to pd->object_broadcast_mask and not
pd->object_children_broadcast_mask in _set_broadcast_flag function.

Test Plan:
Send the active descandant changed signal from any widget, but signal
is not sent.

Reviewers: kimcinoo, lukasz.stanislawski, cedric

Reviewed By: cedric

Subscribers: jpeg, govi, rajeshps

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoelementary: set the extension on the extension, not the overlay !
Cedric BAIL [Mon, 26 Sep 2016 21:26:17 +0000 (14:26 -0700)]
elementary: set the extension on the extension, not the overlay !

@fix

This is a port of D4317

7 years agoelementary: Fix potential resource leak
Chris Michael [Mon, 26 Sep 2016 18:01:15 +0000 (14:01 -0400)]
elementary: Fix potential resource leak

If we fail to allocate memory for savedtypes.types here, then the
"known" array would end up leaking. Defer creation of 'known' array
until after savedtypes.types is allocated, this way we don't leak.

Fixes CID1363216

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoEcore promise: Renamed shadow variable.
Tom Hacohen [Mon, 26 Sep 2016 13:50:08 +0000 (14:50 +0100)]
Ecore promise: Renamed shadow variable.

Please everyone, use -Wshadow and fix your damn wranings.

7 years agoelementary entry: send a signal to edje for notifying scrollable mode
Youngbok Shin [Mon, 26 Sep 2016 13:03:45 +0000 (16:03 +0300)]
elementary entry: send a signal to edje for notifying scrollable mode

Summary:
If entry edje should be changed according to scrollable mode,
the signal will be used. The following signals are added.
"elm,scroll,enable"
"elm,scroll,disable"

Test Plan: N/A

Reviewers: raster, tasn, herdsman, cedric

Subscribers: minkyu, jpeg, akanad, z-wony, Blackmole

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

7 years agoecore_wl2: fix array overflow
Marcel Hollerbach [Mon, 26 Sep 2016 09:44:47 +0000 (11:44 +0200)]
ecore_wl2: fix array overflow

fixes CID 1363215

7 years agoecore_wl2: support parallel receiving of different mimetypes
Marcel Hollerbach [Mon, 26 Sep 2016 09:41:12 +0000 (11:41 +0200)]
ecore_wl2: support parallel receiving of different mimetypes

The mimetypes are now populated with the event and the data.

This also fixes CID 1363217

7 years agoecore_wl2: fix null dereference issue
Marcel Hollerbach [Mon, 26 Sep 2016 09:29:12 +0000 (11:29 +0200)]
ecore_wl2: fix null dereference issue

if we dont get the userdata of a offer something in the protocol went
very very bad, we should not emit there a error, just return.

Also if we are getting a null offer we should dereference the nulled out
offer object.

This fixes CID 1363214

7 years agoelm_config: Remove unnecessary NULL check.
Jaehyun Cho [Mon, 26 Sep 2016 09:08:41 +0000 (18:08 +0900)]
elm_config: Remove unnecessary NULL check.

Since _config_load() is called and _elm_config is not initialized, NULL
check for _elm_config is not necessary.
The unnecessary NULL check causes false alarm because _elm_config is not
checked in other cases.

7 years agoeina_matrix/quad: clean up documentation
Jee-Yong Um [Mon, 26 Sep 2016 06:04:15 +0000 (15:04 +0900)]
eina_matrix/quad: clean up documentation

Summary: adjust grouping to show reference correctly

Reviewers: Hermet, cedric, jpeg

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

7 years agoeo ptr indir - handle unlock on error with shared eoids correctly
Carsten Haitzler (Rasterman) [Mon, 26 Sep 2016 00:16:21 +0000 (09:16 +0900)]
eo ptr indir - handle unlock on error with shared eoids correctly

this fixes the error handling for shared objects which would fail to
unlock on lookup error.

7 years agoelm: Update toolbar test to show fix
Andy Williams [Sun, 25 Sep 2016 16:21:40 +0000 (17:21 +0100)]
elm: Update toolbar test to show fix

7 years agoelm_toolbar: Show icons in icon only mode
Andy Williams [Sun, 25 Sep 2016 14:57:08 +0000 (15:57 +0100)]
elm_toolbar: Show icons in icon only mode

When passing NULL as label the icon would get hidden.
@fix

7 years agoefreet - fix command generation by fixing string buffer expansion
Carsten Haitzler (Rasterman) [Sun, 25 Sep 2016 14:50:53 +0000 (23:50 +0900)]
efreet - fix command generation by fixing string buffer expansion

so by chance i discovered efreet is doing bad things(tm) when
expanding/appending to string buffers to generate commands based off
desktop files. the string append basically was buggy, so fixed it by
making it a lot simpler and more obvious and now reliable.

@fix

7 years agoEmotion: modify the playback finish behavior as before
Daniel Zaoui [Sun, 25 Sep 2016 10:11:32 +0000 (13:11 +0300)]
Emotion: modify the playback finish behavior as before

The callbacks are never invoked due to sd->play equal to 0. The
function _emotion_decode_stop is called before and resets this field.

Before the change to Efl.Canvas.Video, sd->play was not checked.

7 years agoecore_wl2: utilize the event window_ids
Marcel Hollerbach [Sat, 24 Sep 2016 17:01:37 +0000 (19:01 +0200)]
ecore_wl2: utilize the event window_ids

if a dnd operation enters a surface the window_id is clear, so a offer
is always specific to a window. If we have a source we try to fetch the
id from the focus/prevfocus or keyboardfocus.

This fixes dropping into a efl app which never got focus before.

7 years agoelm_cnp: handle format of a drop correctly
Marcel Hollerbach [Fri, 23 Sep 2016 20:00:11 +0000 (22:00 +0200)]
elm_cnp: handle format of a drop correctly

the format can also be the result of mutliple or´ed values.
The new code now also uses the same mimetypes to format type relation
than the selection code.

This fixes dragging onto a container with multiple formats.
Spotted by ApBBB while dragging from ephoto to terminology.

This also fixes T3320

7 years agoeo op resolv - do micro optimization to move init to goto blob
Carsten Haitzler (Rasterman) [Sat, 24 Sep 2016 06:12:09 +0000 (15:12 +0900)]
eo op resolv - do micro optimization to move init to goto blob

as per other recent benchmarking, moving rearely run code (in this
case code to init the op etc.) out of the l1 cacheline prefetch inot a
blob of code at the end of the function where we goto and goto back
again should provide decent-ish speedups for the resolv cache in
avoding this code. yes it makes the code less pretty to read but at
this really low level hot path ... evil things must happen to get the
speed we want/need.

7 years agoeio model: use empty mime type when efreet is unable to determine it
Vitor Sousa [Fri, 23 Sep 2016 14:32:46 +0000 (11:32 -0300)]
eio model: use empty mime type when efreet is unable to determine it

FIX T4502

@fix

7 years agoAdd updated drop part for the new pager gadget. This will be required for the new...
Stephen Houston [Fri, 23 Sep 2016 14:38:15 +0000 (09:38 -0500)]
Add updated drop part for the new pager gadget.  This will be required for the new pager to work.

7 years agoecore-drm2: Use Atomic State to enable/disable an output
Chris Michael [Fri, 23 Sep 2016 12:53:32 +0000 (08:53 -0400)]
ecore-drm2: Use Atomic State to enable/disable an output

If Atomic Modesetting is supported, we can use that to enable/disable
a given output.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Remove useless if check for atomic_modeset flag
Chris Michael [Fri, 23 Sep 2016 12:51:35 +0000 (08:51 -0400)]
ecore-drm2: Remove useless if check for atomic_modeset flag

As we always set this flag in the drm2_fb_flip function, having this
check here is now pointless.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoedje signal emits - enable DBG for being able to debug edj files
Carsten Haitzler (Rasterman) [Fri, 23 Sep 2016 11:10:16 +0000 (20:10 +0900)]
edje signal emits - enable DBG for being able to debug edj files

this would allow all emits from embryo script or otherwise to be seen
and debugged via eina-log.

7 years agoAUTHORS: add myself to the authors file
Marcel Hollerbach [Fri, 23 Sep 2016 10:03:07 +0000 (12:03 +0200)]
AUTHORS: add myself to the authors file

7 years agoelm_cnp: refactor selection_get callbacks
Marcel Hollerbach [Fri, 23 Sep 2016 08:45:03 +0000 (10:45 +0200)]
elm_cnp: refactor selection_get callbacks

before the format was not passed correctly, now the format is passed
correctly to the callback.

Also if a dnd operation was started while a cnp receive call was
going on (this happend because weston-editor failed to close the fd, so
EOF was never sent), then elm_cnp would behave wrong, since the
requestwidget, action, format would be different.

7 years agoecore_wl2: add more documentation on ecore_wl2 cnp/dnd api
Marcel Hollerbach [Thu, 22 Sep 2016 19:35:20 +0000 (21:35 +0200)]
ecore_wl2: add more documentation on ecore_wl2 cnp/dnd api