platform/upstream/efl.git
6 years agoeolian: fix generation tests
Daniel Kolesa [Fri, 10 Nov 2017 18:42:43 +0000 (19:42 +0100)]
eolian: fix generation tests

6 years agoEdje: use textblock by default
Daniel Hirt [Sun, 15 Oct 2017 14:57:38 +0000 (17:57 +0300)]
Edje: use textblock by default

As most of you know, TEXT part was, up to this point, an Evas.Text
object.

This patch merges TEXT and TEXTBLOCK both to use Efl.Canvas.Text.
Code is added to emulate what TEXT did that TEXTBLOCK did not.

I believe we can move forward with TEXT, and deperacate TEXTBLOCK from
the EDC. You can also set markup to TEXT parts.

Exactness seems to show some differences, but further examination shows
that it's due to difference in how width is calculated in
Efl.Canvas.Text. The results seem correct.

Be sure to report of any breakage via Phabricator or contact me
directly.
I am running E with this and did not stumble upon any crashes or visual
bugs.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
6 years agoEdje: move textblock handling to a separate source
Daniel Hirt [Sun, 15 Oct 2017 14:55:20 +0000 (17:55 +0300)]
Edje: move textblock handling to a separate source

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
6 years agoCanvas text: change halign/valign to use doubles
Daniel Hirt [Fri, 20 Oct 2017 15:02:08 +0000 (18:02 +0300)]
Canvas text: change halign/valign to use doubles

There are use cases where you would want to align by a value.

The wordy alignment values are thus removed.
This commit also separates auto-modes (none, normal, locale) for
horizontal alignment to its own API.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
6 years agoCanvas text: adjust bottom padding at edge of text
Daniel Hirt [Wed, 1 Nov 2017 17:29:18 +0000 (19:29 +0200)]
Canvas text: adjust bottom padding at edge of text

Now the edges include both the top AND bottom paddings.
Also fixes vertical alignment.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
6 years agoCanvas text: fix width calculation with style effects
Daniel Hirt [Sat, 14 Oct 2017 21:29:36 +0000 (00:29 +0300)]
Canvas text: fix width calculation with style effects

There are multiple places in the code where both the padded item's
width and the maximum style padding (at the edges) are accounted for.
For the sake of making calculations for wrapping/ellipsis we should
only use the maximum style padding.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
6 years agoCanvas text: update style pad when no format nodes are present
Daniel Hirt [Sat, 14 Oct 2017 19:21:54 +0000 (22:21 +0300)]
Canvas text: update style pad when no format nodes are present

This updates the style pad even if there are no format nodes.
An example of this is having a default style set to the object.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
6 years agoCanvas text: fix applying effects
Daniel Hirt [Thu, 12 Oct 2017 07:28:36 +0000 (10:28 +0300)]
Canvas text: fix applying effects

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
6 years agoCanvas text: favor font name parsing over set properties
Daniel Hirt [Sun, 8 Oct 2017 11:00:24 +0000 (14:00 +0300)]
Canvas text: favor font name parsing over set properties

Since font names can also specify styles like weight, width etc, we
should parse the font name AFTER setting the respective properties to
the font description, so it can override some if required.

This allows, for example, the following operation:

efl_text_font_weight_set(obj, EFL_TEXT_FONT_WEIGHT_NORMAL);
efl_text_font_set(obj, "Sans:Bold");

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
6 years agowayland_shm: Respect the alpha
Derek Foreman [Fri, 10 Nov 2017 15:55:58 +0000 (09:55 -0600)]
wayland_shm: Respect the alpha

The dmabuf code has been creating ARGB buffers all the time.  The old
wl_shm code correctly respected the alpha field, but that was lost in
the new version.

I'm not sure we ever create non-alpha wayland buffers, since CSD has
to have alpha to do shadows, but if there's any way to do it it'll
work now.

6 years agoeolian: more intuitive generation options and mrge impls into .c
Daniel Kolesa [Fri, 10 Nov 2017 13:46:00 +0000 (14:46 +0100)]
eolian: more intuitive generation options and mrge impls into .c

Previously the output base name used to include extension, now
you don't need to specify an extension and it's determined from
the input file name instead.

