platform/upstream/efl.git
5 years agodocfx: Exclude *NativeInherit classes from docs
Xavi Artigas [Fri, 1 Mar 2019 15:45:27 +0000 (16:45 +0100)]
docfx: Exclude *NativeInherit classes from docs

These classes need to be public so new user-created classes can inherit
from them, but they have the same content as the regular classes.
Therefore there is no need to pollute the documentation with duplicated
elements.

5 years agoeo: obtaining the Eo object attached to an Eina_Value is actually a const operation...
Cedric BAIL [Fri, 1 Mar 2019 15:23:40 +0000 (10:23 -0500)]
eo: obtaining the Eo object attached to an Eina_Value is actually a const operation on the Eina_Value.

Summary: Depends on D8077

Reviewers: segfaultxavi, zmike

Reviewed By: segfaultxavi, zmike

Subscribers: #reviewers, #committers

Tags: #efl

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

5 years agoelementary: fix string usage in hoversel example.
Cedric BAIL [Fri, 1 Mar 2019 15:23:32 +0000 (10:23 -0500)]
elementary: fix string usage in hoversel example.

Summary: Depends on D8073

Reviewers: zmike

Reviewed By: zmike

Subscribers: #reviewers, #committers

Tags: #efl

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

5 years agoelementary: fix performance example warning by using Eina_Slstr instead of hardcoded...
Cedric BAIL [Fri, 1 Mar 2019 15:23:24 +0000 (10:23 -0500)]
elementary: fix performance example warning by using Eina_Slstr instead of hardcoded buffer.

Reviewers: zmike

Reviewed By: zmike

Subscribers: #reviewers, #committers

Tags: #efl

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

5 years agoelementary: fix web example to define _GNU_SOURCE only if needed.
Cedric BAIL [Fri, 1 Mar 2019 13:59:19 +0000 (08:59 -0500)]
elementary: fix web example to define _GNU_SOURCE only if needed.

Summary: Depends on D8076

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: #reviewers, #committers

Tags: #efl

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

5 years agoelementary: fix combobox example to not duplicate the definition of _GNU_SOURCE.
Cedric BAIL [Fri, 1 Mar 2019 13:58:59 +0000 (08:58 -0500)]
elementary: fix combobox example to not duplicate the definition of _GNU_SOURCE.

Summary: Depends on D8075

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: #reviewers, #committers

Tags: #efl

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

5 years agoelementary: remove badly named and unused array.
Cedric BAIL [Fri, 1 Mar 2019 13:58:36 +0000 (08:58 -0500)]
elementary: remove badly named and unused array.

Summary: Depends on D8074

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: #reviewers, #committers

Tags: #efl

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

5 years agoelementary: fix web example warning from duplicated _GNU_SOURCE.
Cedric BAIL [Fri, 1 Mar 2019 13:57:50 +0000 (08:57 -0500)]
elementary: fix web example warning from duplicated _GNU_SOURCE.

Summary: Depends on D8072

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: #reviewers, #committers

Tags: #efl

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

5 years agoelementary: fixup warning in location example.
Cedric BAIL [Fri, 1 Mar 2019 13:57:23 +0000 (08:57 -0500)]
elementary: fixup warning in location example.

Summary: Depends on D8071

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: #reviewers, #committers

Tags: #efl

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

5 years agoelementary: fix Evas3D examples warning due to double define.
Cedric BAIL [Fri, 1 Mar 2019 13:56:16 +0000 (08:56 -0500)]
elementary: fix Evas3D examples warning due to double define.

Summary: Depends on D8070

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: #reviewers, #committers

Tags: #efl

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

5 years agomeson - make evas loader confg install shell be binsh compliant
Carsten Haitzler (Rasterman) [Fri, 1 Mar 2019 12:40:01 +0000 (12:40 +0000)]
meson - make evas loader confg install shell be binsh compliant

this shell required bash. not good for example if on some unix systems
like bsd that dont have bash... by defauklt. so make it /bin/sh
compliant shell.

5 years agomeson - fix some more fbsd building and make notes on broken checks
Carsten Haitzler (Rasterman) [Fri, 1 Mar 2019 12:06:26 +0000 (12:06 +0000)]
meson - fix some more fbsd building and make notes on broken checks

i found the header checks are logically broken. i was about to replace
with a cc.compiles() check but that requires that every check also
have full working code not just a symbol to check the existence form
so for now just fix the HAVE_NOTIFY_KEVENT define that makes eio build
properly again on bsd and note the broken state for a future rethink
on how these checks are done.

5 years agoefl po - change intl.h check to use compiles so cflags it respected
Carsten Haitzler (Rasterman) [Fri, 1 Mar 2019 10:54:27 +0000 (10:54 +0000)]
efl po - change intl.h check to use compiles so cflags it respected

this fixes building on fbsd... (where CFLAGS will now work to find
libintl.h)

5 years agoefl core env - remove unused envrion declaration
Carsten Haitzler (Rasterman) [Fri, 1 Mar 2019 10:08:17 +0000 (10:08 +0000)]
efl core env - remove unused envrion declaration

5 years agoefl exe - fix indent of hash compiler directives
Carsten Haitzler (Rasterman) [Fri, 1 Mar 2019 10:06:43 +0000 (10:06 +0000)]
efl exe - fix indent of hash compiler directives

5 years agoefl proc env - add extern environ - missing from src file
Carsten Haitzler (Rasterman) [Fri, 1 Mar 2019 10:05:55 +0000 (10:05 +0000)]
efl proc env - add extern environ - missing from src file

5 years agoecore - remove environ lock that isn't used anymore
Carsten Haitzler (Rasterman) [Fri, 1 Mar 2019 10:03:48 +0000 (10:03 +0000)]
ecore - remove environ lock that isn't used anymore

bu5hm4n forgot to remove this when doing his env class changes -
remove it as its unused now.

