platform/upstream/efl.git
6 years agoeo: fix warning.
Cedric Bail [Wed, 7 Mar 2018 19:01:25 +0000 (11:01 -0800)]
eo: fix warning.

6 years agoeo: adjust test suite to take invalidate state into account.
Cedric Bail [Wed, 7 Mar 2018 19:00:06 +0000 (11:00 -0800)]
eo: adjust test suite to take invalidate state into account.

6 years agoecore: rely on Efl.Object.invalidate instead of a hack for Efl.Model.Container.Item.
Cedric Bail [Wed, 7 Mar 2018 18:59:20 +0000 (10:59 -0800)]
ecore: rely on Efl.Object.invalidate instead of a hack for Efl.Model.Container.Item.

6 years agoeo: introduce invalidate and noref state.
Cedric Bail [Wed, 7 Mar 2018 18:56:53 +0000 (10:56 -0800)]
eo: introduce invalidate and noref state.

This is just a first step. All user of destructor should be updated to
move the code that rely on their efl_parent and on efl_provider_find to
invalidate. Then we will be able to change the way efl_add and efl_del
work to properly refcount things. efl_noref won't be triggered at the
moment until both efl_parent_set(obj, NULL) and the last user ref are
set to NULL. This is not what we want, but due to how user refcount is
accounting parent at the moment, until all the code is move to rely
on invalidate we can not fix this.

6 years agoecore_wl2: cleanup input code to string logic to reduce compiler warning and useless...
Cedric Bail [Wed, 7 Mar 2018 18:51:46 +0000 (10:51 -0800)]
ecore_wl2: cleanup input code to string logic to reduce compiler warning and useless memory access.

6 years agoelementary: fix backward compatibility bug introduced by 9c8749b99a03d3601321da6d1607...
Cedric Bail [Wed, 7 Mar 2018 17:34:49 +0000 (09:34 -0800)]
elementary: fix backward compatibility bug introduced by 9c8749b99a03d3601321da6d16071dd7b631d1ae.

6 years agoecore-wl2: Check for valid string before passing to strlen()
Chris Michael [Wed, 7 Mar 2018 14:50:58 +0000 (09:50 -0500)]
ecore-wl2: Check for valid string before passing to strlen()

As strlen() cannot accept NULL (segfaults), we should check for valid
key, keyname, and compose strings here before passing to strlen().

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
6 years agoecore-wl2: Reduce calls to strlen
Chris Michael [Wed, 7 Mar 2018 14:37:25 +0000 (09:37 -0500)]
ecore-wl2: Reduce calls to strlen

Small patch to reduce calls to strlen when sending key events. This
patch is loosely based on Phab D5567

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
6 years agoeolian: get rid of old APIs for typedecl retrieval
Daniel Kolesa [Wed, 7 Mar 2018 12:53:08 +0000 (13:53 +0100)]
eolian: get rid of old APIs for typedecl retrieval

6 years agoeolian: remove old variable retrieval APIs
Daniel Kolesa [Wed, 7 Mar 2018 12:25:28 +0000 (13:25 +0100)]
eolian: remove old variable retrieval APIs

6 years agoeolian: remove old class retrieval APIs
Daniel Kolesa [Wed, 7 Mar 2018 12:08:49 +0000 (13:08 +0100)]
eolian: remove old class retrieval APIs

6 years agoefl_ui_focus_manager_calc: performe refocus after the node is deleted
Marcel Hollerbach [Fri, 2 Mar 2018 12:13:24 +0000 (13:13 +0100)]
efl_ui_focus_manager_calc: performe refocus after the node is deleted

if node is the last element, the element will be focused again, and
later deleted, without cleaning up the history

6 years agoexamples: cxx: fix the compilation for slider example.
Amitesh Singh [Wed, 7 Mar 2018 10:25:19 +0000 (19:25 +0900)]
examples: cxx: fix the compilation for slider example.

6 years agoefl check - fix env var for CK_FORK=no
Carsten Haitzler (Rasterman) [Wed, 7 Mar 2018 06:35:18 +0000 (15:35 +0900)]
efl check - fix env var for CK_FORK=no

6 years agoelementary: entry - recover cursor position when theme is changed
Minkyu Kang [Wed, 7 Mar 2018 02:46:44 +0000 (18:46 -0800)]
elementary: entry - recover cursor position when theme is changed

Summary:
When theme is applied text is reset and cursor position is set to 0.
This patch is recover the position to previous after text is reset.

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Reviewers: cedric, jpeg, woohyun, herdsman

