Marcel Hollerbach [Wed, 5 Dec 2018 10:04:23 +0000 (11:04 +0100)]
Revert "Revert "eina: add locale-independent eina_convert_strtod_c function""
This reverts commit
ddd263875896c11b7d0875c7357a3322243290d9.
Hermet Park [Mon, 17 Dec 2018 05:08:31 +0000 (14:08 +0900)]
enable lottie-player
If your system is still looking at the old server,
Please use below:
http://10.113.136.32/download/public_mirror/tizen/unified/latest/repos/standard/packages/
Change-Id: I0933d74b2c00876fb770681d29613bf04edc3b80
Hermet Park [Mon, 17 Dec 2018 06:44:13 +0000 (15:44 +0900)]
efl gfx_path: fix a crash case.
Here reserved size was not properly specified that interrupt realloc() size.
Some architecture may have 8 bytes for pointer type
but here path command actually 4 byte data.
Changed to specify the sizeof(Efl_Gfx_Path_Command and double)
instead of variable types(which is a pointer type) to make it work.
Change-Id: I3ace56d3066aa1168920fcbbc19e0c538fb9bdeb
Hermet Park [Fri, 14 Dec 2018 08:28:33 +0000 (17:28 +0900)]
evas json: optimize by applying path reserving.
We can measure the path command and points count in advance.
Skip the growing up path buffer by reserving buffer.
Change-Id: I77887ae2c2fad283c359527287964644ed60209d
Hermet Park [Fri, 14 Dec 2018 08:26:38 +0000 (17:26 +0900)]
efl gfx_path: introduce efl_gfx_path_reserve()
Summary:
This method reserves path commands buffer in advance.
If user know the count of path commands coming,
they can reserve commands buffer in advance to avoid buffer growing job.
This reserved buffer would grow up by double size, if the buffer is full.
@feature
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D7456
Change-Id: If6cff3783280aa670c96049a156eb39a8d7c6b0b
Hermet Park [Thu, 13 Dec 2018 11:01:24 +0000 (20:01 +0900)]
evas json: fix warnings about unused params.
Change-Id: I1aac0938d8ea9a1916215159188cfffe9b6d4d25
Hermet Park [Thu, 13 Dec 2018 11:00:23 +0000 (20:00 +0900)]
evas vg: adjust pos and size to keep the aspect ratio.
This computation is to adjust the offset and size of the drawing area,
in order to keep the original aspect ratio by the vector resource.
Change-Id: I0f1af046bd8b4b09ba58ff1f6b11bf7e55090c99
Jongmin Lee [Tue, 11 Dec 2018 10:13:58 +0000 (19:13 +0900)]
efl: update spec examples for efl and/or elementary optional build
@tizen_fix
Change-Id: Ia93debddcb6cd90430c6c6d8153b35d9897e6019
Radoslaw Cybulski [Tue, 11 Dec 2018 12:44:19 +0000 (13:44 +0100)]
Fix for missing unregistration of atspi objects
Atspi objects weren't properly unregistered, when being destroyed. As a
result atspi query could come from screen-reader, which could cause
application to use object, that was already destroyed and crash an
application.
Change-Id: If50076b06816957df5707528b8147af6eb69c306
Hermet Park [Tue, 11 Dec 2018 05:30:19 +0000 (14:30 +0900)]
disable lottie-player.
the pakage can't be installed properly,
Must be fixed first.
Change-Id: I9e8e8a5f9794d94e7cd357e66d861a0a3bbd2da1
Hermet Park [Sat, 8 Dec 2018 06:36:07 +0000 (15:36 +0900)]
elementary: contain elm_animation_view build in mobile/wearable version.
Change-Id: I19ac08ef294f04c6f4d6c5ca4eb01e49c5c1b4dc
Hermet Park [Sat, 8 Dec 2018 05:21:01 +0000 (14:21 +0900)]
ready to use lottie-player.
Change-Id: Ia1d0f32a170a831cf1edc96ab27bfeb4fc9e1741
Hermet Park [Sat, 8 Dec 2018 05:04:29 +0000 (14:04 +0900)]
evas gl: sync with upstream code.
This code diff is come from meson build capacity.
No logical changes.
Change-Id: I94245e966720b3e97ed009ba242077e17f05156b
Hermet Park [Sat, 8 Dec 2018 05:06:58 +0000 (14:06 +0900)]
evas gl: remove cserve2 code in tizen only.
efl gave up maintaining cserve2 recently.
don't need this code.
Change-Id: Ie5e2042b70f7014b8a4a16ea2d27550dc4776d38
Hermet Park [Fri, 7 Dec 2018 09:13:58 +0000 (18:13 +0900)]
evas json: fix compile warning.
The function doesn't have return value.
Change-Id: Ia110a46d3b28ed109a024013d2c5ebd139da58d0
Hermet Park [Fri, 7 Dec 2018 09:12:13 +0000 (18:12 +0900)]
evas vg: safety code++
Change-Id: I8e0f17607323a680b7b5bfa5994de588c267293e
Hermet Park [Fri, 7 Dec 2018 06:50:57 +0000 (15:50 +0900)]
ector: code refactoring.
make code clean and neat.
no logical changes.
Change-Id: Ib6b324b24a2e97c6628a5ed6abf14062815de8ff
Hermet Park [Fri, 7 Dec 2018 06:37:02 +0000 (15:37 +0900)]
evas vg: code refactoring.
make code clean and neat, no logic changes.
use macro to reduce lines.
rename ambiguous internal variables.
remove unused variables.
Change-Id: I87da2c10689d6f8e28d8a3b94d899090134e4dfe
Hermet Park [Fri, 7 Dec 2018 05:11:09 +0000 (14:11 +0900)]
evas ector: add software implmentation for masking feature.
This implementation uses Ector_Buffer to generate mask image from vg container,
and pass it to Ector engine. Ector renderer could blend this image as a mask.
Yet only vg container works as a mask, we could extend shape to support masking as well.
Change-Id: I6faea19084b0399172b877eb56364601f2adf584
Hermet Park [Fri, 7 Dec 2018 05:22:43 +0000 (14:22 +0900)]
evas vg: remove unused internal function
Vector can't return image data yet.
This function is useless.
Change-Id: I53e17278b266f125963d5147434e1212162a4817
Hermet Park [Wed, 28 Nov 2018 04:12:46 +0000 (13:12 +0900)]
evas json: updated json loader to support masking/matte.
This implementation is first draft to support matte feature.
Change-Id: I257feaf44a462edc4e07ced5ec8e3887ed6570bc
n1214.hwang [Thu, 6 Dec 2018 04:57:20 +0000 (13:57 +0900)]
Update the way handling lc_numeric
- https://review.tizen.org/gerrit/#/c/platform/upstream/efl/+/194095/
- setlocale(LC_NUMERIC, NULL) returns char* and this value will be changed again when setlocale called
- So, update the lc_numeric value at specific timing, it should copid as string.
Change-Id: I7fe5a222634641825e638670220defa86cb41c72
Hermet Park [Thu, 6 Dec 2018 05:31:48 +0000 (14:31 +0900)]
Revert "Revert "elementary animation_view: add since_tizen tag.""
Revert patch with resolving build error.
This reverts commit
c902ff683a025c4705b8b3b603b3ef6820bea437.
Change-Id: I960f2638f2a79e1669b270e9bfd40cedbe67c5de
Hermet Park [Thu, 6 Dec 2018 05:20:00 +0000 (14:20 +0900)]
Revert "elementary animation_view: add since_tizen tag."
This reverts commit
bdf7ab913d08da7d2d2dc7d4cd459bf6e84d8a13.
Change-Id: Ic5cb09e7e31bc6c37cb5ba08bb8404ffa070be44
Hermet Park [Thu, 6 Dec 2018 05:05:12 +0000 (14:05 +0900)]
evas: temporary fix for proper eolian build.
Stil eo grammar is fragile, this reference syntax have a issue at efl-extension build.
We put this temporary change until upstream make it stable.
see T7495.
Change-Id: I13bcd288f1c906476602835cab1e6fea8233e80b
Hermet Park [Thu, 6 Dec 2018 03:23:17 +0000 (12:23 +0900)]
elementary animation_view: add since_tizen tag.
Change-Id: I769f7ce7b28a8043642e850327593a4c351fc972
Hermet Park [Thu, 6 Dec 2018 03:15:35 +0000 (12:15 +0900)]
textpath: add since_tizen tag.
Change-Id: Ib3852fd9678d0c605aeffee73871a5df8886a6d4
Jihoon Kim [Wed, 5 Dec 2018 11:01:28 +0000 (20:01 +0900)]
ecore_imf: Fix document about ecore_imf_context_input_panel_position_set()
Change-Id: I985bc22a44627ce23d511320041d1e70dc816a2b
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
Yeongjong Lee [Wed, 5 Dec 2018 09:39:08 +0000 (18:39 +0900)]
elm_widget: disable focus manager stuff
@tizen_fix
Change-Id: Icc4c6d6a4f35d1a909e08bac4e6a3c830d0cb9ec
jsuya [Wed, 5 Dec 2018 10:55:46 +0000 (19:55 +0900)]
elm_genlist: fix break at efl migration.
Change-Id: I426869a5988d9e213be3b44087f03610035a771e
Signed-off-by: jsuya <jsuya.choi@samsung.com>
Youngbok Shin [Wed, 5 Dec 2018 05:04:33 +0000 (14:04 +0900)]
elementary textpath: add @since_tizen tag in API documentations
@tizen_only
Change-Id: I83fe627f4983c141762081496b179f91c6f5dfc4
Hermet Park [Wed, 5 Dec 2018 09:16:06 +0000 (18:16 +0900)]
elm_priv: downgrade incorrect elm_config version
Change-Id: I9bad496ef7c0109839d8b62ccf7a72c49f96cd6f
Hermet Park [Wed, 5 Dec 2018 06:16:31 +0000 (15:16 +0900)]
elementary: fix build break at efl migration.
Change-Id: I81eee6b28b36fe63adcd73a229952a57e7b4f8e0
Jaehyun Cho [Wed, 5 Dec 2018 01:35:30 +0000 (10:35 +0900)]
efl_ui_win: enable bg color set although alpha is set
Summary:
This patch sets background transparent if window supports alpha.
If alpha window does not emit signal to show background rectangle,
then the background color set by _efl_ui_win_part_color_set cannot
be applied because the background rectangle remains hidden.
This patch fixes the side effect of D6569.
Test Plan: Run Efl.Ui.Win (Bg part) in elementary_test.
Reviewers: zmike, devilhorns, woohyun
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D7302
Lauro Moura [Tue, 4 Dec 2018 17:50:48 +0000 (15:50 -0200)]
eolian_cxx: Add documentation field to property_def
Test Plan: run eolian_cxx suite
Reviewers: vitor.sousa, felipealmeida
Reviewed By: vitor.sousa
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D7414
Yeongjong Lee [Tue, 4 Dec 2018 09:09:33 +0000 (10:09 +0100)]
examples: update gitignore
Test Plan:
make examples
git state
Reviewers: Jaehyun_Cho, Hermet, segfaultxavi
Reviewed By: segfaultxavi
Subscribers: segfaultxavi, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D7406
Carsten Haitzler (Rasterman) [Tue, 4 Dec 2018 08:45:02 +0000 (08:45 +0000)]
elm config - fix warnings about unused vars and params
Carsten Haitzler (Rasterman) [Tue, 4 Dec 2018 08:43:02 +0000 (08:43 +0000)]
elm teest - focus - fix unused param warn
Carsten Haitzler (Rasterman) [Tue, 4 Dec 2018 08:42:19 +0000 (08:42 +0000)]
elm tests - focus - fix unused param warn
Carsten Haitzler (Rasterman) [Tue, 4 Dec 2018 08:41:24 +0000 (08:41 +0000)]
elm tests - gengrid - fix unused param warn
Carsten Haitzler (Rasterman) [Tue, 4 Dec 2018 08:40:35 +0000 (08:40 +0000)]
elm test - button - remove unused local var warn
Carsten Haitzler (Rasterman) [Tue, 4 Dec 2018 08:40:02 +0000 (08:40 +0000)]
elm main - fix unused param in cb warn
Carsten Haitzler (Rasterman) [Tue, 4 Dec 2018 08:39:25 +0000 (08:39 +0000)]
elm toolbar - fix unused param warn
Carsten Haitzler (Rasterman) [Tue, 4 Dec 2018 08:38:44 +0000 (08:38 +0000)]
elm colorselector - fix unused param warn
Carsten Haitzler (Rasterman) [Tue, 4 Dec 2018 08:37:59 +0000 (08:37 +0000)]
efl ui focus manager - fix unused param warn
Carsten Haitzler (Rasterman) [Tue, 4 Dec 2018 08:37:01 +0000 (08:37 +0000)]
benchmarks - focus tree - fix unused param warn
Carsten Haitzler (Rasterman) [Tue, 4 Dec 2018 08:36:00 +0000 (08:36 +0000)]
efl ui focus manager - remove unused local vars warn
Carsten Haitzler (Rasterman) [Tue, 4 Dec 2018 08:34:40 +0000 (08:34 +0000)]
elm glview - fix unused param warn
Carsten Haitzler (Rasterman) [Tue, 4 Dec 2018 08:33:46 +0000 (08:33 +0000)]
eldbus model - remove unused vars warn
Carsten Haitzler (Rasterman) [Tue, 4 Dec 2018 08:33:28 +0000 (08:33 +0000)]
eldbus model - fix signed compare warn
Carsten Haitzler (Rasterman) [Tue, 4 Dec 2018 08:30:09 +0000 (08:30 +0000)]
efl model loop - fix unused param (add EINA_UNUSED) - warn
Carsten Haitzler (Rasterman) [Tue, 4 Dec 2018 08:24:02 +0000 (08:24 +0000)]
eina iterator tests - use same unisnged ints to store - warn
use unsigned ints to we have no more wantings about signed compares
Carsten Haitzler (Rasterman) [Tue, 4 Dec 2018 08:21:49 +0000 (08:21 +0000)]
eina - iterator - remove unused variable - warn
Marcel Hollerbach [Wed, 28 Nov 2018 13:17:28 +0000 (14:17 +0100)]
elm_scroller: update behaviour to match legacy behaviour more closely
This implements scrolling the scroller when the scroller is not in the
maximum position of the requested relation, but there is no more focus
object in that relation.
Summing up, the scroller is scrolled manually, when the focus object is
not fitting in the viewport, and the object is beeing out of the
viewport in the requested direction. Or the scroller is not at its max
position in the requested direction, and there is no more focusable
object in this requested direction.
ref T6804
Differential Revision: https://phab.enlightenment.org/D7382
Marcel Hollerbach [Mon, 26 Nov 2018 16:30:19 +0000 (17:30 +0100)]
efl_ui_focus_manager_root_focus: ensure that adapter is part of viewport
This ensures that the adapter part is part of the viewport elements and
border elements. This is done in order to support cases where a
elm_scroller content is not focusable. Before the element was not
correctly in viewport, and so not correctly registered.
ref T6804
Differential Revision: https://phab.enlightenment.org/D7364
Marcel Hollerbach [Mon, 26 Nov 2018 11:40:17 +0000 (12:40 +0100)]
elm_interface_scrollable: add support for *jumping* into a scroller
Until recently we have been only registering the border elements of the
graph, (so only the elements that don't have a neighboor). However this
lead to the situation that a scroller that is scrolled into the middle
(so not the x nor the y axis is scrolled to the max), is not accessable.
Now, we register all elements that have a neighboor in the outside.
The patch in the test suite is required in order to provide the correct
geometry to the implementation of efl_ui_focus_manager_sub.
Differential Revision: https://phab.enlightenment.org/D7360
Marcel Hollerbach [Sun, 25 Nov 2018 11:50:03 +0000 (12:50 +0100)]
elementary: add a benchmark for focus widget tree interation
The benchmark checks how long it takes to move focus through a few
nested scrollers.
Differential Revision: https://phab.enlightenment.org/D7363
Marcel Hollerbach [Sun, 25 Nov 2018 11:49:15 +0000 (12:49 +0100)]
meson: fix running of benchmark
Differential Revision: https://phab.enlightenment.org/D7362
Marcel Hollerbach [Mon, 3 Dec 2018 17:49:47 +0000 (18:49 +0100)]
meson: use eolian_gen with -S
this ensures that eolian does not parse installed .eo files
Differential Revision: https://phab.enlightenment.org/D7405
Daniel Kolesa [Mon, 3 Dec 2018 16:55:07 +0000 (17:55 +0100)]
autotools: include eolian_aux eo files in release
Carsten Haitzler (Rasterman) [Mon, 3 Dec 2018 15:50:02 +0000 (15:50 +0000)]
ecore evas - buffer - init ecore event evas as many times as shutdown
so ecore_event_evas_shutdown() was getting called much more than
ecore_event_evas_init() - missing an init in the ee + img obj creator
in ecore evas. this adds it in and ensures in allocation failures we
dont over-init or shutdown too.
@fix
Carsten Haitzler (Rasterman) [Mon, 3 Dec 2018 11:46:31 +0000 (11:46 +0000)]
elm - fix config version bump correctly
bump version right and fix
eec7bc458eee333fd7237a3bd43e8c2c884f21ca
properly.
Marcel Hollerbach [Mon, 3 Dec 2018 11:43:53 +0000 (11:43 +0000)]
elm_config: repair configs
Summary:
in
eec7bc458eee333fd7237a3bd43e8c2c884f21ca the epoch offset was edited,
which seems to be wrong, as this caused every single config to be
deleted. This also updates the configs in the elementry base configs
as they have been forgotten.
This brings back the ability to edit the config in elementary_config.
Reviewers: segfaultxavi, devilhorns, ManMower, raster
Reviewed By: raster
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D7403
Carsten Haitzler (Rasterman) [Wed, 28 Nov 2018 12:39:45 +0000 (12:39 +0000)]
efl ui text - check if string exists beofre using it...
don't segv.
Carsten Haitzler (Rasterman) [Thu, 22 Nov 2018 16:59:47 +0000 (16:59 +0000)]
eina+evas cpu - add theoretical SVE support
SVE is a new-ish ARM vector instruction set like neon... but with
wider vectors (and variable vector sizes). this adds the flags and
hwcaps checks.
Carsten Haitzler (Rasterman) [Thu, 22 Nov 2018 16:48:56 +0000 (16:48 +0000)]
elm perf tool - bring one back to efl
expedite is basically dead. because it's out of tree and because it
was ported to eo too early... but it's also not a great tool given it
requires manual addition of engines and can't test elm stuff (complex
widgets).
so this is an elm based performance tool. i've added some tests (taken
from expedite and modified a bit). to get the ball rolling. the idea
is to add all the important core tests (rects, images, text, video
etc.) and then add widget/smart object like tests that go beyond what
expedite did. the problem with these tests is they are dependent on
theme. there isn't really any way around that... but i might
categorize tests in the end.
@feature
Carsten Haitzler (Rasterman) [Thu, 22 Nov 2018 11:45:00 +0000 (11:45 +0000)]
ecore_evas - fix aninmator based frame render ticking to full framerate
so i was seeing ecore evas only rendering every 2nd frame... this is
because it was adding and deleting animatiors every time it rendered
instead of keeping one around as lon as updates where there to render
and then remove it afterwards. this caused nasty timing problems and
thus problems assessing framerate of rendered content etc. etc. ...
not good. this fixes that. this only happened if you only used pure
legacy ecore animators. if you used the efl animator tick events it
worked right.
@fix
Daniel Kolesa [Mon, 3 Dec 2018 09:41:43 +0000 (10:41 +0100)]
eolian tests: revert incorrect change resulting in failed parsing
Commit
98b716d0fa745fe5aa4d110615bf0dd90f695ddb modified this file
for no apparent reason, breaking tests.
Cedric BAIL [Fri, 23 Nov 2018 01:16:09 +0000 (17:16 -0800)]
ecore_con: simplify code by using helper that create future directly.
The new helper help replace call to eina_future_resolved and eina_future_rejected with
a scheduler lookup to just one function call.
Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D7342
Cedric BAIL [Fri, 23 Nov 2018 01:15:29 +0000 (17:15 -0800)]
ecore: simplify code by using helper that build future directly.
The new helper help replace call to eina_future_resolved and eina_future_rejected with
a scheduler lookup to just one function call.
Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D7341
Cedric BAIL [Fri, 23 Nov 2018 01:14:51 +0000 (17:14 -0800)]
eldbus: simplify code by using helper that create future directly.
The new helper help replace call to eina_future_resolved and eina_future_rejected with
a scheduler lookup to just one function call.
Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D7340
Cedric BAIL [Fri, 23 Nov 2018 01:14:16 +0000 (17:14 -0800)]
eio: simplify code by using helper that generate future directly.
The new helper help replace call to eina_future_resolved and eina_future_rejected with
a scheduler lookup to just one function call.
Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D7339
Cedric BAIL [Fri, 23 Nov 2018 01:13:43 +0000 (17:13 -0800)]
eio: we do not need to actually loop explicitely for the loop here.
Actually efl_loop_future_scheduler_get does lookup on the object and its provider
someone that could be a loop provider and find a scheduler. There is no need to
custom look for a loop provider.
Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D7338
Cedric BAIL [Fri, 23 Nov 2018 01:11:54 +0000 (17:11 -0800)]
ecore: add an helper on Efl.Loop_Consumer to build resolved and rejected future more easily.
This make all object that inherit from Efl.Loop_Consumer have an easy ability to create a future
from their link to a loop provider. This way there is no need to further lookup for a scheduler.
This can by applied after the patch series from T7471.
Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D7337
Cedric BAIL [Fri, 23 Nov 2018 00:45:17 +0000 (16:45 -0800)]
elementary: simplify code by using proper helper.
efl_loop_promise_new is a helper function that does automatically figure out an
available scheduler and create a promise from it. Basically replacing the call to
eina_promise_new(efl_loop_future_scheduler_get(o), ...).
Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D7336
Cedric BAIL [Fri, 23 Nov 2018 00:45:03 +0000 (16:45 -0800)]
eldbus: simplify code by using proper helper.
efl_loop_promise_new is a helper function that does automatically figure out an
available scheduler and create a promise from it. Basically replacing the call to
eina_promise_new(efl_loop_future_scheduler_get(o), ...).
Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D7335
Cedric BAIL [Fri, 23 Nov 2018 00:44:37 +0000 (16:44 -0800)]
eio: simplify code by using proper helper.
efl_loop_promise_new is a helper function that does automatically figure out an
available scheduler and create a promise from it. Basically replacing the call to
eina_promise_new(efl_loop_future_scheduler_get(o), ...).
Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D7334
Cedric BAIL [Fri, 23 Nov 2018 00:44:12 +0000 (16:44 -0800)]
ecore_con: simplify code by using proper helper.
efl_loop_promise_new is a helper function that does automatically figure out an
available scheduler and create a promise from it. Basically replacing the call to
eina_promise_new(efl_loop_future_scheduler_get(o), ...).
Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D7333
Lauro Moura [Fri, 30 Nov 2018 21:34:43 +0000 (19:34 -0200)]
eolian-cxx: Add property_def
Summary:
While individual getters and setters are added to the list of methods of
a class, property_def will hold them as a pair.
This will help defining accessors like C#'s where they're grouped.
Also update some eolian-cxx tests that were commented out.
Depends: D7262
Test Plan: run eolian-cxx tests
Reviewers: vitor.sousa, felipealmeida
Reviewed By: vitor.sousa
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D7389
Larry Lira [Thu, 29 Nov 2018 17:11:51 +0000 (15:11 -0200)]
Efl.Ui.List.View: fixed MVVM life-cycle
Fix bugs on Views and Model related with null items and proper ownership and
life-cycle of components.
Configure default theme for default factory on finalize.
Vitor Sousa [Tue, 6 Nov 2018 13:23:21 +0000 (11:23 -0200)]
elementary: rework Efl.Ui.Layout boolean signal-connection to Models
Add new feature to specify signal connection to boolean properties of Models.
This also fix some '%v' substitution problems.
Parsing EINA_VALUE_TYPE_BOOL as boolean in Efl.Ui.Layout signal updates from
Models (instead of EINA_VALUE_TYPE_UCHAR). UCHAR no longer has special handling
and falls to the general result of eina_value_to_string() as other types do.
Use EINA_VALUE_TYPE_BOOL instead of EINA_VALUE_TYPE_UCHAR to signal selection on
click events to the Model.
Update examples to make usage of the new property connection feature in order to
model selection of items on Views.
Stefan Schmidt [Fri, 30 Nov 2018 14:30:01 +0000 (15:30 +0100)]
Revert "eina: add locale-independent eina_convert_strtod_c function"
This reverts commit
bef1c5cc433b89add2cf0292e1098e1bd74ac640.
The commit breaks the build on macos. I gave it soem time to get fixed
up quickly, but its late Friday night in Korea now and this is unlikely
to get fixed until Monday. Revert here until fixed.
./src/lib/eina/eina_private.h:158:1: error: unknown type name 'locale_t'
https://travis-ci.org/Enlightenment/efl/jobs/
461790674
Daniel Kolesa [Fri, 30 Nov 2018 13:35:51 +0000 (14:35 +0100)]
eolian_aux: rename tests classes to avoid autotools conflict
Having these files would result in eolian cxx tests failing when
building using autotools, as eolian generators by default include
entire src directory and eolian cxx already had classes a/b/c.
In an ideal case this should not happen as eolian cxx should not
scan tests that are not its own, and it already behaves correctly
under meson but there is no good way to fix it for autotools, so
just rename as a workaround.
Daniel Kolesa [Fri, 30 Nov 2018 13:12:15 +0000 (14:12 +0100)]
eolian: add optional warning for regular classes in ext list
As per T7240, we intend to disallow multi-class inheritance in Eo
at some point. In order to achieve that, it is necessary to find
out which classes still use multi-class inheritance and change
them accordingly.
Eo multi-class inheritance is not actually multi-class, as doing
so will simply treat all the other classes as interfaces, which
is misleading and poor design on its own.
By setting EOLIAN_CLASS_REGULAR_AS_EXT_WARN environment variable,
Eolian will now warn about such classes, allowing them to be
fixed.
Closes T7365.
Youngbok Shin [Wed, 22 Aug 2018 01:53:11 +0000 (01:53 +0000)]
eina: add locale-independent eina_convert_strtod_c function
strtod's behavior is changed by system locale.
http://man7.org/linux/man-pages/man3/strtod.3.html
https://en.wikipedia.org/wiki/Decimal_separator
Because of this, strtod(0.5) returns 0.0 in some locales.
When a given value string is locale-independent, strtod has to be
replaced to eina_convert_strtod_c function.
Internally, it calls strtod_l function with "C" locale.
@feature
Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Reviewed-by: Vincent Torri <vincent.torri@gmail.com>
Differential Revision: https://phab.enlightenment.org/D6644
Shinwoo Kim [Thu, 23 Aug 2018 05:56:58 +0000 (05:56 +0000)]
evas cache image: compare with cached image file
As cache2 knows cached image could be not matched even though
hash key is not different.
Please refer to the following comment of evas_cache2_image_open.
/* image we found doesn't match what's on disk (stat info wise)
* so dirty the active cache entry so we never find it again. this
* also implicitly guarantees that we only have 1 active copy
* of an image at a given key. we wither find it and keep re-reffing
* it or we dirty it and get it out */
The hash key is created base on the image file address.
If the image file address to find does not equal cached image file address
then it means that the cached image is no longer valid.
This case could happen with the following step.
(1) Call evas_object_image_memfile_set with content data A
(2) Call evas_object_image_memfile_set with content data B
(3) Add timer with short time (ex: 0.01 sec)
(4) Delete A image, and add A image in timer callback
(5) Delete B image, and add B image in timer callback
Sometimes you could see image of A from the B image, because newly created
image at step 5 has same address of setp 1.
Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D6870
Vitor Sousa [Tue, 6 Nov 2018 12:42:36 +0000 (10:42 -0200)]
ecore: fix bugs from composite models
Fix type error while getting boolean property from Efl.Model_Composite_Boolean.
Fix properties_get methods for all composite models.
Now properly call property.changed events when it is needed.
Use EINA_VALUE_TYPE_BOOL instead of EINA_VALUE_TYPE_UCHAR.
Remove some memory leaks.
Vitor Sousa [Tue, 6 Nov 2018 12:42:11 +0000 (10:42 -0200)]
ecore: forward internal Efl.Model events to Efl.Model.Composite
Vitor Sousa [Tue, 6 Nov 2018 12:10:13 +0000 (10:10 -0200)]
ecore: fix efl_model_container_private.h include guards
Lauro Moura [Thu, 29 Nov 2018 23:04:37 +0000 (21:04 -0200)]
csharp: Change to new class API.
Summary:
As discussed in T7204:
- Eo Interfaces/mixins -> C# Interfaces with concrete class
implementations
- Eo Regular/Abstracts -> Proper C# classes
- Added some new generators and helper methods.
- Refactored the class generator, splitting into helper methods
Eo handles now are stored only in the "root" class in any given
inheritance tree (generally, Efl.Object), and accessible to each child.
Methods also are defined in a single place instead of repeatedly
generated in everyfile, reducing the size of the generated .dll from
30MB to around 4.5MB.
Mixins are generated as C# interfaces but any regular class it inherits
from is lost, as we can't have interfaces inheriting from regular
classes. This will be dealt with in a later commit.
Summary of API Changes:
- Merged Inherit/Concrete classes. (These suffixes disappear from
regular classes).
- Interface still have implementations with 'Concrete' suffix for when
they are returned from methods.
- Removed 'I' from interface names.
- Removed interfaces for regular/abstract Eo classes.
- Concrete classes for interfaces/mixins hold the event argument struct.
- Removed '_' from classes, enums, structs, etc, as indicated in C#
naming conventions.
- Namespaces are now Camel.Cased.
- Renamed IWrapper's raw_handle/raw_klass to NativeHandle/NativeClass
Also renamed the test classes as after the namespace change, the
test namespace Test can conflict with the helper Test namespace.
(And use more meaningful names than Test.Testing...)
Also Fixes T7336 by removing a deprecated example and adding
efl_loop_timer_example to build system.
Fixes T7451 by hiding the class_get DllImports and renaming the IWrapper
fields. The native handlers are used in the manual binding.
Still need to work:
- As there are still some events names clashing (e.g. Efl.Ui.Bg with "resize"
from Efl.Gfx.Entity and Efl.Gfx.Image), Events are currently declared on
the interface and implemented "namespaced" in the classes,
requiring the cast to the interface to access the event.
- The Mixin Conundrum. Mixin inheritance will be dealt in a future
commit.
Depends on D7260
Reviewers: segfaultxavi, vitor.sousa, felipealmeida, Jaehyun_Cho
Reviewed By: vitor.sousa
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T7451, T7336
Differential Revision: https://phab.enlightenment.org/D7262
Christopher Michael [Thu, 29 Nov 2018 19:09:09 +0000 (14:09 -0500)]
elementary: Support using no frame object
Summary:
Creation of the frame object can lead to significant delays in window
creation time on limited-power devices (watches, mobile, tv, etc).
This patch allows setting an environment variable and config value in
order to completely skip frame object creation.
This shaves about 50ms from startup on an i7 8600k, so should be more
substantial a saves on limited-power devices.
Reviewers: kimcinoo, ManMower
Reviewed By: ManMower
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D7305
Daniel Kolesa [Sun, 4 Nov 2018 17:56:54 +0000 (18:56 +0100)]
eolian_aux: add initial eolian_aux APIs
eolian_aux is a set of auxiliary APIs for eolian that build on top
of the existing eolian APIs but do not belong in the main library.
Yeongjong Lee [Thu, 29 Nov 2018 12:05:22 +0000 (07:05 -0500)]
eldbus: add brackets
Summary: assignment expression is always true.
Test Plan: make
Reviewers: cedric, devilhorns
Reviewed By: devilhorns
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D7357
Wonki Kim [Tue, 27 Nov 2018 04:49:27 +0000 (04:49 +0000)]
elm_config: fix elm_config_save not to wake idle processes up
there is a eio_monitor which is tracking on config directory.
and that is the reason why idle processes get waken up once some process call elm_config_save().
this patch fix the function not to wake idle processes up as it was before.
Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D7354
Wonki Kim [Sat, 24 Nov 2018 03:25:25 +0000 (03:25 +0000)]
elm_config: replace ecore_file_mv with ecore_file_cp
eio_monitor could miss what it is tracking on
in case of calling ecore_file_mv on the tracked file.
so that this patch replace move with copy.
Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D7352
Wonki Kim [Fri, 23 Nov 2018 11:12:01 +0000 (11:12 +0000)]
elm_config: remove profile name reading logic from data dir
Nothing writes any profile name on profile.cfg inside data dir
This patch removes the logic.
Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D7351
Marcel Hollerbach [Sun, 25 Nov 2018 11:46:35 +0000 (12:46 +0100)]
ecore_evas_buffer: register it in ecore_evas_input
this is done in order to make ecore_event_evas_key_down work with this.
The function can be used to simulate interactions with a efl_ui_win. If
this is not added, then the user of ecore_event_evas_key_down needs to
differentiate between buffer engines and the rest of the engines.
Differential Revision: https://phab.enlightenment.org/D7361
Dave Andreoli [Wed, 28 Nov 2018 20:52:22 +0000 (21:52 +0100)]
Fixed the docu generator for recent eolian changes
I also uploaded a fresh generated doc tree at:
http://www.gurumeditation.it/dokuwiki
Dave Andreoli [Wed, 28 Nov 2018 20:39:51 +0000 (21:39 +0100)]
Pyolian: fixes for recent eolian changes
Dave Andreoli [Wed, 28 Nov 2018 19:16:19 +0000 (20:16 +0100)]
Pyolian tests: 2 small improvements
1. properly use unittest infra to skip tests, otherwise we will
forgot the commented tests
2. split the new name collision test (failing, but really cool)
so it have a proper name and the results are more readable