5 years agoecore: remove Efl.Container_Model_Item.
Cedric BAIL [Fri, 22 Feb 2019 01:58:47 +0000 (17:58 -0800)]
ecore: remove Efl.Container_Model_Item.

This also enable to create a tree of Container_Model instead of just one level.

Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D8046

5 years agoefl-csharp: Fix variable generation for Roslyn
Lauro Moura [Thu, 28 Feb 2019 20:15:48 +0000 (17:15 -0300)]
efl-csharp: Fix variable generation for Roslyn

Summary:
Mono's old compiler (mcs) accepts LL as suffix for longs while Roslyn
(csc) is strict, allowing only a single L.

Test Plan: Run tests

Reviewers: vitor.sousa, felipealmeida

Reviewed By: vitor.sousa

Subscribers: cedric, #reviewers, #committers

Tags: #efl

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

5 years agoecore: prevent duplication of children for Efl.Composite_Model and enable dummy object.
Cedric BAIL [Thu, 28 Feb 2019 02:17:30 +0000 (18:17 -0800)]
ecore: prevent duplication of children for Efl.Composite_Model and enable dummy object.

This patch allow Efl.Composite_Model to return always the same object for the same index.
This way, it make it easier for the Model to always be in sync even if there is multiple
user at any time. The support for dummy object allow the Composite_Model to host more
object than what the source model provide. This dummy model will only have the property
of the Composite_Model and none of the Source model ofcourse.

Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D8045

5 years agoeolian: remove support for inlist/inarray
Daniel Kolesa [Thu, 28 Feb 2019 19:25:51 +0000 (20:25 +0100)]
eolian: remove support for inlist/inarray

This feature was kind of ill-conceived and never worked properly.
Since there isn't enough time to make it work right at this point
and there are no users of it in the API, remove it for now.

It might get added in the next release cycle, in a proper form.

@feature

5 years agoefl.access.object: iconified -> minimized
Mike Blumenkrantz [Thu, 28 Feb 2019 15:50:20 +0000 (16:50 +0100)]
efl.access.object: iconified -> minimized

Summary:
be consistent with efl.ui.win usage
Depends on D8044

Reviewers: segfaultxavi

Reviewed By: segfaultxavi

Subscribers: cedric, #reviewers, #committers

Tags: #efl_api

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

5 years agoefl.ui.win: iconified -> minimized
Wonki Kim [Fri, 8 Mar 2019 08:44:37 +0000 (17:44 +0900)]
efl.ui.win: iconified -> minimized

Summary:
minimize is a commonly used term in the current year. iconify is not.

ref T7511

Reviewers: segfaultxavi

Reviewed By: segfaultxavi

Subscribers: segfaultxavi, cedric, #reviewers, #committers

Tags: #efl_api

Maniphest Tasks: T7511

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

Change-Id: I976a7337722cb2c75b29655e86b60a27ec0182e0

5 years agoeolian_mono: Generate proper doc refs for Constants
Xavi Artigas [Thu, 28 Feb 2019 09:38:47 +0000 (10:38 +0100)]
eolian_mono: Generate proper doc refs for Constants

Summary:
Support for global constant variables has been recently added to the C# bindings.
This patch fixes doc references so they use the proper name.
This brings the mono doc warnings from 71 down to 29.

Depends on D8048

Test Plan:
Just build and see less doc warnings when building the C# bindings.
Also, doc refs to constants are links now.

Reviewers: lauromoura, vitor.sousa

Reviewed By: lauromoura

Subscribers: cedric, #reviewers, #committers

Tags: #efl

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

5 years agointerfaces: don't inherit efl.ui.layout anymore
Wonki Kim [Fri, 8 Mar 2019 08:16:56 +0000 (17:16 +0900)]
interfaces: don't inherit efl.ui.layout anymore

Summary: this removes efl.file from the class hierarchy

Reviewers: segfaultxavi

Reviewed By: segfaultxavi

Subscribers: segfaultxavi, cedric, #reviewers, #committers

Tags: #efl_api

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

Change-Id: I765414200f78107698a5511f2de1fee7725a1755

5 years agoefl-csharp: Remove generated inlist/inarray support
Lauro Moura [Thu, 28 Feb 2019 15:12:39 +0000 (12:12 -0300)]
efl-csharp: Remove generated inlist/inarray support

Summary: To be added again in a later release after rework in Eolian

Reviewers: q66, vitor.sousa, felipealmeida

Reviewed By: q66

Subscribers: cedric, #reviewers, #committers

Tags: #efl

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

5 years agoefl_csharp: add constant variable generation to C# binding (constants)
Vitor Sousa [Thu, 28 Feb 2019 14:09:38 +0000 (11:09 -0300)]
efl_csharp: add constant variable generation to C# binding (constants)

Reviewers: lauromoura, q66, bu5hm4n, zmike, cedric, felipealmeida, segfaultxavi

Reviewed By: segfaultxavi

Subscribers: segfaultxavi, cedric, #reviewers, #committers

Tags: #efl_language_bindings

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

5 years agospec: bump up to 1.22.0
Wonki Kim [Fri, 8 Mar 2019 10:07:39 +0000 (19:07 +0900)]
spec: bump up to 1.22.0

Change-Id: I043b2604718138387acc0a765d0ae0dcf5fb59f5
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
5 years agorelease: Update NEWS and bump version for 1.22.0-alpha1 release
Stefan Schmidt [Thu, 28 Feb 2019 14:04:09 +0000 (15:04 +0100)]
release: Update NEWS and bump version for 1.22.0-alpha1 release

5 years agoefl.ui.widget: mark scroll_* methods @beta
Mike Blumenkrantz [Thu, 28 Feb 2019 14:48:27 +0000 (23:48 +0900)]
efl.ui.widget: mark scroll_* methods @beta

Summary:
these are questionable at best here

ref T7553, T7714

Reviewers: woohyun

Reviewed By: woohyun

Subscribers: cedric, #reviewers, #committers