Reviewed By: cedric

Subscribers: cedric, jpeg

Tags: #efl

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoelementary: bg - keep file path and key string for legacy bg widget
Youngbok Shin [Wed, 7 Mar 2018 01:56:56 +0000 (17:56 -0800)]
elementary: bg - keep file path and key string for legacy bg widget

Summary:
If a file path and key string was passed to elm_bg, we could get
the same file path and key string. Even if it failed to load the image file.
And the file path also remained its original form.
ex) Setting file path "~/image.png" => Getting file path "~/image.png"
                                       (Not "/home/user_name/image.png")

@fix

Test Plan: Included in elementary test suite.

Reviewers: jpeg, cedric, raster

Reviewed By: cedric

Subscribers: woohyun

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoelementary: entry - fix to generate "activated" and "aborted" event in single line...
Jeonghyun Yun [Wed, 7 Mar 2018 01:54:57 +0000 (17:54 -0800)]
elementary: entry - fix to generate "activated" and "aborted" event in single line entry only

Summary:
"aborted": The escape key was pressed on a single line entry. (since 1.7)
"activated": The enter key was pressed on a single line entry.

Reviewers: id213sin, jpeg, cedric, herdsman

Subscribers: cedric, jpeg

Tags: #efl

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoelementary: add missed type for legacy.
Woochan Lee [Wed, 7 Mar 2018 01:52:53 +0000 (17:52 -0800)]
elementary: add missed type for legacy.

Summary:
We've been missed type of class name.

Add legacy class name to maintain compatibility.

@fix

Reviewers: jpeg, woohyun, Jaehyun_Cho

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoelemetary: spinner - free the longpress_timer when unfocused
Woochan Lee [Wed, 7 Mar 2018 01:52:17 +0000 (17:52 -0800)]
elemetary: spinner - free the longpress_timer when unfocused

Summary:
It needs to delete when widget unfocused.

@minkyu
Gets from tizen.
0bc1a19703dc204c8d347794bae0290006f4bde5

Reviewers: jpeg, Jaehyun_Cho, minkyu, cedric

Subscribers: minkyu, cedric, jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoelm: fix location of legacy include for elm_code.
Lauro Moura [Wed, 7 Mar 2018 01:42:00 +0000 (17:42 -0800)]
elm: fix location of legacy include for elm_code.

Summary:
Instead of including the legacy header on the main header, just include
it where it is actually used (diff_widget.c), like in elm_code_widget.c.

Test Plan: Try to compile edi with the tarball from `make dist`. It should not fail with elm_code related errors.

Reviewers: raster, stefan_schmidt, felipealmeida

Subscribers: cedric

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoefl_ui_multibuttonentry: maintainance legacy function type.
Woochan Lee [Wed, 7 Mar 2018 01:28:53 +0000 (17:28 -0800)]
efl_ui_multibuttonentry: maintainance legacy function type.

Summary:
I did it wrong.

The "Elm_Multibuttonentry_Format_Cb" should be maintain for legacy.

efl_ui_XXX has to use efl_format interface.

@fix

Test Plan: elementary_test->multibuttonentry sample.

Reviewers: cedric, woohyun, Jaehyun

Subscribers: cedric

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoevas: increase offset by 4 to do work for next map points
Youngbok Shin [Wed, 7 Mar 2018 01:01:02 +0000 (17:01 -0800)]
evas: increase offset by 4 to do work for next map points

Summary:
Increasing offset as 2 for next map points is wrong.
If evas tries to draw for wrong combination of map points,
it can cause wrong results. Actually, every drawing code for
map points use and increase offset as 4.

@fix

Test Plan:
A test case for textpach is modified for testing this issue.
1. Run elementary_test with sync render mode.
   ex) ECORE_EVAS_FORCE_SYNC_RENDER=1 elementary_test
2. Open textpath test.
3. Set a short text by clicking newly added check box.
4. (It will show another issues... So,) change slice number to update textpath properly.
5. See some noises at top-left side of text.
   It is drawn from the two of end map points to the two of empty(not used) map points.

Reviewers: raster, cedric, jpeg, jypark

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoeina: tighten grammar in eina_hash API docs.
Bryce Harrington [Wed, 7 Mar 2018 00:59:34 +0000 (16:59 -0800)]
eina: tighten grammar in eina_hash API docs.