Also, implementation boilerplate used to merge with .eo.c before,
which made no sense. Now it's merged with .c instead when it
exists or makes a new .c file when it doesn't.

6 years agoedje_cc: Extract function to build stack ending with wildcard
Jeeyong Um [Fri, 10 Nov 2017 03:59:55 +0000 (12:59 +0900)]
edje_cc: Extract function to build stack ending with wildcard

6 years agocxx: Fix example for GCC
Jean-Philippe Andre [Fri, 10 Nov 2017 03:19:53 +0000 (12:19 +0900)]
cxx: Fix example for GCC

clang has no problem, but GCC complains with "support not implemented"
Discovered with distcheck

6 years agoevas/vg: use surface cache for efl vg canvas
subhransu mohanty [Thu, 9 Nov 2017 07:57:00 +0000 (16:57 +0900)]
evas/vg: use surface cache for efl vg canvas

6 years agoevas/vg: refactor ector engine api and backend .
subhransu mohanty [Thu, 9 Nov 2017 07:55:44 +0000 (16:55 +0900)]
evas/vg: refactor ector engine api and backend .

6 years agoevas/engine: added new engine api for ector
subhransu mohanty [Fri, 27 Oct 2017 04:42:01 +0000 (13:42 +0900)]
evas/engine: added new engine api for ector

6 years agoevas/vg: added support for engine surface cache.
subhransu mohanty [Thu, 9 Nov 2017 01:31:12 +0000 (10:31 +0900)]
evas/vg: added support for  engine surface cache.

6 years agoevas/common: added a generic cache in evas common.
subhransu mohanty [Thu, 9 Nov 2017 01:34:01 +0000 (10:34 +0900)]
evas/common: added a generic cache in evas common.

6 years agoector: move gradient generation api to draw library for reuse.
subhransu mohanty [Thu, 26 Oct 2017 02:12:42 +0000 (11:12 +0900)]
ector: move gradient generation api to draw library for reuse.

6 years agotriangulator:Added stroke_set api to the triangulator_stroker.
subhransu mohanty [Thu, 26 Oct 2017 01:59:16 +0000 (10:59 +0900)]
triangulator:Added stroke_set api to the triangulator_stroker.

6 years agoecore_evas: improve ecore_evas fallback animator logic for legacy case.
Cedric Bail [Fri, 10 Nov 2017 02:07:31 +0000 (18:07 -0800)]
ecore_evas: improve ecore_evas fallback animator logic for legacy case.

In Enlightenment with internal window being WL window connected to the
X11 backend, you end up with the later requiring the former to tick, even
if the former do not have a proper animator source. To work around the
problem when there is one backend that is not providing support for
animator source, we do need to avoid switching on another window source
as they could be linked somehow and we can not know.

6 years agoecore_con: add support for EFL_MAIN with ecore_con support.
Cedric Bail [Thu, 9 Nov 2017 23:25:51 +0000 (15:25 -0800)]
ecore_con: add support for EFL_MAIN with ecore_con support.

6 years agoecore: move EFL_MAIN to Efl_Core.h
Cedric Bail [Thu, 9 Nov 2017 23:08:40 +0000 (15:08 -0800)]
ecore: move EFL_MAIN to Efl_Core.h

This make EFL_MAIN available and working with just Ecore. For simplicity
it is available with Efl_Core.h. Ideally it should also work with Efl_Net.h
alone and finally with an Efl_Ui.h.

T6262

6 years agoelementary: allow efl_general.h to be included multiple time.
Cedric Bail [Thu, 9 Nov 2017 22:33:46 +0000 (14:33 -0800)]
elementary: allow efl_general.h to be included multiple time.

6 years agoelementary: make elm_init and elm_shutdown optional in EFL_MAIN.
Cedric Bail [Thu, 9 Nov 2017 22:33:15 +0000 (14:33 -0800)]
elementary: make elm_init and elm_shutdown optional in EFL_MAIN.

6 years agowayland_shm: Don't require dmabuf support to use wl_shm
Derek Foreman [Thu, 9 Nov 2017 22:08:30 +0000 (16:08 -0600)]
wayland_shm: Don't require dmabuf support to use wl_shm