Tags: #efl_api

Maniphest Tasks: T7714, T7553

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

5 years agoelua: fix typo in eolian bindings
Daniel Kolesa [Thu, 28 Feb 2019 13:56:21 +0000 (14:56 +0100)]
elua: fix typo in eolian bindings

5 years agoelm_popup: remove on_show_region_set call
Marcel Hollerbach [Thu, 28 Feb 2019 13:48:37 +0000 (08:48 -0500)]
elm_popup: remove on_show_region_set call

Summary:
Its hard to say why removing such calls are fixing a bug like T7274.
However, it appears that this call causes the min size calculation of
evas to fall apart. This also removes a workarround introduced earlier
to fix this.

This fixes T7274

Reviewers: zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7274

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

5 years agoEina: implement strtod in C locale and remove linkl against msvcr100.
Vincent Torri [Thu, 28 Feb 2019 12:21:56 +0000 (13:21 +0100)]
Eina: implement strtod in C locale and remove linkl against msvcr100.

Summary:
This fixes compilation on Windows

More precisely edje_cc could not compile emotion edc files, so it was a runtime problem
because of msvcr100 link.

Add more tests than before

Test Plan: compilation

Reviewers: raster

Subscribers: zmike, stefan_schmidt, cedric, #reviewers, #committers

Tags: #efl

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

5 years agoeina: Declare eina_config.h install dir
Lauro Moura [Tue, 26 Feb 2019 23:21:15 +0000 (23:21 +0000)]
eina: Declare eina_config.h install dir

Meson from git complains if `install` is set but not `install_dir`.

Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de>
Differential Revision: https://phab.enlightenment.org/D8036

5 years agobuild: ensure we remove the newly generated *eo.legacy.c files for distcheck
Stefan Schmidt [Wed, 27 Feb 2019 10:26:26 +0000 (11:26 +0100)]
build: ensure we remove the newly generated *eo.legacy.c files for distcheck

Eolain now generates extra files for the C legacy implementations and
distcheck has trouble with them not being removed by the build system.

Going to handle lists of them in all the different makefiles (elm,
ecore, emotion, etc) would be a lot extra work. Thus I will just make
sure the get removed during our clean-local rule.

Given 1.22 is the last release we will use autotools for I think this is
a fair compromise to get this fixed.

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

5 years agoevas gl - swap with damage - look for KHR extn string too
Carsten Haitzler (Rasterman) [Wed, 27 Feb 2019 15:49:19 +0000 (15:49 +0000)]
evas gl - swap with damage - look for KHR extn string too

as per shortlog - look for KHR in addition to EXT for swap with damage
region extn detection.

5 years agoeolian: Fix struct database registration.
Lauro Moura [Thu, 28 Feb 2019 10:47:37 +0000 (11:47 +0100)]
eolian: Fix struct database registration.

Summary:
It was mistankely swapping regular and inlist structs when registering
after parsing, causing functions like eolian_state_structs_by_file_get
to return wrong data, breaking C# bindings.

Also added a simple test.

Reviewers: q66, bu5hm4n, zmike, cedric, felipealmeida, segfaultxavi

Reviewed By: segfaultxavi

Subscribers: segfaultxavi, cedric, #reviewers, #committers

Tags: #efl

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

5 years agoeina: safe guard against macro expension error in EINA_*_EQ
Stefan Schmidt [Thu, 28 Feb 2019 09:08:23 +0000 (10:08 +0100)]
eina: safe guard against macro expension error in EINA_*_EQ

Make sure we are use doubel also also in things like EINA_DBL_EQ(a-b, x+y).
Thanks to Vicent for reporting and Xavi for giving me context.

Reviewed-by: Vincent Torri <vincent.torri@gmail.com>
Differential Revision: https://phab.enlightenment.org/D8049

5 years agoeolian: properly skip the struct keyword in inlist structs
Daniel Kolesa [Thu, 28 Feb 2019 00:08:27 +0000 (01:08 +0100)]
eolian: properly skip the struct keyword in inlist structs

This was missed as a part of an incorrect merge.

5 years agoeolian: add support for inlist structs
Daniel Kolesa [Tue, 29 Jan 2019 14:46:05 +0000 (15:46 +0100)]
eolian: add support for inlist structs

This adds support for inlist structs, a special type of struct
that can only be used with inlists. This differs from regular
structs in a couple ways:

1) They are stored separately. Just like structs, enums, aliases
   have their own storage, so do inlist structs.
2) They can't be @extern, nor they can be opaque.
3) They are their own type of typedecl.
4) When they contain only one field, this field must be a value
   type always, cannot be a pointer.

Like regular structs, they can have arbitrary fields, and they
can have a pre-set free function via @free().

In C, the inlist structs will be generated exactly like ordinary
ones, except they will have EINA_INLIST before the first field.
Other binding generators can deal with them as they wish, for
example to provide high level interfaces to them.

This does not yet do the plumbing necessary to hook these into
the type system, nor it adds generator support.

@feature

5 years agotests: add test for elm_layout_text_set
Mike Blumenkrantz [Wed, 27 Feb 2019 21:04:07 +0000 (16:04 -0500)]
tests: add test for elm_layout_text_set

Summary: ref T6931

Reviewers: stefan_schmidt, cedric

Reviewed By: cedric

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T6931

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

5 years agoefl_ui_layout: check part existence in text_set
Mike Blumenkrantz [Wed, 27 Feb 2019 21:03:50 +0000 (16:03 -0500)]
efl_ui_layout: check part existence in text_set

Summary: fix T6931

Reviewers: bu5hm4n, cedric, segfaultxavi

Reviewed By: bu5hm4n

Subscribers: #reviewers, #committers

Tags: #efl_widgets

Maniphest Tasks: T6931

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

5 years agoefl_container: remove content_remove
Yeongjong Lee [Tue, 12 Feb 2019 11:55:11 +0000 (11:55 +0000)]
efl_container: remove content_remove