Summary:
Improve the verbage in the doxygen comments.  Refer to the value being
changed as the 'previous' rather than the 'old' value, to be more
precise.  Drop the phrase 'keeping API sane' as it is unnecessary and
is an odd thing to say.  Try to avoid referring to 'your program' as we
shouldn't assume the reader's situation.

Reviewers: cedric

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoeina: define the in/out params for eina_bezier
Bryce Harrington [Wed, 7 Mar 2018 00:58:44 +0000 (16:58 -0800)]
eina: define the in/out params for eina_bezier

Reviewers: cedric

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoeina: use better parameter name in eina_rectangle
Bryce Harrington [Wed, 7 Mar 2018 00:57:38 +0000 (16:57 -0800)]
eina: use better parameter name in eina_rectangle

Summary:
'thiz' is not commonly used in EFL, more commonly used is a word or
abbreviation that is descriptive of the object being used ('hash' for
Eina_Hashes, 'str' for Eina_Strings, 'array' for Eina_Arrays, etc.)
Follow this convention by using 'rect' (as used already in various
places) instead of 'thiz' or 'r'.

Reviewers: cedric

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoeina: specify error returns in @return for eina_list API docs
Bryce Harrington [Wed, 7 Mar 2018 00:56:49 +0000 (16:56 -0800)]
eina: specify error returns in @return for eina_list API docs

Summary:
For all routines that can return NULL on error, mention this in the
function's @return docs.  In cases where a small number of situations
result in this return, move the docs to the @return; in other cases just
state the NULL return briefly and leave the elaboration in the body.

Reviewers: cedric

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoefl_wl: Don't create touch resources with pointer interfaces
Derek Foreman [Tue, 6 Mar 2018 22:05:48 +0000 (16:05 -0600)]
efl_wl: Don't create touch resources with pointer interfaces

Fixes a forced disconnect error.

6 years agoecore - go back to args 0 being the command and 1+ being actual args
Carsten Haitzler (Rasterman) [Tue, 6 Mar 2018 14:43:06 +0000 (23:43 +0900)]
ecore - go back to args 0 being the command and 1+ being actual args

so this is then inconsistent with efl.exe and efl.thread, so go back
to being normal with 0'th arg being the binary itself jsut to make
sure we have conistent usage.

6 years agoecore - efl threads - add thredio class
Carsten Haitzler (Rasterman) [Tue, 6 Mar 2018 11:49:51 +0000 (20:49 +0900)]
ecore - efl threads - add thredio class

this adds a simple indata and outdata void ptr to begin that you can
set on efl.thread objects (set the indata) and get the outdata too to
get results. then on the efl.appthread side the indata is set on the
efl.appthread before it runs and on quit the thresad can set the
outdata on the appthread, and this appears back on the efl.thread
object in the parent thread.

so you can basically share pointers to anything in and out this way on
start/exit in addition to string args etc.

the reason i made it an extra class (mixin actually) is for future
expansion. sharing more complex data - eina values maybe or objects as
long as they are shared objects, and perhaps acting as an interface
for calling a function at the other end like ecore_thread_async_call
etc.

6 years agoecore efl exe/task/thread - move stdin/out flags to task class
Carsten Haitzler (Rasterman) [Tue, 6 Mar 2018 09:31:48 +0000 (18:31 +0900)]
ecore efl exe/task/thread - move stdin/out flags to task class

also use them in efl thread to determine if io handlers are set up and
pipes created at all etc.

6 years agoEfl.Ui.Slider: implement Efl.Ui.Range.range_step_set/get()
Amitesh Singh [Tue, 6 Mar 2018 06:52:35 +0000 (15:52 +0900)]
Efl.Ui.Slider: implement Efl.Ui.Range.range_step_set/get()

Also move elm_slider_step_set/get() as legacy APIs.
remove eo api step.set/get() as well since range intf
already implements it.

6 years agoevas cache - fix return val to fix warning
Carsten Haitzler (Rasterman) [Mon, 5 Mar 2018 14:29:37 +0000 (23:29 +0900)]
evas cache - fix return val to fix warning

fix return val if cache is null (something bad happening)

6 years agoevas cache image - protect against null cache ptrs
Carsten Haitzler (Rasterman) [Mon, 5 Mar 2018 10:04:42 +0000 (19:04 +0900)]
evas cache image - protect against null cache ptrs

ok. i can't find the root cause because all i have is a backtrace from
ApBBB and he says he can't reproduce it and i know im->cache is
null... if i could reproduce ... i'd be hunting the root cause. but
the best i can do is check for null im->cvache ptrs and be safe.
crashes are bad. especially for end users.