Unintended side effect of my merging of the two code paths.  We should
still try to use wl_shm if we can't use dmabuf here.

6 years agoecore_wl2: Discard too-old dmabuf support
Derek Foreman [Thu, 9 Nov 2017 22:06:42 +0000 (16:06 -0600)]
ecore_wl2: Discard too-old dmabuf support

We need at least version 2 for create_immed, so don't even bind the
global if it's useless to us.

This will also stop us from trying to use dmabuf (and getting killed by
the compositor) on older compositors that don't support the version we
need - we'll just use wl_shm instead when this pointer is NULL.

6 years agoefl_wl: Add missing @since to new functions
Derek Foreman [Thu, 9 Nov 2017 18:41:22 +0000 (12:41 -0600)]
efl_wl: Add missing @since to new functions

These ones were introduced for 1.21.

6 years agoelput - ref device that is in the event queue
Carsten Haitzler (Rasterman) [Thu, 9 Nov 2017 02:38:35 +0000 (11:38 +0900)]
elput - ref device that is in the event queue

6 years agoEfl.Ui.Slider: fix documentations
Amitesh Singh [Thu, 9 Nov 2017 02:02:29 +0000 (11:02 +0900)]
Efl.Ui.Slider: fix documentations

6 years agoelm_code_widget: keep track of visibility.
Al Poole [Thu, 9 Nov 2017 00:38:51 +0000 (00:38 +0000)]
elm_code_widget: keep track of visibility.

Keep track of visibility and ensure the cursor can never be
filled when hidden. This should finally end any issue with the
cursor and visibility with the new focus system. Didn't see this
previously until working on Edi's bottom panes which caused redraw
on resize of the widgets.

@fix

6 years agowayland_shm: Remove old shm code
Derek Foreman [Wed, 8 Nov 2017 20:33:31 +0000 (14:33 -0600)]
wayland_shm: Remove old shm code

The new shm code should be equally capable - minus one surface resize
optimization that probably didn't buy us much performance at the cost
of memory.

6 years agowayland_shm: Return oldest buffer for new renders
Derek Foreman [Wed, 8 Nov 2017 20:15:52 +0000 (14:15 -0600)]
wayland_shm: Return oldest buffer for new renders

This is what the old shm code has been doing, and it's probably better
than what the dmabuf code was doing.

We currently allocate 3 buffers.  The usual case has us swapping between
two of those buffers and saving that third buffer for emergencies - if
we ever need that third buffer it'll require a full redraw.

If we return the oldest available buffer the usual case requires a little
more damage but we should never hit the full redraw case, which can cause
a frame drop on slow hardware.

6 years agowayland_shm: Simplify surface commits
Derek Foreman [Wed, 8 Nov 2017 19:58:07 +0000 (13:58 -0600)]
wayland_shm: Simplify surface commits

We no longer have the concept of a "pre" buffer (allocated but not yet
registered as a wayland buffer)

6 years agowayland_shm: Remove useless function
Derek Foreman [Wed, 8 Nov 2017 17:15:04 +0000 (11:15 -0600)]
wayland_shm: Remove useless function

This serves no purpose anymore.

6 years agowayland_shm: Remove dmabuf fallback
Derek Foreman [Wed, 8 Nov 2017 19:57:20 +0000 (13:57 -0600)]
wayland_shm: Remove dmabuf fallback

Now that we're dependent on create_immed there's no possibility of falling
back to non dmabuf allocation.

The only failing case we really need to handle is failing the first
allocation, which is currently broken and I'll be adding an advance test
for it shortly.

6 years agowayland_shm: Make EVAS_WAYLAND_SHM_DISABLE_DMABUF use new code
Derek Foreman [Wed, 8 Nov 2017 16:37:06 +0000 (10:37 -0600)]
wayland_shm: Make EVAS_WAYLAND_SHM_DISABLE_DMABUF use new code

Use the new wl_shm allocation functions making the old wl_shm code
unreachable even with the use of the disable env var.