Most of classes implements Efl.Container.content_remove are just calling "unpack"
except of "Efl.Canvas.Layout" and "Efl.Ui.Layout".
This patch remove the asymmetrical API and add content_remove API of
"Efl.Canvas.Layout" and "Efl.Ui.Layout" that child can be remove without efl_part
APIs.

ref T7576

Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D7913

5 years agomeson: modify install pathes for modules of ecore_buffer
Wonki Kim [Thu, 21 Feb 2019 09:50:18 +0000 (09:50 +0000)]
meson: modify install pathes for modules of ecore_buffer

there are differences between meson and autotools.
autotools installs them under ${libdir}/ecore_buffer/modules/module/version/ as module.so

Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de>
Differential Revision: https://phab.enlightenment.org/D7837

5 years agoefl_canvas_layout_part_external: implement missing functions
Marcel Hollerbach [Wed, 27 Feb 2019 19:57:03 +0000 (14:57 -0500)]
efl_canvas_layout_part_external: implement missing functions

Summary:
this just prints a error, manipulating the content here is not
permitted. As it is created by edje externals, which are owned by edje.

ref T5719
Depends on D7757

Reviewers: cedric, zmike, segfaultxavi

Reviewed By: zmike

Subscribers: q66, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T5719

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

5 years agotest/ui_table: add unittest for Efl.Ui.Table
Yeongjong Lee [Wed, 27 Feb 2019 19:45:34 +0000 (14:45 -0500)]
test/ui_table: add unittest for Efl.Ui.Table

Summary:
{F3627728}
{F3627729}
ref T5487

Depends on D7892

Test Plan: make check

Reviewers: jpeg, Jaehyun_Cho, zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T5487

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

5 years agoui.table: implement homogeneous mode
Yeongjong Lee [Wed, 27 Feb 2019 19:45:32 +0000 (14:45 -0500)]
ui.table: implement homogeneous mode

Summary:
Homogeneous mode means children are of the same weight and of the same min size
which is determined by maximum min size of cells.

Depends on D7841

Reviewers: Jaehyun_Cho, jpeg, zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

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

5 years agoefl_ui_table: refactor layout_update
Yeongjong Lee [Wed, 27 Feb 2019 19:45:27 +0000 (14:45 -0500)]
efl_ui_table: refactor layout_update

Summary:
There are three reasons to refactor layout_update of Efl.Ui.Table.

=== 1. Inconsistency of hint behavior. ===

Some hint property is often not respected. for example, hint_min is ignored in
Table when it is used with hint_max even if hint_weight is 0. hint_aspect is
always ignored in Table.
The ambiguous behavior make it hard to layout widgets in container. of course,
we documented 'it's just a hint that should be used whenever appropriate.' but i
don't think it means that 'hint API is sometimes respected and we also don't
know when that API is respected.'. at least there is rule for consistent
behavior and we should be able to explain why a widget is located here and
why some hint property is ignored.

So, i'll suggest priority of hint property. this refactoring support following
priority.
1) HintMin
2) HintMin + HintAspect
3) HintMargin
4) HintMax
5) HintAspect
6) HintWeight, HintFill
7) HintAlign

ref T5487
Please check with unit test D7840

=== 2. To Enhance usability. ===

Efl.Ui.Table is using homogeneous mode of evas_table which have same columns,
rows size. but i think a table can generally change columns, rows size and
we can provide homogeneous mode option.(D7892)

In this patch
 - table columns(rows) min size is decided by maximum size among its cells
width(height) min size.
 - table columns(rows) weight is decided by maximum weight among its cells
horizontal(vertical) weight.

Also, pack_align is implemented. it is used if no item has a weight.

=== 3. To remove internal evas_table. ===

This is low priority work. however, i guess is is necessary for lightweight
container widget. there are two size_hint callback to adjust table size and
efl_canvas_group_calculate is called twice when it is resized.
This patch is first step to remove internal evas_table.

Test Plan:
make check
elementary_test -to 'efl.ui.table'

Reviewers: jpeg, Jaehyun_Cho, zmike

Reviewed By: zmike

Subscribers: zmike, cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T5487

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

5 years agoTODO: squash into efl_ui_widget: child_can_focus is not needed anymore
Wonki Kim [Fri, 8 Mar 2019 08:04:26 +0000 (17:04 +0900)]
TODO: squash into efl_ui_widget: child_can_focus is not needed anymore

Change-Id: Iab04ccecd1c4903996c2db71fefecf939ae2c4ee

5 years agoefl_ui_widget: child_can_focus is not needed anymore
Marcel Hollerbach [Wed, 27 Feb 2019 19:01:16 +0000 (14:01 -0500)]
efl_ui_widget: child_can_focus is not needed anymore

summary_:
pd->logical.child_count is a counter where focusable children do
register themself in the parent if they can be focused or not. With this
we don't need the updating of this internal flag nor the flag itself anymore.

Depends on D8027

Reviewers: woohyun, cedric, Jaehyun_Cho, zmike, segfaultxavi

Reviewed By: segfaultxavi

Subscribers: #reviewers, #committers

Tags: #efl

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D8030

5 years agoefl_ui_widget: make interest_region_mode legacy
Marcel Hollerbach [Wed, 27 Feb 2019 19:01:05 +0000 (14:01 -0500)]
efl_ui_widget: make interest_region_mode legacy

summary_:
interest_region_mode makes it possible, that interest_region_get either
returns WIDGET or ITEM coordinates. However, efl-api does not have
items. That means, this can be legacy.

ref T7553

Depends on D8026

Reviewers: woohyun, cedric, Jaehyun_Cho, zmike, segfaultxavi

Reviewed By: segfaultxavi

Subscribers: #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7553

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D8027

5 years agodisable a override method for tizen only
Wonki Kim [Fri, 8 Mar 2019 08:17:19 +0000 (17:17 +0900)]
disable a override method for tizen only