6 years agoElm_code test: fix compilation
Vincent Torri [Sun, 4 Mar 2018 12:41:33 +0000 (21:41 +0900)]
Elm_code test: fix compilation

Reviewers: cedric, raster

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

6 years agoefreet_xml: make sure we unmap the right pointer.
Al Poole [Sat, 3 Mar 2018 13:13:05 +0000 (13:13 +0000)]
efreet_xml: make sure we unmap the right pointer.

Seems Linux would munmap a lump of coal without failing. Make
sure the pointers match. Again bogus unmap not detected by
valgrind and not failing.

@fix T5949

6 years agoefl loop - remove commented out code left over from work on theads etc
Carsten Haitzler (Rasterman) [Sat, 3 Mar 2018 09:59:40 +0000 (18:59 +0900)]
efl loop - remove commented out code left over from work on theads etc

6 years agoefl.task - add an api to clear environment
Carsten Haitzler (Rasterman) [Sat, 3 Mar 2018 09:01:05 +0000 (18:01 +0900)]
efl.task - add an api to clear environment

6 years agoefl exe - fix indent
Carsten Haitzler (Rasterman) [Sat, 3 Mar 2018 08:57:17 +0000 (17:57 +0900)]
efl exe - fix indent

6 years agoefl loop promises - cleare out promise data to null
Carsten Haitzler (Rasterman) [Sat, 3 Mar 2018 08:15:10 +0000 (17:15 +0900)]
efl loop promises - cleare out promise data to null

so there is something broken in the complect efl promise/loop promise
that the clear of promises on loop destroy is clearing
promises/futures that have already triggered (loop timer ones). i've
spent enough time figuring out that it is happening.
_efl_loop_timeout_del() simple doenst ensure the future in
pending_futures for that promise is removed from the list. getting the
future from the promise handle is an exercise in pain... so i'm not
continuing with that path and will just ignore it.

but for now filling the promise data with null at least means if the
menory is re-used after free it wont see garbage freed ptrs and get
nulls so its easier to track.

6 years agoecore thread queue tests - reduce size and craziness and fix 1
Carsten Haitzler (Rasterman) [Fri, 2 Mar 2018 11:25:11 +0000 (20:25 +0900)]
ecore thread queue tests - reduce size and craziness and fix 1

1 test was wrong. it didn't wait for the thread to exit before checking
msg count recieved. fixed. race condition here.

also reduce the sheer message counts sent - it makes the suite take a
lot longer than is sane and als consume massive amounts of log space
in /tmp as a result.

6 years agoecore file test - change url to a file we control.
Carsten Haitzler (Rasterman) [Fri, 2 Mar 2018 11:23:35 +0000 (20:23 +0900)]
ecore file test - change url to a file we control.

rthe ecore file download test was downloading from sf.net ... and i
noticed sf.net refusing thus the ecore tests suite failing... i
changes it to grab a file (rss.php which is disabled for us but there)
so at least enlightenment.org has it.

better would be to spawn a webserver and test against that locally.
but thats a whole other level of work.

6 years agotests - eo - found eo_signals test is wrong... amazing it passed before
Carsten Haitzler (Rasterman) [Fri, 2 Mar 2018 10:13:44 +0000 (19:13 +0900)]
tests - eo - found eo_signals test is wrong... amazing it passed before

so it was listening for cb adds and dels... and or del of any cb
except the cb add/del catcher was done.. it would fail...

but ... the test actually added other cbs than this ... like:

   efl_event_callback_array_priority_add(obj, _eo_signals_callbacks(),
-100, (void *) 1);

a while array of cb's:

{ EV_A_CHANGED, _eo_signals_a_changed_cb },
{ EV_A_CHANGED, _eo_signals_a_changed_cb2 },
{ EV_A_CHANGED, _eo_signals_a_changed_never },
{ EFL_EVENT_DEL, _eo_signals_efl_del_cb });

none of which were _eo_signals_cb_added_deled. i am amazed it passed
before...

now switch its checks to check for itself and then check for anything
BUT itself...

6 years agoput efl app test back with mods to match app as superclass
Carsten Haitzler (Rasterman) [Fri, 2 Mar 2018 09:16:05 +0000 (18:16 +0900)]
put efl app test back with mods to match app as superclass

6 years agoecore - a different take on efl.app class as a super class to efl.loop
Carsten Haitzler (Rasterman) [Tue, 27 Feb 2018 12:19:17 +0000 (21:19 +0900)]
ecore - a different take on efl.app class as a super class to efl.loop