6 years agowayland_shm: Add wl_shm to dmabuf
Derek Foreman [Mon, 6 Nov 2017 23:05:25 +0000 (17:05 -0600)]
wayland_shm: Add wl_shm to dmabuf

wl_shm and dmabuf only really need to differ in how they allocate a buffer,
but right now we've got them in separate files.  This dramatically
reduces the complexity of the wl_shm code and shares much more
implementation with the dmabuf code.

This throws away at least one "optimization" wl_shm used - over-allocating
buffers so that window resizing doesn't always require a new buffer
allocation.  If people feel that window resizing has become too slow now
this can be added to the dmabuf code to the benefit of both allocators.

Disabling dmabuf by env var still uses the old wl_shm implementation for
now, but soon that code will be removed entirely and the env var disable
will use this path.

6 years agowayland_shm: Track size of buffer
Derek Foreman [Mon, 6 Nov 2017 23:01:16 +0000 (17:01 -0600)]
wayland_shm: Track size of buffer

6 years agowayland_shm: move buffer release callback to top of file
Derek Foreman [Mon, 6 Nov 2017 23:00:46 +0000 (17:00 -0600)]
wayland_shm: move buffer release callback to top of file

Code motion with no functional changes.

6 years agowayland_shm: make creating a wayland buffer back end specific
Derek Foreman [Mon, 6 Nov 2017 19:31:25 +0000 (13:31 -0600)]
wayland_shm: make creating a wayland buffer back end specific

This way we can have shm and dmabuf share the same framework.

6 years agowayland_shm: Factor out wl_buffer creation code
Derek Foreman [Mon, 6 Nov 2017 19:10:59 +0000 (13:10 -0600)]
wayland_shm: Factor out wl_buffer creation code

6 years agobuild: improve configure accessibility
Mike Blumenkrantz [Wed, 8 Nov 2017 17:07:25 +0000 (12:07 -0500)]
build: improve configure accessibility

as decided by unanimous vote, the community does not want builds to pause or
stop when various features are disabled. warnings for disabling features have
been left intact

ref V30

@feature

6 years agoquicklaunch: add support for quicklaunch domains
Mike Blumenkrantz [Wed, 8 Nov 2017 16:48:39 +0000 (11:48 -0500)]
quicklaunch: add support for quicklaunch domains

this allows quicklaunch to be used independently of the DISPLAY value

6 years agoeolian: enable cyclic imports of eo files
Daniel Kolesa [Wed, 8 Nov 2017 15:46:14 +0000 (16:46 +0100)]
eolian: enable cyclic imports of eo files

6 years agoeolian: simplify dependency parsing and cut down on hash lookups
Daniel Kolesa [Wed, 8 Nov 2017 15:12:40 +0000 (16:12 +0100)]
eolian: simplify dependency parsing and cut down on hash lookups

6 years agoelput - re-enable switches (power buttons, lid etc.)
Carsten Haitzler (Rasterman) [Tue, 7 Nov 2017 02:04:03 +0000 (11:04 +0900)]
elput - re-enable switches (power buttons, lid etc.)

this is needed for devices that no longer produce aspi events for
these. otherwise good luck getting any event on lid open/close or on
pressing the power button. this also stops hiding switch events from
libinput and now you can get switch events to find lid or tablet mode
switching changes.

@fix

6 years agoedje: Oops. Remove edje_global include as well.
Jean-Philippe Andre [Wed, 8 Nov 2017 11:16:28 +0000 (20:16 +0900)]
edje: Oops. Remove edje_global include as well.

6 years agoedje: Hide edje_global from the rest of the world
Jean-Philippe Andre [Wed, 8 Nov 2017 10:29:13 +0000 (19:29 +0900)]
edje: Hide edje_global from the rest of the world

Call provider_find on the loop (or basically any object) with the
color/text/size class interface instead, to find it. The main loop is
the main holder of those objects.

Note: This makes use of provider_find instead of direct access to the
variable, in order to self-test the code. In theory release builds will
not do this and user directly the variable.

6 years agoEfl: add class interfaces (color/text/size)
Jee-Yong Um [Wed, 8 Nov 2017 10:04:26 +0000 (19:04 +0900)]
Efl: add class interfaces (color/text/size)