this aptch disables a override method for tizen only.
because the method has been removed.

Change-Id: I07043f7b789c6c17a5e3d46b365226a48ef3352d

5 years agoefl_ui_widget: move show_region to legacy
Marcel Hollerbach [Wed, 27 Feb 2019 19:00:52 +0000 (14:00 -0500)]
efl_ui_widget: move show_region to legacy

summary_:
show_region is simular to focus_region. However, it builds up on setting
custom functions per setter to the widget, which are then executed. This
can be solved better by overwriting the interest_region getter, and
using a function like elm_widget_focus_region_show (This function still
needs to find its place in the eo api).

ref T7553

Depends on D8025

Reviewers: woohyun, cedric, Jaehyun_Cho, zmike, segfaultxavi

Reviewed By: segfaultxavi

Subscribers: #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7553

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D8026

5 years agoTODO: focus_highlight_style
Wonki Kim [Fri, 8 Mar 2019 08:44:45 +0000 (17:44 +0900)]
TODO: focus_highlight_style

Change-Id: I8d6cb29d29e8ee61905582b8499f35fa962ef36c

5 years agoefl_ui_widget: move focus_highlight to the window
Marcel Hollerbach [Wed, 27 Feb 2019 19:00:39 +0000 (14:00 -0500)]
efl_ui_widget: move focus_highlight to the window

summary_:
the widget implementation just redirected calls from efl_ui_widget to
efl_ui_win. Which makes the properties unncessesary on the widget. This
commit moves them now to the window.

The legacy implementation of the window can now go away, as this is
taken care of by eolian directly.

ref T7553

Depends on D8017

Reviewers: woohyun

Reviewed By: woohyun

Subscribers: segfaultxavi, cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7553

Reviewed-by: WooHyun Jung <woohyun0705@gmail.com>
Differential Revision: https://phab.enlightenment.org/D8025

5 years agoefl_ui_widget: redo disable handling
Mike Blumenkrantz [Wed, 27 Feb 2019 19:00:14 +0000 (14:00 -0500)]
efl_ui_widget: redo disable handling

before the disable property was a bit weird. Setting something to
disabled=true will disable all children of the widget that is changed.
However, only the update function of the children will get the false flag,
not the flag itself. Which means, to query the real disabled state, we
need to walk up the parent relations.

With this patch, every change to disabled will go through the disabled
property, which mean, a implementor can just overwrite the disabled
property, and adjust its internal state there. Just be carefull, a set
to disabled=true still might result in disabled=false. This makes the
function on_disable_update unneccesary. Which also cleans up the
Efl.Ui.Widget class.

ref T7553

Depends on D8016

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D8017

5 years agoelementary: remove unnecessessary disabled setter
Marcel Hollerbach [Wed, 27 Feb 2019 18:52:37 +0000 (13:52 -0500)]
elementary: remove unnecessessary disabled setter

summary_:
those objects are disabled anyways, because disabled is applied to the
objects in a tree. Which means, subobjects of a widget are disabled
whenever the widget is disabled anyways.

Depends on D8015

Reviewers: cedric, zmike, segfaultxavi, stefan_schmidt

Reviewed By: segfaultxavi

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D8016

5 years agoefl_ui_widget: introduce a new API
Marcel Hollerbach [Wed, 27 Feb 2019 18:29:08 +0000 (13:29 -0500)]
efl_ui_widget: introduce a new API

Summary:
this new API can be used to get a easy to use iterator, to iterate
through all the children of a specific widget.

ref T7553

Reviewers: stefan_schmidt, zmike, cedric, segfaultxavi

Reviewed By: segfaultxavi

Subscribers: woohyun, cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7553

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

5 years agoefl.canvas.object: clip -> clipper && clipees -> clipped_objects
Mike Blumenkrantz [Wed, 27 Feb 2019 18:17:37 +0000 (13:17 -0500)]
efl.canvas.object: clip -> clipper && clipees -> clipped_objects

Summary:
also clipees_has -> clipped_objects_count

ref T7555

Depends on D8039

Reviewers: segfaultxavi

Reviewed By: segfaultxavi

Subscribers: segfaultxavi, cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7555

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

5 years agoefl.file_save: rework save flags
Mike Blumenkrantz [Wed, 27 Feb 2019 18:17:35 +0000 (13:17 -0500)]
efl.file_save: rework save flags

Summary:
instead of passing a string which requires reading docs to know which
arbitrary string key=value sets can be passed, use an extensible struct
which contains more easily referenced values

ref T7672

Depends on D8035

Reviewers: segfaultxavi

Reviewed By: segfaultxavi

Subscribers: segfaultxavi, cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7672

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

5 years agoefl.canvas.group: group_member_del -> group_member_remove
Mike Blumenkrantz [Wed, 27 Feb 2019 18:17:28 +0000 (13:17 -0500)]
efl.canvas.group: group_member_del -> group_member_remove

Summary:
api naming in efl uses 'del' when deleting an object and 'remove' when
removing something from an object

ref T7554

Depends on D8034

Reviewers: segfaultxavi, bu5hm4n

Reviewed By: segfaultxavi

Subscribers: cedric, #reviewers, #committers

Tags: #efl_api

Maniphest Tasks: T7554

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

5 years agoefl.canvas.group: add events for member add/remove
Mike Blumenkrantz [Wed, 27 Feb 2019 18:17:22 +0000 (13:17 -0500)]
efl.canvas.group: add events for member add/remove

Summary:
ref T7554

Depends on D8032

Reviewers: segfaultxavi, bu5hm4n

Reviewed By: segfaultxavi

Subscribers: cedric, #reviewers, #committers

Tags: #efl_api

Maniphest Tasks: T7554

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

5 years agoTODO: efl_ui_layout_base
Wonki Kim [Fri, 8 Mar 2019 08:45:52 +0000 (17:45 +0900)]
TODO: efl_ui_layout_base