so the MAIN loop is actually an efl.app object. which inherits from
efl.loop. the idea is that other loops in threads will not be efl.app
objects. thread on the creator side return an efl.thread object.
inside the thread, like the mainloop, there is now an efl.appthread
object that is for all non-main-loop threads.

every thread (main loop or child) when it spawns a thread is the
parent. there are i/o pipes from parnet to child and back. so parents
are generally expected to, if they want to talk to child thread, so
use the efl.io interfaces on efl.thread, and the main loop's elf.app
class allows you to talk to stdio back to the parent process like the
efl.appthread does the same using the efl.io interfaces to talk to its
parent app or appthread. it's symmetrical

no tests here - sure. i have been holding off on tests until things
settle. that's why i haven't done them yet. those will come back in a
subsequent commit

for really quick examples on using this see:

https://phab.enlightenment.org/F2983118
https://phab.enlightenment.org/F2983142

they are just my test code for this.

Please see this design document:

https://phab.enlightenment.org/w/efl-loops-threads/

6 years agoRevert "cxx: Fix manual code after efl_app change."
Carsten Haitzler (Rasterman) [Tue, 27 Feb 2018 05:10:12 +0000 (14:10 +0900)]
Revert "cxx: Fix manual code after efl_app change."
This reverts commit 135154303bea691c6f7f9472a5dec32d9103c38d.

Revert "efl: move signal events from efl.loop to efl.app"
This reverts commit 3dbca39f98288580c62a43c179ac11621433ec88.

Revert "efl: add test suite for efl_app"
This reverts commit 3e94be5d73256a7f5c02d3a9474173226be7beff.

Revert "efl: create Efl.App class, the parent of Efl.Loop"
This reverts commit 28fe00b94e55575c15684959b89a614d5a579309.

Go back to before efl.app because I think this should be done with
superclassing here not a parent object. reasons?

1. multiple loops per single thread make no sense. so if multilpe loop
objects they wont be contained in a single app object and then deleted
like this.
2. the app object is not really sharable in this design so it cant be
accessed from other threads
3. it makes it harder to get the main loop or app object (well 2 func
calls one calling the other and more typing. it is longer to type and
more work where it is not necessary, and again it can't work from
other threads unless we go duplicating efl.app per thread and then
what is the point of splittyign out the signal events from efl.loop
then?)

etc.

6 years agoeolian cxx,csharp: Update after eolian changes
Lauro Moura [Fri, 2 Mar 2018 22:58:20 +0000 (23:58 +0100)]
eolian cxx,csharp: Update after eolian changes

Closes D5829.

6 years agoelua: add missing APIs to eolian bindings
Daniel Kolesa [Fri, 2 Mar 2018 13:39:57 +0000 (14:39 +0100)]
elua: add missing APIs to eolian bindings

6 years agoelua: objectify unit and redo class retrieval
Daniel Kolesa [Fri, 2 Mar 2018 13:02:50 +0000 (14:02 +0100)]
elua: objectify unit and redo class retrieval

6 years agoeolian: remove old APIs for path retrieval
Daniel Kolesa [Fri, 2 Mar 2018 12:53:34 +0000 (13:53 +0100)]
eolian: remove old APIs for path retrieval

6 years agoelua: update path retrieval APIs
Daniel Kolesa [Fri, 2 Mar 2018 12:52:13 +0000 (13:52 +0100)]
elua: update path retrieval APIs

6 years agoeolian: remove old directory_scan/file_parse APIs
Daniel Kolesa [Fri, 2 Mar 2018 12:46:57 +0000 (13:46 +0100)]
eolian: remove old directory_scan/file_parse APIs

6 years agoelua: remove old dir scan/parse APIs
Daniel Kolesa [Fri, 2 Mar 2018 12:43:16 +0000 (13:43 +0100)]
elua: remove old dir scan/parse APIs

6 years agoelua: add new API prototypes in eolian bindings
Daniel Kolesa [Fri, 2 Mar 2018 12:37:00 +0000 (13:37 +0100)]
elua: add new API prototypes in eolian bindings

6 years agoeolian*: replace various directory_scan/file_parse
Daniel Kolesa [Fri, 2 Mar 2018 12:30:14 +0000 (13:30 +0100)]
eolian*: replace various directory_scan/file_parse