Summary: implement Efl.Gfx.Class interface

Reviewers: jpeg, cedric

Subscribers: taxi2se, herdsman

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

6 years agoeo: Rename efl_ref_get to efl_ref_count
Andy Williams [Wed, 8 Nov 2017 09:30:42 +0000 (09:30 +0000)]
eo: Rename efl_ref_get to efl_ref_count

6 years agounbreak efl so e works again.... after cedric
Carsten Haitzler (Rasterman) [Wed, 8 Nov 2017 06:42:28 +0000 (15:42 +0900)]
unbreak efl so e works again.... after cedric

we cant go iterating the mainloop before the current point. if someone
set up handlers but hasnt configured the things those handles use yet
as they dont expect them to be used until the mainloop is started...
thenthings break. we cant change this assumption without breaking
things.

6 years agowin: Fix alpha windows
Jean-Philippe Andre [Wed, 8 Nov 2017 07:17:29 +0000 (16:17 +0900)]
win: Fix alpha windows

Fixes T6334

6 years agoevas/vg: changed the efl_vg_dup api signature.
subhransu mohanty [Wed, 8 Nov 2017 06:49:37 +0000 (15:49 +0900)]
evas/vg: changed the efl_vg_dup api signature.

Reviewers: jpeg, cedric

Subscribers: cedric, jpeg

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

6 years agotests: Properly define access beta/protected
Jean-Philippe Andre [Wed, 8 Nov 2017 05:18:05 +0000 (14:18 +0900)]
tests: Properly define access beta/protected

This solves warnings (and likely errors) in the make check test cases
for ATSPI, since most of efl_access APIs are now marked as beta.

6 years agoeina: Fix spelling/punctuation errors in documentation (prefix..promise)
Bryce Harrington [Wed, 8 Nov 2017 06:20:34 +0000 (15:20 +0900)]
eina: Fix spelling/punctuation errors in documentation (prefix..promise)

Reviewers: cedric, ajwillia.ms

Subscribers: jpeg, segfaultxavi

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

6 years agofocus: Some typos for efl_ui_focus_manager fixed
Pawel Aksiutowicz [Wed, 8 Nov 2017 06:14:53 +0000 (15:14 +0900)]
focus: Some typos for efl_ui_focus_manager fixed

Reviewers: stanluk, lukasz.stanislawski

Subscribers: lukasz.stanislawski, cedric, jpeg

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

6 years agoefl - fix build after cedric breakage
Carsten Haitzler (Rasterman) [Wed, 8 Nov 2017 06:05:11 +0000 (15:05 +0900)]
efl - fix build after cedric breakage

25b6a280c087d39f66e30c9c4d07f86b97c989d6 broke the build...
specifically building AGAINST efl.

6 years agoelementary: fix quicklaunch support.
Cedric BAIL [Tue, 7 Nov 2017 23:55:25 +0000 (15:55 -0800)]
elementary: fix quicklaunch support.

6 years agoelementary: refactor and clean efl_quicklaunch_prepare.
Cedric BAIL [Tue, 7 Nov 2017 23:53:44 +0000 (15:53 -0800)]
elementary: refactor and clean efl_quicklaunch_prepare.

6 years agoelementary: fix ELM_MAIN macro to properly expose symbol.
Cedric BAIL [Tue, 7 Nov 2017 23:51:52 +0000 (15:51 -0800)]
elementary: fix ELM_MAIN macro to properly expose symbol.

6 years agoelementary: add debugging information to quicklaunch binary.
Cedric BAIL [Tue, 7 Nov 2017 23:50:13 +0000 (15:50 -0800)]
elementary: add debugging information to quicklaunch binary.

6 years agoelementary: use efl_exit to leave the mainloop instead of direct use of exit.
Cedric BAIL [Tue, 7 Nov 2017 23:49:38 +0000 (15:49 -0800)]
elementary: use efl_exit to leave the mainloop instead of direct use of exit.

6 years agoevas: rely on ecore to reset evas rendering thread on fork.
Cedric BAIL [Tue, 7 Nov 2017 23:47:28 +0000 (15:47 -0800)]
evas: rely on ecore to reset evas rendering thread on fork.