Change-Id: I83d2af460b76cf815ad759eb99dcc2bc97cb7424

5 years agoefl.ui.layout: split into abstract and real class
Mike Blumenkrantz [Wed, 27 Feb 2019 18:17:16 +0000 (13:17 -0500)]
efl.ui.layout: split into abstract and real class

Summary:
most widgets inherit from layout to provide implementations for common
functionality such as content/text/theme get+set.

one of the things that layout also brings into its inheritance hierarchy
is efl.file and implementations for its methods. this becomes a problem
when the widget which inherits layout also wants to provide implementations
for efl.file methods (e.g., entry, which uses efl.file to load text files)
as it will result in calling all of the efl.file implementations up the
chain.

in the case of entry, this could result in the 'file' property eventually being
set to the current theme file in use by the entry's layout object, and then the
entry will attempt to autosave its content to the default theme file when it is
destroyed, corrupting the theme file and breaking everything

to solve this:

* efl.ui.layout remains an instantiable class which implements efl.file
* efl.ui.layout_base is the abstract class which provides all the methods of layout
  but should be inherited by all widgets which want to implement efl.file functionality

Depends on D8018

Reviewers: bu5hm4n, segfaultxavi

Reviewed By: segfaultxavi

Subscribers: cedric, #reviewers, #committers

Tags: #efl_api

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

5 years agoefl.file: improve api a bit
Mike Blumenkrantz [Wed, 27 Feb 2019 18:17:09 +0000 (13:17 -0500)]
efl.file: improve api a bit

Summary:
the previous implementation/api had a number of issues:
* "file" property contained both "file" and "key" values
  - also performed file loading operation
* "load_error" property which was specific to image objects
* no methods for controlling file loading/unloading

this patch attempts the following changes:
* split "file" property into "file" and "key" properties
  - also remove "key" from existing "mmap" property
* remove "load_error"
* directly return error codes from operations
* add "load" and "unload" methods for directly controlling load state
* add implicit file loading if file/mmap is set during construction
* rewrite all efl.file implementations to move file loading into load() method
* rewrite all usage of efl.file api based on these changes
* add C extension functions to mimic previous behavior

ref T7577

Reviewers: segfaultxavi, bu5hm4n, cedric

Reviewed By: segfaultxavi

Subscribers: vitor.sousa, #reviewers, #committers

Tags: #efl_api

Maniphest Tasks: T7577

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

5 years agoelua tests: fix distcheck
Daniel Kolesa [Wed, 27 Feb 2019 17:38:43 +0000 (18:38 +0100)]
elua tests: fix distcheck

The elua tests need to create a temporary file, so chdir'ing
first will not work, as the tests source dir is immutable during
distcheck. Therefore, only chdir once absolutely necessary, and
before that make sure that all file accesses are to temporary
ones.

5 years agomeson: edje: setup edje_codegen for cross-builds as well
Stefan Schmidt [Fri, 15 Feb 2019 09:55:38 +0000 (10:55 +0100)]
meson: edje: setup edje_codegen for cross-builds as well

We had it all setup for edje_cc, but missed edje_codegen which is used
in the examples.

Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de>
Differential Revision: https://phab.enlightenment.org/D7963

5 years agoevas vg: don't access a dangling pointer.
Hermet Park [Wed, 27 Feb 2019 10:13:18 +0000 (19:13 +0900)]
evas vg: don't access a dangling pointer.

5 years agoedje: free more data descriptors on shutdown
Mike Blumenkrantz [Tue, 26 Feb 2019 19:49:53 +0000 (14:49 -0500)]
edje: free more data descriptors on shutdown

Summary: fix some leaks

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

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

5 years agoexamples/graphical: Mark unused parameters with EINA_UNUSED
Christopher Michael [Tue, 26 Feb 2019 19:40:07 +0000 (14:40 -0500)]
examples/graphical: Mark unused parameters with EINA_UNUSED

5 years agoexamples/camera_light: Mark unused parameters with EINA_UNUSED
Christopher Michael [Tue, 26 Feb 2019 19:39:02 +0000 (14:39 -0500)]
examples/camera_light: Mark unused parameters with EINA_UNUSED

5 years agoexamples/sphere_hunter: Mark unused parameters with EINA_UNUSED
Christopher Michael [Tue, 26 Feb 2019 19:37:07 +0000 (14:37 -0500)]
examples/sphere_hunter: Mark unused parameters with EINA_UNUSED

5 years agoexamples/performance: Mark unused parameters with EINA_UNUSED
Christopher Michael [Tue, 26 Feb 2019 19:35:47 +0000 (14:35 -0500)]
examples/performance: Mark unused parameters with EINA_UNUSED

5 years agoexamples/location_example: Mark unused parameters with EINA_UNUSED
Christopher Michael [Tue, 26 Feb 2019 19:28:22 +0000 (14:28 -0500)]
examples/location_example: Mark unused parameters with EINA_UNUSED

5 years agoexamples/efl_canvas_layout_text: Mark unused parameter with EINA_UNUSED
Christopher Michael [Tue, 26 Feb 2019 19:25:00 +0000 (14:25 -0500)]
examples/efl_canvas_layout_text: Mark unused parameter with EINA_UNUSED

5 years agoexamples/efl_ui_list: Mark unused parameters with EINA_UNUSED
Christopher Michael [Tue, 26 Feb 2019 19:16:58 +0000 (14:16 -0500)]
examples/efl_ui_list: Mark unused parameters with EINA_UNUSED

5 years agoexamples/filemvc: Mark unused parameter with EINA_UNUSED
Christopher Michael [Tue, 26 Feb 2019 19:13:53 +0000 (14:13 -0500)]
examples/filemvc: Mark unused parameter with EINA_UNUSED

5 years agoefl_ui_scroller: apply handling focus.
Hosang Kim [Tue, 26 Feb 2019 07:52:54 +0000 (16:52 +0900)]
efl_ui_scroller: apply handling focus.