6 years agoeolian: replace directory_scan and file_parse in tests
Daniel Kolesa [Fri, 2 Mar 2018 12:21:20 +0000 (13:21 +0100)]
eolian: replace directory_scan and file_parse in tests

6 years agoPyolian: new APIs for typedecl lookups
Dave Andreoli [Thu, 1 Mar 2018 16:08:56 +0000 (17:08 +0100)]
Pyolian: new APIs for typedecl lookups

6 years agoPyolian: new variable lookup APIs
Dave Andreoli [Thu, 1 Mar 2018 15:35:22 +0000 (16:35 +0100)]
Pyolian: new variable lookup APIs

with adjusted tests

6 years agoPyolian: new APIs for class retrieval
Dave Andreoli [Thu, 1 Mar 2018 14:51:59 +0000 (15:51 +0100)]
Pyolian: new APIs for class retrieval

Also updated tests, generator and gendoc accordly

6 years agoefl file interface - fix reyturn if no file set to return a null file
Carsten Haitzler (Rasterman) [Thu, 1 Mar 2018 13:35:21 +0000 (22:35 +0900)]
efl file interface - fix reyturn if no file set to return a null file

6 years agoeolian: new APIs for typedecl lookups
Daniel Kolesa [Thu, 1 Mar 2018 11:42:40 +0000 (12:42 +0100)]
eolian: new APIs for typedecl lookups

6 years agoeolian: new variable lookup APIs
Daniel Kolesa [Thu, 1 Mar 2018 11:09:02 +0000 (12:09 +0100)]
eolian: new variable lookup APIs

6 years agoeolian: new APIs for class retrieval
Daniel Kolesa [Thu, 1 Mar 2018 10:42:30 +0000 (11:42 +0100)]
eolian: new APIs for class retrieval

6 years agoevas: Check for NEON via eina_cpu_features if possible
Derek Foreman [Wed, 28 Feb 2018 22:38:53 +0000 (16:38 -0600)]
evas: Check for NEON via eina_cpu_features if possible

On linux we can do this test without firing a SIGILL and trapping it,
if getauxval() is present.

ref T6711

6 years agoeet: add doc note for EET_DATA_DESCRIPTOR_ADD_VAR_ARRAY_STRING
Mike Blumenkrantz [Wed, 28 Feb 2018 18:55:44 +0000 (13:55 -0500)]
eet: add doc note for EET_DATA_DESCRIPTOR_ADD_VAR_ARRAY_STRING

6 years agoelm config: hide theme and profile config in gui when running in enlightenment
Mike Blumenkrantz [Tue, 27 Feb 2018 23:32:59 +0000 (18:32 -0500)]
elm config: hide theme and profile config in gui when running in enlightenment

put some small effort into preventing the user from destroying their config

6 years agoelm: fix config upgrades for user profiles
Mike Blumenkrantz [Tue, 27 Feb 2018 23:15:10 +0000 (18:15 -0500)]
elm: fix config upgrades for user profiles

loading the system profile only works if the current profile has the
same name as a system profile

6 years agotheme: add fallback matching when referenced theme is not found
Mike Blumenkrantz [Wed, 28 Feb 2018 16:01:26 +0000 (11:01 -0500)]
theme: add fallback matching when referenced theme is not found

if done properly, this should never occur, but at least find some
layout to use if one is available

6 years agotheme: introduce theme overlay/extension matching
Mike Blumenkrantz [Tue, 27 Feb 2018 20:42:58 +0000 (15:42 -0500)]
theme: introduce theme overlay/extension matching

after this commit, efl base themes should now specify:

data.item: "efl_theme_base" "theme_name";

and overlays/extensions which match a given theme should use:

data.item: "efl_theme_match" "theme_name";

this will cause overlays and extensions with the data.item to only
be loaded when the corresponding theme is in use. note that this
should not be specified for theme-independent overlays/extensions
as it will completely block loading of themes

6 years agoelm_theme: deduplicate theme apply code
Mike Blumenkrantz [Tue, 27 Feb 2018 20:22:08 +0000 (15:22 -0500)]
elm_theme: deduplicate theme apply code

the "default" style fallback code here was identical, so just call again
with "default" instead of copy and pasting the same code

6 years agoelm_theme: massively simplify internals
Mike Blumenkrantz [Tue, 27 Feb 2018 20:07:13 +0000 (15:07 -0500)]
elm_theme: massively simplify internals

instead of maintaining separate lists for the file and the edje file,
maintain a single list of structs containing both of these