6 years agoevas: rely on ecore to reset upscaler thread on fork.
Cedric BAIL [Tue, 7 Nov 2017 23:47:09 +0000 (15:47 -0800)]
evas: rely on ecore to reset upscaler thread on fork.

6 years agoevas: rely on ecore to reset ecore_pipe for evas_async_events.
Cedric BAIL [Tue, 7 Nov 2017 23:45:03 +0000 (15:45 -0800)]
evas: rely on ecore to reset ecore_pipe for evas_async_events.

Ecore being a dependency of evas, let's make our life easier and
rely on ecore to tell us when to reset pipe due to a fork instead
of trying to guess.

6 years agoecore: introduce ecore_init_ex/ecore_shutdown_ex to propagate argc,argv properly.
Cedric BAIL [Mon, 6 Nov 2017 21:49:18 +0000 (13:49 -0800)]
ecore: introduce ecore_init_ex/ecore_shutdown_ex to propagate argc,argv properly.

6 years agoecore: report startup time of the main loop with EFL_FIRST_LOOP environment variable.
Cedric BAIL [Mon, 6 Nov 2017 19:06:21 +0000 (11:06 -0800)]
ecore: report startup time of the main loop with EFL_FIRST_LOOP environment variable.

6 years agoecore,elementary: move startup time accounting in ecore.
Cedric BAIL [Mon, 6 Nov 2017 18:52:36 +0000 (10:52 -0800)]
ecore,elementary: move startup time accounting in ecore.

6 years agoelementary: move Efl new general purpose API to efl_general.h
Cedric BAIL [Mon, 6 Nov 2017 18:28:15 +0000 (10:28 -0800)]
elementary: move Efl new general purpose API to efl_general.h

6 years agoefl net - handle proxy helper fails better and abort proxy lookups
Carsten Haitzler (Rasterman) [Tue, 7 Nov 2017 13:41:20 +0000 (22:41 +0900)]
efl net - handle proxy helper fails better and abort proxy lookups

if proxy fails are too many then give up on queued lookups as they
likely will continue. i noticed a process continually spawning efl net
proxy helper because one queued lookup failed and could be looked up
so it kept trying again and again.

@fix

6 years agocxx: Fix slider example
Jean-Philippe Andre [Tue, 7 Nov 2017 13:21:13 +0000 (22:21 +0900)]
cxx: Fix slider example

The fix is not complete. We need to make efl_part() work nicely in C++:
 - Get the refs work properly (maybe without auto-del)
 - Generate the parts from the EO file as methods on the object

Final form should be close to:
  slider.indicator().format_string_set("%1.2f");

Where everything autocompletes nicely :)

6 years agoslider: Export the part class
Jean-Philippe Andre [Tue, 7 Nov 2017 13:17:04 +0000 (22:17 +0900)]
slider: Export the part class

It needs to be exposed for things like c++ and others to work.

6 years agoslider: Advertise indicator part in the EO file
Jean-Philippe Andre [Tue, 7 Nov 2017 13:00:32 +0000 (22:00 +0900)]
slider: Advertise indicator part in the EO file

There are 3 other indicator APIs that aren't in the part class... why?

6 years agoevas: Yet another OSX build fix...
Jean-Philippe Andre [Tue, 7 Nov 2017 12:53:45 +0000 (21:53 +0900)]
evas: Yet another OSX build fix...

Please tell me this is the last one

6 years agoexample: Add elocation to elm build
Lauro Moura [Tue, 7 Nov 2017 12:49:26 +0000 (21:49 +0900)]
example: Add elocation to elm build

Summary:
9d2dcd92 requires elocation to build.

cxx examples still broken due to elm cleanup

Test Plan: make examples

Reviewers: jpeg, felipealmeida

Subscribers: cedric

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

6 years agoefl_ui_radio: keep radio state when theme is changed
Sungtaek Hong [Tue, 7 Nov 2017 12:08:40 +0000 (21:08 +0900)]
efl_ui_radio: keep radio state when theme is changed

Summary:
during elm_widget_theme_apply() state was set to off when state is on.
@fix

Test Plan: change locale/theme when a radio is on.