Summary: Focus manager is applied to process key events.

Test Plan: elementary_test -> efl.ui.scroller

Reviewers: SanghyeonLee, YOhoho, marcelhollerbach, bu5hm4n

Reviewed By: bu5hm4n

Subscribers: woohyun, Jaehyun_Cho, bu5hm4n, cedric, #reviewers, #committers

Tags: #efl

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

5 years agoefl-csharp: Use proper conversion functions.
Lauro Moura [Mon, 25 Feb 2019 22:23:04 +0000 (19:23 -0300)]
efl-csharp: Use proper conversion functions.

Summary:
PtrToStringAuto may switch between ANSI and UTF16 encodings in a not so
clear way, leading to decoding errors when getting messages from DBus.

Reviewers: vitor.sousa

Reviewed By: vitor.sousa

Subscribers: cedric, #reviewers, #committers

Tags: #efl

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

5 years agoefl-csharp: Remove legacy Evas bindings.
Lauro Moura [Mon, 25 Feb 2019 22:16:19 +0000 (19:16 -0300)]
efl-csharp: Remove legacy Evas bindings.

Summary: Pave the way to correct beta classes handling.

Reviewers: vitor.sousa, segfaultxavi, bu5hm4n

Reviewed By: vitor.sousa, bu5hm4n

Subscribers: cedric, #reviewers, #committers

Tags: #efl

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

5 years agoeina: free vpath hash on shutdown
Mike Blumenkrantz [Mon, 25 Feb 2019 22:12:57 +0000 (17:12 -0500)]
eina: free vpath hash on shutdown

Summary: this resolves a considerable number of leaks in unit tests

Reviewers: bu5hm4n

Reviewed By: bu5hm4n

Subscribers: segfaultxavi, cedric, #reviewers, #committers

Tags: #efl

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

5 years agoelm_map: Make more robust elm_map
Michaël Bouchaud (yoz) [Mon, 25 Feb 2019 19:00:21 +0000 (14:00 -0500)]
elm_map: Make more robust elm_map

Summary:
Make more robust elm_map even if the user wipe is cache directory
or import an already filled tile cache.

@fix T7443

Reviewers: zmike, cedric

Reviewed By: zmike

Subscribers: thierry1970, cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7443

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

5 years agoTODO: squash into efl.gfx.entity: combine show/hide events into visibility,changed
Wonki Kim [Fri, 8 Mar 2019 02:31:46 +0000 (11:31 +0900)]
TODO: squash into efl.gfx.entity: combine show/hide events into visibility,changed

Change-Id: Iceefc5283d41258824a8fe969c032546aeec06e1

5 years agoefl.gfx.entity: combine show/hide events into visibility,changed
Mike Blumenkrantz [Mon, 25 Feb 2019 18:59:49 +0000 (13:59 -0500)]
efl.gfx.entity: combine show/hide events into visibility,changed

Summary:
this requires some internal hackery to preserve legacy compatibility
and correctly translate the single new event into two legacy events

ref T7558

Depends on D8018

Reviewers: segfaultxavi, bu5hm4n

Reviewed By: segfaultxavi

Subscribers: bu5hm4n, segfaultxavi, cedric, #reviewers, #committers

Tags: #efl_api

Maniphest Tasks: T7558

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

5 years agoefl.canvas.scene: rename "smart" methods to "group" methods
Mike Blumenkrantz [Mon, 25 Feb 2019 18:59:18 +0000 (13:59 -0500)]
efl.canvas.scene: rename "smart" methods to "group" methods

Summary:
"group" is the name used for interfaces api, so be consistent by using
that naming here too

ref T7584
Depends on D8019

Reviewers: segfaultxavi

Reviewed By: segfaultxavi

Subscribers: segfaultxavi, cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7584

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

5 years agoeolian: validate betaness
Marcel Hollerbach [Mon, 25 Feb 2019 12:59:51 +0000 (13:59 +0100)]
eolian: validate betaness

Summary:
if there is a none beta class, then this class should not depend on beta
classes in parameters / event types / return types, parent inherits.
This adds this validation, so we can start to slowly to unbeta more and
more classes.

Reviewers: q66, zmike, cedric, segfaultxavi

Reviewed By: q66

Subscribers: #reviewers, #committers

Tags: #efl

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

5 years agobuild: test eo fallback add
Marcel Hollerbach [Mon, 25 Feb 2019 12:59:13 +0000 (07:59 -0500)]
build: test eo fallback add

Summary:
this enables tests with the fallback implementation of EO.
Depends on D7924

Reviewers: stefan_schmidt, cedric, zmike, segfaultxavi

Reviewed By: zmike

Subscribers: #reviewers, #committers

Tags: #efl

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

5 years agoefl.content: add event for when content is changed containing content as data
Mike Blumenkrantz [Mon, 25 Feb 2019 12:45:43 +0000 (07:45 -0500)]
efl.content: add event for when content is changed containing content as data

Summary: ref T7588

Reviewers: cedric, segfaultxavi

Reviewed By: cedric, segfaultxavi

Subscribers: bu5hm4n, cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7588

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

5 years agodocs: Assorted fixes
Xavi Artigas [Mon, 25 Feb 2019 12:33:25 +0000 (07:33 -0500)]
docs: Assorted fixes

Summary:
- Fix multiple doxygen-style references:
Doxygen docs refer to types with #foo whereas Eolian uses @foo.
In lots of places the old Doxygen docs have been just copied into eo files
without properly translating references.

- Add some missing descriptions:
Empty doc tags like [[]] should not be used. Please try at least to provide
a single-line comment, and we can improve that later.
There are still lots of empty doc tags, and their authors will be notified.

Test Plan: Only docs change. make doc and DocFX still work.

Reviewers: zmike, cedric, bu5hm4n

Reviewed By: zmike

Subscribers: #reviewers, foo, #committers

Tags: #efl

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