also dynamically manage a string list of files to preserve compat with
existing (bad) functions which return this directly

6 years agoelm: set default theme name internally when applying config
Mike Blumenkrantz [Tue, 27 Feb 2018 19:21:14 +0000 (14:21 -0500)]
elm: set default theme name internally when applying config

for whatever reason this is only generated in elm_theme_get(), so call
that whenever doing theme string parsing

@fix

6 years agoedje: add ability to reference images from other edje files
Mike Blumenkrantz [Mon, 26 Feb 2018 23:54:38 +0000 (18:54 -0500)]
edje: add ability to reference images from other edje files

this uses the just-added "id" property to allow referencing images
by name from that theme. example:

=FILE1=
id: "myfile";
images.image: "someimage.png" COMP;

=FILE2=
requires: "myfile";
images.image: "someimage.png" EXTERNAL "myfile";

FILE2 will now load someimage.png from FILE1 at runtime if FILE1 is
currently opened in edje, and FILE1 will be kept open until FILE2 is
closed

@feature

6 years agoedje_cc: add "id" toplevel property
Mike Blumenkrantz [Mon, 26 Feb 2018 21:21:44 +0000 (16:21 -0500)]
edje_cc: add "id" toplevel property

this can be used by edje files to identify themselves

6 years agoedje: reformat bin/ c files
Mike Blumenkrantz [Mon, 26 Feb 2018 21:15:30 +0000 (16:15 -0500)]
edje: reformat bin/ c files

a lot of this was unreadable due to mixed tabs/spaces or just random
formatting

6 years agoedje: EDJE_IMAGE_SOURCE_TYPE_EXTERNAL -> EDJE_IMAGE_SOURCE_TYPE_USER
Mike Blumenkrantz [Mon, 26 Feb 2018 20:44:58 +0000 (15:44 -0500)]
edje: EDJE_IMAGE_SOURCE_TYPE_EXTERNAL -> EDJE_IMAGE_SOURCE_TYPE_USER

no functional changes, just a confusing define rename

6 years agoRevert "wayland_imf: Fix bug in shutdown"
Derek Foreman [Wed, 28 Feb 2018 19:33:32 +0000 (13:33 -0600)]
Revert "wayland_imf: Fix bug in shutdown"

This reverts commit fb01a697dd099f17a6a30c74781b6cfeb72bc512.

The problem this commit was anticipating never happened.

Now the next version of wayland will allow us to make protocol symbols
private, so it makes more sense to have this stuff back where it was
in the first place.

6 years agoPyolian: add APIs to retrieve units from a state
Dave Andreoli [Wed, 28 Feb 2018 13:18:45 +0000 (14:18 +0100)]
Pyolian: add APIs to retrieve units from a state

Also fixed a declaration error from previous commit

6 years agoPyolian: add API to get file name of a unit
Dave Andreoli [Wed, 28 Feb 2018 12:36:49 +0000 (13:36 +0100)]
Pyolian: add API to get file name of a unit

6 years agoPyolian: add API to get children of a unit
Dave Andreoli [Wed, 28 Feb 2018 12:16:53 +0000 (13:16 +0100)]
Pyolian: add API to get children of a unit

6 years agoPyolian: reorder the header file
Dave Andreoli [Wed, 28 Feb 2018 11:58:06 +0000 (12:58 +0100)]
Pyolian: reorder the header file

No functional changes, just reordered the declarations

6 years agoRevert "elm: make elm_view_list legacy"
Marcel Hollerbach [Wed, 28 Feb 2018 08:47:26 +0000 (09:47 +0100)]
Revert "elm: make elm_view_list legacy"

This reverts commit d2d63a8c239cf40b7b828303cca34a0d0dde97ec.

This broke compilation of efl applications, since elm_view_list.eo.h
is required, however, this again leaves the installed .eo files broken.

6 years agoeina/bezier: use FLT_EQ marcro for float equal comparison.
subhransu mohanty [Wed, 28 Feb 2018 06:15:20 +0000 (15:15 +0900)]
eina/bezier: use FLT_EQ marcro for float equal comparison.

Reviewers: SanghyeonLee, jpeg, cedric

Subscribers: cedric

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

6 years agoecore_wl2: Disable horizontal resize optimization
Derek Foreman [Tue, 27 Feb 2018 22:24:25 +0000 (16:24 -0600)]
ecore_wl2: Disable horizontal resize optimization

We had a "clever" optimization that would keep a buffer on resize
if it was resizing up horizontal and fit within the previously
allocated stride.