Reviewers: jpeg, cedric, woohyun

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

6 years agoevas: Another attempt at fixing OSX build
Jean-Philippe Andre [Tue, 7 Nov 2017 11:15:48 +0000 (20:15 +0900)]
evas: Another attempt at fixing OSX build

Build failed with LKI not found, as a symbol, but it's a macro.
Copy & pasted from evas_common_private.h
How can this work on one platform and not another? I don't get it...

6 years agoeina: Fix spelling errors in documentation (matrixsparse..module)
Bryce Harrington [Tue, 7 Nov 2017 08:59:02 +0000 (08:59 +0000)]
eina: Fix spelling errors in documentation (matrixsparse..module)

Reviewers: cedric, ajwillia.ms

Subscribers: segfaultxavi, jpeg

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

6 years agoeina freeq - make it clear that content is invalid on submission
Carsten Haitzler (Rasterman) [Tue, 7 Nov 2017 08:35:52 +0000 (17:35 +0900)]
eina freeq - make it clear that content is invalid on submission

and that the free function cannot access content of the pointer
(unless the pointer memory size is 0).

6 years agoeo - fix freeq usage to not use freeq for a vtable cleaning
Carsten Haitzler (Rasterman) [Tue, 7 Nov 2017 08:34:30 +0000 (17:34 +0900)]
eo - fix freeq usage to not use freeq for a vtable cleaning

the freeq can't allow things to access the content of the pointer
because the content canbe written over by canary handling qhen
submitted to the freeq. clear it inline then just submit the final
pointer to the freeq.

@fix

6 years agoelm win - note need for other display system code...
Carsten Haitzler (Rasterman) [Tue, 7 Nov 2017 07:39:26 +0000 (16:39 +0900)]
elm win - note need for other display system code...

6 years agoEfl.Ui.Slider: implement Slider.part & Ui.format functions
Amitesh Singh [Tue, 7 Nov 2017 04:28:01 +0000 (13:28 +0900)]
Efl.Ui.Slider: implement Slider.part & Ui.format functions

indicator_format_set/get & indicator_format_function_set are
now legacy APIs.
indicator format can be set by using generic Ui.Format function
e.g.
efl_ui_format_string_set(efl_part(sliderObj, "indicator"), "1.0%f");

6 years agoelm: Fix make check (code_widget)
Jean-Philippe Andre [Tue, 7 Nov 2017 05:59:01 +0000 (14:59 +0900)]
elm: Fix make check (code_widget)

elm_code_widget is causing a lot of trouble as it's relying on internal
access to elementary, without being built as part of elementary.so. Many
EAPI symbols are exported that shouldn't need to be, as they are only
internals of elm.

6 years agoevas: Fix make check
Jean-Philippe Andre [Tue, 7 Nov 2017 05:56:00 +0000 (14:56 +0900)]
evas: Fix make check

Because of this I couldn't test my previous patches properly and now
realized that I also broke make check... >_<

See D5419

6 years agoelm: Fix ui.win "bg" test case
Jean-Philippe Andre [Tue, 7 Nov 2017 05:51:12 +0000 (14:51 +0900)]
elm: Fix ui.win "bg" test case

elm_colorselector is legacy only (for now, unfortunately).
This means that elm_colorselector_class_get() crashes with weak linking.
Strong linking would make the compilation fail.

6 years agoelm: Create legacy widgets with elm_legacy_add
Jean-Philippe Andre [Tue, 7 Nov 2017 05:00:43 +0000 (14:00 +0900)]
elm: Create legacy widgets with elm_legacy_add

This will be used to solve issues around style_set:
if the widget is legacy or pure eo we may need to select a different
style. So in the constructor we need to know whether we are legacy or
eo. Note that calling style_set in finalize only is too late as we would
lose information such as efl_text_set() called inside efl_add().

6 years agoelm: Don't do anything before construction
Jean-Philippe Andre [Tue, 7 Nov 2017 05:26:37 +0000 (14:26 +0900)]
elm: Don't do anything before construction

Obviously ui.win is still the ugly exception.