5 years agoefl_ui_scrollable: add step size property
Hosang Kim [Mon, 25 Feb 2019 12:22:43 +0000 (21:22 +0900)]
efl_ui_scrollable: add step size property

Summary: The step size property determines amount of scroll by arrow key event.

Test Plan: elementary_test -> efl.ui.scroller

Reviewers: bu5hm4n, woohyun, cedric

Reviewed By: bu5hm4n, cedric

Subscribers: cedric, #reviewers, #committers

Tags: #efl

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

5 years agoefl_ui_widget: remove focused_item
Marcel Hollerbach [Sun, 24 Feb 2019 09:57:01 +0000 (10:57 +0100)]
efl_ui_widget: remove focused_item

focused_item is only used in item containers. This API is now moved into
a widget item container, which *can* have a focused item.

ref T7553

Reviewed-by: WooHyun Jung <woohyun0705@gmail.com>
Differential Revision: https://phab.enlightenment.org/D8013

5 years agoefl_canvas_object: remove event_freeze
Marcel Hollerbach [Sat, 23 Feb 2019 14:32:02 +0000 (15:32 +0100)]
efl_canvas_object: remove event_freeze

this is now done via Efl.Object.event_freeze / Efl.Object.event_thaw.

ref T7555

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D8011

5 years agoefl_canvas_object: make is_frame_object internal
Marcel Hollerbach [Sat, 23 Feb 2019 13:22:11 +0000 (14:22 +0100)]
efl_canvas_object: make is_frame_object internal

it was decided that this property should be internal. So now it is
internal.

ref T7555

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D8010

5 years agoefl_canvas_object: get rid of event_animation set/get
Marcel Hollerbach [Sat, 23 Feb 2019 12:21:40 +0000 (13:21 +0100)]
efl_canvas_object: get rid of event_animation set/get

the API is a little bit problematic. The API takes events as an
parameter. However, only the hide and show events can be used, because
move for example is not intercepted, which leads to a situation that you
cannot attach a translation animation to the event. Further more,
handling the animations directory instead of pipeing them through events
seems to be a little bit easier as the case study of the previous events
have shown. Further more, we should never ever overwrite the
callback_call function of a eo base object, those methods are an
incredible hotpath, by the time we would have 1-2 animations on a
object, the event submission would be significetly slowned down.

ref T7555

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D8009

5 years agoefl_ui_stack: use direct events instead of event_animation
Marcel Hollerbach [Sat, 23 Feb 2019 11:57:13 +0000 (12:57 +0100)]
efl_ui_stack: use direct events instead of event_animation

event_animation of efl_canvas_object, is a little problem, we need to
explictly turn it off, to do a visual state manipulation, just to attach
the animation again. Further more, the animation objects are stored in
static fields, which are not bound to the object. Which means, when two
Efl.Ui.Stack objects are running in parrallel, the animation will look a
little bit wacky, since the object is detached before the animation is
ended.

ref T7555

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D8008

5 years agoefl_ui_slack: remove explicit animation removings
Marcel Hollerbach [Sat, 23 Feb 2019 10:05:18 +0000 (11:05 +0100)]
efl_ui_slack: remove explicit animation removings

it appears that this is a bit unnessesery. Setting an animator to NULL
only causes the animation to be stopped. However, in all cases of these
removed calls, a new animator is setted anyways in one of the next
calls. Which means, the old animator is going to be stopped and removed
anyways. Thus these calls are unnessesery

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D8007

5 years agoefl_ui_stack: refactor code
Marcel Hollerbach [Fri, 22 Feb 2019 17:52:48 +0000 (18:52 +0100)]
efl_ui_stack: refactor code

there has been a lot of duplications, they are removed now.
The 5 new APIs are there to either show[1] or hide[2] content without animations, show[4] or hide[5] content with animations. The last new function[3] is there to announce the events after content has been removed.

1: _show_content_without_anim
2: _hide_content_without_anim
3: _announce_hiding
4:_show_content_with_anim
5:_hide_content_with_anim

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D8006

5 years agoelm textpath: reduces differences between actual pos and modified pos
Youngbok Shin [Mon, 25 Feb 2019 06:26:25 +0000 (15:26 +0900)]
elm textpath: reduces differences between actual pos and modified pos

Summary:
In a previous patch, textpath was modified to use differences between
prev/next values to decide next position. Actually, it improved rendering
quality. But, the modified position could have a big difference from actual position.
It caused a distortion problem.
So, this patch was made for reducing that differences.
@fix

Test Plan:
I'll attach some screenshots of before/after.

1. Modify text in text_ui_textpath.c to see distortion of text. ex) "―――――――――――――――――――..."
2. Build and install.
3. Run
   "ELM_SCALE=0.8 ELM_ACCEL=gl elementary_test -to efl.ui.textpath"

Reviewers: Hermet, raster, cedric

Reviewed By: Hermet

Subscribers: #reviewers, #committers

Tags: #efl

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

5 years agoefl_ui_widget: remove "moved" event
WooHyun Jung [Mon, 25 Feb 2019 04:13:21 +0000 (13:13 +0900)]
efl_ui_widget: remove "moved" event

Summary:
This "moved" event is only used by elm_gengrid now.
And it's not something common for all widget classes,
because the event is giving notification when the legacy
item is reordered.

ref T7553

Test Plan: elementary_test "GenGrid"

Reviewers: bu5hm4n, YOhoho, Jaehyun_Cho

Reviewed By: bu5hm4n, YOhoho

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7553

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

5 years agoefl: improve Efl.Container_Model test to have proper lifecycle.
Cedric BAIL [Sat, 23 Feb 2019 13:58:07 +0000 (08:58 -0500)]
efl: improve Efl.Container_Model test to have proper lifecycle.

Summary: Depends on D7865

Reviewers: felipealmeida, segfaultxavi, SanghyeonLee, zmike, bu5hm4n

Reviewed By: segfaultxavi

Subscribers: #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7528

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