Unfortunately, there still needs to be a buffer reconfigure between
client and compositor that wasn't taking place.  Remove this for now.

6 years agoPyolian: rename Eolian to Eolian_State
Dave Andreoli [Tue, 27 Feb 2018 18:13:15 +0000 (19:13 +0100)]
Pyolian: rename Eolian to Eolian_State

6 years agoPyolian: eolian_file_parse -> eolian_state_file_parse
Dave Andreoli [Tue, 27 Feb 2018 17:10:29 +0000 (18:10 +0100)]
Pyolian: eolian_file_parse -> eolian_state_file_parse

6 years agoPyolian: rename path/filename retrieval APIs
Dave Andreoli [Tue, 27 Feb 2018 17:05:21 +0000 (18:05 +0100)]
Pyolian: rename path/filename retrieval APIs

6 years agoPyolian: rename all_files_parse functions
Dave Andreoli [Tue, 27 Feb 2018 16:56:06 +0000 (17:56 +0100)]
Pyolian: rename all_files_parse functions

6 years agoPyolian: new APIs for directory scanning
Dave Andreoli [Tue, 27 Feb 2018 16:48:31 +0000 (17:48 +0100)]
Pyolian: new APIs for directory scanning

eolian_directory_scan => eolian_state_directory_add
eolian_system_directory_scan => eolian_state_system_directory_add

6 years agoeio_file: fix some indentation.
Al Poole [Tue, 27 Feb 2018 17:33:47 +0000 (17:33 +0000)]
eio_file: fix some indentation.

Make this easier to read.

6 years agoeolian: rename path/filename retrieval APIs
Daniel Kolesa [Tue, 27 Feb 2018 15:11:56 +0000 (16:11 +0100)]
eolian: rename path/filename retrieval APIs

6 years agoeolian: rename all_files_parse functions
Daniel Kolesa [Tue, 27 Feb 2018 15:04:19 +0000 (16:04 +0100)]
eolian: rename all_files_parse functions

6 years agoeolian: eolian_file_parse -> eolian_state_file_parse
Daniel Kolesa [Tue, 27 Feb 2018 14:59:53 +0000 (15:59 +0100)]
eolian: eolian_file_parse -> eolian_state_file_parse

6 years agoeolian: add API to get file name of a unit
Daniel Kolesa [Tue, 27 Feb 2018 14:53:35 +0000 (15:53 +0100)]
eolian: add API to get file name of a unit

6 years agoeolian: add API to get children of a unit
Daniel Kolesa [Tue, 27 Feb 2018 14:46:39 +0000 (15:46 +0100)]
eolian: add API to get children of a unit

6 years agoeolian: add APIs to retrieve units from a state
Daniel Kolesa [Tue, 27 Feb 2018 12:24:05 +0000 (13:24 +0100)]
eolian: add APIs to retrieve units from a state

6 years agoeolian: new APIs for directory scanning
Daniel Kolesa [Tue, 27 Feb 2018 12:07:31 +0000 (13:07 +0100)]
eolian: new APIs for directory scanning

6 years agoeolian: eolian_* -> eolian_state_*, Eolian -> Eolian_State
Daniel Kolesa [Tue, 27 Feb 2018 12:00:36 +0000 (13:00 +0100)]
eolian: eolian_* -> eolian_state_*, Eolian -> Eolian_State

6 years agoevas: minor formatting fix
Chris Michael [Wed, 21 Feb 2018 14:07:58 +0000 (09:07 -0500)]
evas: minor formatting fix

NB: No functional changes

Signed-off-by: Chris Michael <cp.michael@samsung.com>
6 years agoecore-drm2: Add API function to retrieve output user data
Chris Michael [Tue, 20 Feb 2018 15:33:51 +0000 (10:33 -0500)]
ecore-drm2: Add API function to retrieve output user data

With the rework of Ecore_Evas drm engine, we need to get the
ecore_evas itself in the pageflip callback so we have to reassign
output->user_data to the ecore_evas which we can then use to retrieve
via this function

This is needed as the pageflip callback will pass us the output on
which the pageflip completed.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
6 years agoecore-drm2: Free stringshare for relative output during output_free
Chris Michael [Tue, 27 Feb 2018 14:22:04 +0000 (09:22 -0500)]
ecore-drm2: Free stringshare for relative output during output_free

When we destroy a given output, we should be freeing the
eina_stringshare for relative.to

Signed-off-by: Chris Michael <cp.michael@samsung.com>