6 years agoelm: Call efl_access_type_set after construction
Jean-Philippe Andre [Tue, 7 Nov 2017 05:03:19 +0000 (14:03 +0900)]
elm: Call efl_access_type_set after construction

I don't think it is necessary to call this before construction, and that
could instead lead to issues. It's just weird overall.

6 years agoefl ui win - make win centering work with multiple screens
Carsten Haitzler (Rasterman) [Tue, 7 Nov 2017 04:52:31 +0000 (13:52 +0900)]
efl ui win - make win centering work with multiple screens

this should fix T6323
@fix

6 years agoevas_vg_load_svg: get rid of static Evas_SVG_Parsing
Vitalii Vorobiov [Tue, 7 Nov 2017 02:41:36 +0000 (11:41 +0900)]
evas_vg_load_svg: get rid of static Evas_SVG_Parsing

Summary:
Refactoring.
It is good to store values from that struct in a parsing/loading context

static variable is a big NO NO:
1. Ugly code design,
2. Might not work when trying to load more than one SVG file.

@fix

Reviewers: jpeg, smohanty

Subscribers: jenkins, cedric

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

6 years agoevas_vg_load_svg: default stop opacity color should be 255, not 0
Vitalii Vorobiov [Thu, 16 Mar 2017 15:55:26 +0000 (17:55 +0200)]
evas_vg_load_svg: default stop opacity color should be 255, not 0

@fix

6 years agovg_common: property apply "objectBoundingBox" morphings to radial gradient
Vitalii Vorobiov [Thu, 16 Mar 2017 12:53:49 +0000 (14:53 +0200)]
vg_common: property apply "objectBoundingBox" morphings to radial gradient

When objectBoundingBox flag is set up, all gradients should morphed into
multiple gradients for every entity that has gradient to be applied on

6 years agosvg_parse: parse correct values for radialGradient
Vitalii Vorobiov [Wed, 22 Feb 2017 11:02:31 +0000 (13:02 +0200)]
svg_parse: parse correct values for radialGradient

Especially Radius calculation which was a huge pain to find formula
within SVG documentations!

6 years agovg_common: apply related coordinates for linear gradient
Vitalii Vorobiov [Tue, 21 Feb 2017 15:40:15 +0000 (17:40 +0200)]
vg_common: apply related coordinates for linear gradient

multiply it with object size or with view box sizes depending on
gradientUnits value

6 years agosvg_parse: parse linear gradient variables accroding to gradientUnits
Vitalii Vorobiov [Fri, 17 Feb 2017 15:00:01 +0000 (17:00 +0200)]
svg_parse: parse linear gradient variables accroding to gradientUnits

There are difficult cases according to
https://www.w3.org/TR/2000/CR-SVG-20000802/pservers.html

6 years agosvg_parse: implement <length> parse
Vitalii Vorobiov [Fri, 17 Feb 2017 11:00:54 +0000 (13:00 +0200)]
svg_parse: implement <length> parse

Accodring to https://www.w3.org/TR/SVG/types.html#Length
length ::= number ("em" | "ex" | "px" | "in" | "cm" | "mm" | "pt" | "pc" | "%")
This is still work in progress since some of lengths should be treated
differently, for example gradient lengths

6 years agosvg_parse: save global size variable to use when gradient size recalc
Vitalii Vorobiov [Tue, 14 Feb 2017 15:51:13 +0000 (17:51 +0200)]
svg_parse: save global size variable to use when gradient size recalc

For example while userSpaceOnUse it uses not figure's x,y,w,h
but entire canvas, so we need to save it publically and recalc while
parsing (or after)

6 years agovg_common: parse and store userSpaceOnUse (for gradient) when it is set
Vitalii Vorobiov [Tue, 14 Feb 2017 15:37:27 +0000 (17:37 +0200)]
vg_common: parse and store userSpaceOnUse (for gradient) when it is set

So it can be calculated during the draw later on

6 years agoefl_gfx_path: fix typo in _path_bounds_get
Vitalii Vorobiov [Mon, 13 Feb 2017 14:27:55 +0000 (16:27 +0200)]
efl_gfx_path: fix typo in _path_bounds_get

Wrong position was used while going through the array of
points

@fix