platform/upstream/efl.git
8 years agoecore-wl2: Prevent duplicated mouse up events
Chris Michael [Tue, 28 Jun 2016 13:01:38 +0000 (09:01 -0400)]
ecore-wl2: Prevent duplicated mouse up events

If you touch downs and ups about all of fingers,
that is sufficient condition to call ecore_wl_input_ungrab().
And then one mouse up event is generated from that function.
So if you set a callback about ECORE_EVENT_MOUSE_BUTTON_UP,
you can watch two mouse up events are occurred.

This is a port of the patch for Ecore_Wayland library (deprecated) to
the newer Ecore_Wl2 library.

ref D4112

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoecore-wayland: Prevent duplicated mouse up events.
JengHyun Kang [Tue, 28 Jun 2016 13:01:09 +0000 (09:01 -0400)]
ecore-wayland: Prevent duplicated mouse up events.

Summary:
Prevent duplicated mouse up events generated from input_ungrab.
         If you touch downs and ups about all of fingers,
         that is sufficient condition to call ecore_wl_input_ungrab().
         And then one mouse up event is generated from that function.
         So if you set a callback about ECORE_EVENT_MOUSE_BUTTON_UP,
         you can watch two mouse up events are occurred.

Test Plan: Touch and release. And watch mouse up events.

Reviewers: raster, zmike, devilhorns

Reviewed By: devilhorns

Subscribers: ohduna, input.hacker, cedric, jpeg

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

8 years agoeo: Fix composite objects destruction
Jean-Philippe Andre [Tue, 28 Jun 2016 10:29:31 +0000 (19:29 +0900)]
eo: Fix composite objects destruction

This walks the list and removes objects from it. Not
using EINA_LIST_FREE as the actual list_remove is done
inside eo_composite_detach.

8 years agoevas: Use proper type for stringshares
Jean-Philippe Andre [Tue, 28 Jun 2016 10:20:37 +0000 (19:20 +0900)]
evas: Use proper type for stringshares

8 years agoevas: Fix double stringshare_del
Jean-Philippe Andre [Tue, 28 Jun 2016 10:17:24 +0000 (19:17 +0900)]
evas: Fix double stringshare_del

A stringshare for font "style" was not properly duplicated,
resulting in lots of invalid stringshare pointers.

Ping @id213sin (commit 2ce33e73a7d48d4b54a075c07f12c0162).

8 years agotests: elm: make cnt unsigned for correct compare
Stefan Schmidt [Tue, 28 Jun 2016 09:34:16 +0000 (11:34 +0200)]
tests: elm: make cnt unsigned for correct compare

Not really somethign we would hit here but still better to change this.

tests/elementary/elm_test_config.c: In function ‘elm_config_profiles’:
tests/elementary/elm_test_config.c:206:12: warning: comparison between signed and unsigned integer
expressions [-Wsign-compare]
         fail_if(cnt != eina_list_count(list));

8 years agotests: elm: remove wrong const for Eina_List
Stefan Schmidt [Tue, 28 Jun 2016 09:32:46 +0000 (11:32 +0200)]
tests: elm: remove wrong const for Eina_List

We are assigning somethign new to this list so no chance for const here.

tests/elementary/elm_test_config.c: In function ‘_eina_list_string_has’:
tests/elementary/elm_test_config.c:174:11: warning: assignment discards ‘const’ qualifier from
pointer target type [-Wdiscarded-qualifiers]
    EINA_LIST_FOREACH(list, l, s)

8 years agopopup: remove max_sc_w because it's duplicate job
Jinyong Park [Tue, 28 Jun 2016 04:33:37 +0000 (13:33 +0900)]
popup: remove max_sc_w because it's duplicate job

Summary:
max_sc_w decide popup's "content" area size when popup scrollable is TRUE.
but in popup's edc, "elm/popup/content/XXXX" has min size when scrollable is TRUE. (and it is content area layout)
max_sc_w has fixed value, so I think deciding by edc is better than fixed code.

Test Plan:
1. elementary_test -to popup
2. check "Enable popup scroll"
3. click any list item.
4. observe popup and compare before this patch.

Reviewers: singh.amitesh, herb, Hermet, raster

Subscribers: cedric, jpeg

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

8 years agoevas: add pattern "style" when evas query fonts via fontconfig
Youngbok Shin [Tue, 28 Jun 2016 01:49:37 +0000 (10:49 +0900)]
evas: add pattern "style" when evas query fonts via fontconfig

Summary:
Some fonts can have weird style and weight value.
If a font has a style name as "medium" and a weight value as "semi-bold",
Evas can't load the font using "font=Somefont:style=Medium".
It only can be load with "font=Somefont:style=SemiBold" or
"font=Somefont:weight=SemiBold".
On the other hand, it could be loaded when I tested the following commands.
fc-match -s ":family=Somefont:style=Medium" or
fc-match -s ":family=Somefont:weight=SemiBold"

Evas also should load font based on font's style name.
@fix

Test Plan: N/A

Reviewers: tasn, herdsman, cedric, woohyun, raster

Reviewed By: raster

Subscribers: Blackmole, z-wony, jpeg

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

8 years agoelementary/layout: changed to Evas_Object * from Elm_Layout * in legacy header.
Hermet Park [Tue, 28 Jun 2016 04:15:56 +0000 (13:15 +0900)]
elementary/layout: changed to Evas_Object * from Elm_Layout * in legacy header.

if EFL_EO_API_SUPPORT is not defined in user side, this will break the build.
because Elm_Layout type is defined in eo header file.

Just keep using Evas_Object * in legacy yet.

8 years agoefl: Remove eo struct Efl.Gfx.Color
Jean-Philippe Andre [Tue, 28 Jun 2016 01:52:28 +0000 (10:52 +0900)]
efl: Remove eo struct Efl.Gfx.Color

So far this was protected behind ifdef EO_API_SUPPORT. It also
was not used internally. Dropping this before the release, since
we will soon have a (hopefully) better solution to handle various
color representations.

8 years agoedje: refactor edje color class API
Jee-Yong Um [Tue, 28 Jun 2016 01:31:55 +0000 (10:31 +0900)]
edje: refactor edje color class API

Summary:
refactor setter and getter of edje color class and
move edje_color_class_set/get() into Edje.Object as class functions

Reviewers: cedric, jpeg

Reviewed By: jpeg

Subscribers: kimcinoo

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

Note by jpeg:
The EO APIs introduced here will be revisited in upcoming patches,
in particular:
1. avoid non-premultiplied colors
2. move to a common color class interface

8 years agoelm_atspi_bridge: add bounds-changed signal sending code.
Shilpa Singh [Mon, 27 Jun 2016 18:30:01 +0000 (11:30 -0700)]
elm_atspi_bridge: add bounds-changed signal sending code.

Summary:
Add bounds-changed signal, this signal can be sent on geometry change
of any evas object when atspi mode is enabled.

Test Plan:
connect to "object:bounds-changed" signal on screen-reader.
when signal BoundsChanged is emitted from elm using elm_interface_atspi_accessible_bounds_changed_signal_emit, the signal should be received
and we should be able to access geometry.

Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>
Reviewers: cedric, lukasz.stanislawski, kimcinoo

Subscribers: govi, rajeshps, cedric, jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
8 years agoelementary/layout: attach edje object API with eo compositing
Jee-Yong Um [Mon, 27 Jun 2016 18:18:02 +0000 (11:18 -0700)]
elementary/layout: attach edje object API with eo compositing

Test Plan: make check

Reviewers: Hermet, jpeg, cedric

Subscribers: slotus.lee

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
8 years agolabel: set sliding only if label size is valid
Minkyu Kang [Mon, 27 Jun 2016 18:12:16 +0000 (11:12 -0700)]
label: set sliding only if label size is valid

Summary:
When call slide_go before label is resized, setting the sliding is a meaningless.
This patch is for reducing redundant operations.

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: Deepjyoti Dutta <deepjyoti.d@samsung.com>
Test Plan: elementary_test -to "label slide"

Reviewers: cedric, Hermet

Subscribers: seoz, jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
8 years agoecore_wl2: Fix dnd breakage when focus leaves window
Marcel Hollerbach [Mon, 27 Jun 2016 15:31:59 +0000 (11:31 -0400)]
ecore_wl2: Fix dnd breakage when focus leaves window

Summary:
If dnd in the same window is activated, the focus goes away from the
ecore_wl2 window to the dnd window, after that focus.pointer is NULL.
After focus.pointer is NULL ev->win of all the events will be 0 which
breaks dnd-motions, drop and end.

With prev_pointer beeing the last focused window, we can simply set this
window as event window. After that dnd with jesus works perfectly.

@fix

Reviewers: devilhorns

Subscribers: cedric, jpeg

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

8 years agoUi text: make elm test editable
Daniel Hirt [Mon, 27 Jun 2016 15:34:21 +0000 (15:34 +0000)]
Ui text: make elm test editable

8 years agoCanvas text: fix format annotations deletion
Daniel Hirt [Mon, 27 Jun 2016 15:16:50 +0000 (15:16 +0000)]
Canvas text: fix format annotations deletion

8 years agoUi text: defer decorations to one job
Daniel Hirt [Wed, 22 Jun 2016 17:02:32 +0000 (17:02 +0000)]
Ui text: defer decorations to one job

Also, remove callbacks on the deletion.

8 years agoUi text: port item support from Entry
Daniel Hirt [Wed, 22 Jun 2016 12:12:15 +0000 (12:12 +0000)]
Ui text: port item support from Entry

This uses the annotations API to retrieve items and their geometries, instead of
the old format API.

8 years agoUi text: add cursor_new method
Daniel Hirt [Wed, 22 Jun 2016 12:05:47 +0000 (12:05 +0000)]
Ui text: add cursor_new method

The cursor object is meant to be instantiated in the following manner:
   eo_add(EFL_CANVAS_TEXT_CURSOR_CLASS, text_obj,
      efl_canvas_text_cursor_text_object_set(eo_self, text_obj));

This can't be done directly on the Ui Text object, so it has to be with an
method call, sadly.

@feature

8 years agoevas: Fix bad clipping with proxy
Jean-Philippe Andre [Mon, 27 Jun 2016 11:36:24 +0000 (20:36 +0900)]
evas: Fix bad clipping with proxy

evas-images2 example was broken due to excessive clipping.
This is one more issue with the cached clip geometry.

By default proxy_src_clip is true. The doc (that I wrote)
mentions that it means both objects (image proxy & source)
share the same clipper. So, this does not mean that the proxy
is clipped to the geometry of the source (this can be useful
in some cases, when replacing an object with a proxy to apply
some kind of effect on it... but this could be rare).

Thanks Amitesh for the report.

@fix

8 years agoecore: Replace TABs with spaces
Jean-Philippe Andre [Mon, 27 Jun 2016 08:26:32 +0000 (17:26 +0900)]
ecore: Replace TABs with spaces

8 years agoelm_main: Remove useless shadowing variable
Jean-Philippe Andre [Mon, 27 Jun 2016 07:40:59 +0000 (16:40 +0900)]
elm_main: Remove useless shadowing variable

8 years agoelm test: Remove unused variable
Jean-Philippe Andre [Mon, 27 Jun 2016 07:40:10 +0000 (16:40 +0900)]
elm test: Remove unused variable

8 years agoEvas events: Implement support for hold event
Jean-Philippe Andre [Tue, 31 May 2016 06:31:17 +0000 (15:31 +0900)]
Evas events: Implement support for hold event

8 years agoFix 'maybe used uninitialized' warning
Shuhrat Dehkanov [Mon, 27 Jun 2016 07:16:00 +0000 (16:16 +0900)]
Fix 'maybe used uninitialized' warning

Summary:
    bin/edje/edje_cc_out.c: In function ‘data_write_images’:
    bin/edje/edje_cc_out.c:1164:7: warning: ‘f’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        if (!f) return EINA_FALSE;
           ^
    bin/edje/edje_cc_out.c:1154:15: note: ‘f’ was declared here
        Eina_File *f;
                   ^

Reviewers: cedric, jpeg

Reviewed By: jpeg

Subscribers: seoz, jpeg

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

8 years agoevas: Make shaders regen an opt-in behaviour
Jean-Philippe Andre [Mon, 27 Jun 2016 07:00:50 +0000 (16:00 +0900)]
evas: Make shaders regen an opt-in behaviour

While the shaders automatic regeneration is very useful when
working on shaders, it has been the source of too many
build breaks.

So I'm making this regeneration an opt-in.

You work on shaders?
Set the env var EFL_SHD_REGEN=1

8 years agoRevert "evas: Fix compilation when using different build directory"
Jean-Philippe Andre [Mon, 27 Jun 2016 06:30:47 +0000 (15:30 +0900)]
Revert "evas: Fix compilation when using different build directory"

This reverts commit 3c13ef14e3511611cabf184ff0b83c264b3e620d.

This introduced new build breaks, especially with in-tree builds.
In particular, DIR was not defined. See T3975.

I'll make the shaders regen an opt-in rather than on by default.

8 years agoelm_entry: restrict focus region to inside of entry object area
Jiwon Kim [Mon, 27 Jun 2016 06:04:20 +0000 (15:04 +0900)]
elm_entry: restrict focus region to inside of entry object area

Summary:
Focus region must be located in entry object.
Therefore if it get out of entry,
 it just returns last cursor position that can be shown.

@fix

Test Plan:
1. elementary_test "Entry on Page Scroll"
2. click 2nd btn and close popup
3. page should not be scrolled

Reviewers: raster, herdsman, id213sin, woohyun, tasn, cedric

Subscribers: jpeg

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

8 years agoevas object: Hide "del" event
Jean-Philippe Andre [Fri, 24 Jun 2016 08:17:20 +0000 (17:17 +0900)]
evas object: Hide "del" event

In EO world, we should stick to EO_EVENT_DEL.

8 years agoelementary: add test for external icons
Jean Guyomarc'h [Sun, 26 Jun 2016 21:06:22 +0000 (23:06 +0200)]
elementary: add test for external icons

The ExtIcon elementary test shows how edje external icons
can be used.

8 years agoedje_external: fix external icon handling
Jean Guyomarc'h [Sun, 26 Jun 2016 17:42:21 +0000 (19:42 +0200)]
edje_external: fix external icon handling

External icons were handled with a global variable, which reason
to exist seem quite weird. It seems to me it was used to retain
some states of the actual parameters to get them later without having
access to the real parameters.

I don't really get how this would have worked with more than one
icon. When I tried to animate an external icon, with two states,
there were leaks and memory corruption... Now both are gone.

@fix

8 years agoeina: fix typos in eina_rectangle doc
Jean Guyomarc'h [Fri, 17 Jun 2016 06:18:51 +0000 (08:18 +0200)]
eina: fix typos in eina_rectangle doc

8 years agoelementary: include Ecore_Cocoa.h normally
Jean Guyomarc'h [Sat, 25 Jun 2016 10:24:35 +0000 (12:24 +0200)]
elementary: include Ecore_Cocoa.h normally

Guards are not necessary anymore.

8 years agoecore_cocoa: release Ecore_Cocoa as stable
Jean Guyomarc'h [Sat, 25 Jun 2016 10:21:44 +0000 (12:21 +0200)]
ecore_cocoa: release Ecore_Cocoa as stable

8 years agoecore_cocoa: mark clipboard API as BETA
Jean Guyomarc'h [Sat, 25 Jun 2016 10:13:59 +0000 (12:13 +0200)]
ecore_cocoa: mark clipboard API as BETA

Also, Since the API is beta, don't make is available to Doxygen.

8 years agoelm: Always connect to wl when enforced
Marcel Hollerbach [Sat, 25 Jun 2016 11:06:41 +0000 (13:06 +0200)]
elm: Always connect to wl when enforced

This is a followup on ca55a920d9a5f6a4274e40fcf901a89e622c3007.

This fixes cnp/dnd for applications started outside of the weston
session. (There are still more problems with dnd and cnp)

8 years agoedje/example: add a missing closing bracket in svg.
Hermet Park [Sat, 25 Jun 2016 03:37:23 +0000 (12:37 +0900)]
edje/example: add a missing closing bracket in svg.

8 years agoevas: Fix compilation when using different build directory
Felipe Magno de Almeida [Fri, 24 Jun 2016 21:35:04 +0000 (18:35 -0300)]
evas: Fix compilation when using different build directory

8 years agoelementary: return an exit code at exit with the new EFL_MAIN macro.
Cedric BAIL [Fri, 24 Jun 2016 23:45:22 +0000 (16:45 -0700)]
elementary: return an exit code at exit with the new EFL_MAIN macro.

8 years agoecore: add the possibility to return an exit code when leaving the main loop.
Cedric BAIL [Fri, 24 Jun 2016 23:44:59 +0000 (16:44 -0700)]
ecore: add the possibility to return an exit code when leaving the main loop.

8 years agoelementary: introduce EFL_MAIN and rely on Eo_Event to call the initialisation function.
Cedric BAIL [Fri, 24 Jun 2016 22:32:21 +0000 (15:32 -0700)]
elementary: introduce EFL_MAIN and rely on Eo_Event to call the initialisation function.

FIXME: Find a way to return an exit value. Maybe on efl_loop_quit ?

8 years agoRevert "elm_entry: fix duplicate text set"
Hermet Park [Fri, 24 Jun 2016 18:42:18 +0000 (03:42 +0900)]
Revert "elm_entry: fix duplicate text set"

This reverts commit 0959e87d999f424341acbc62a5934ad56134f99b.

This broke the entry behavior that introduced enventor critical issue also.
It looks like a timing issue, but i didn't deep into further.

Please check a simple test case.
https://phab.enlightenment.org/F38614

Before/after applying your patch, the result is totally different.

8 years agoevas: do not unref if there is no clipper
Marcel Hollerbach [Fri, 24 Jun 2016 12:44:50 +0000 (14:44 +0200)]
evas: do not unref if there is no clipper

check if there is a clipper set before accessing it. This fixes crashes
of the drm engine.

8 years agoecore_wl2_input: Fix key keyname pairs
Marcel Hollerbach [Fri, 24 Jun 2016 10:38:05 +0000 (12:38 +0200)]
ecore_wl2_input: Fix key keyname pairs

before key and keyname could have been filled invalid, for example the
character "ö" from the german layout produced "Odiaeresis" instead of ö.

This commit also documents and refactors _ecore_wl2_input_key_translate.
I added the documentation for later use, it was hard to find out why
this was done.
The function also drops the input now if invalid control codes would
have been generated, this is equivalent to the behaviour in x. So
applications cannot get confused by codes which dont exist.
It also doesnt check if there is actual output by checking the highest
bytes anymore, it just tries to create a utf8 character. This fixes
arabic greek and korean keyboard input on wl.

If this breaks the input for some user, feel free to contact me.

This fixes T3073.

8 years agoevas canvas: fix a proxy+map rendering issue.
Hermet Park [Fri, 24 Jun 2016 09:51:38 +0000 (18:51 +0900)]
evas canvas: fix a proxy+map rendering issue.

This fix is wrt the non-updation of the proxy object.
If a source of a proxy object has mapped objects among its children,
Rendering frame won't be correct while they were keeping changing.

The reason is, evas_object_smart_changed_get() couldn't figure those changes
out correctly because of cached-clip visibility.

Cached-clip of smart member can't be used for map surface updation,
because cached-clip includes the visiblity status out of the smart object.

So, loose the criteria to make it rendering smart members in map.

8 years agoconfig: Prevent accidental deletion of the config object
Jean-Philippe Andre [Thu, 23 Jun 2016 12:55:58 +0000 (21:55 +0900)]
config: Prevent accidental deletion of the config object

8 years agoconfig: Test profile APIs
Jean-Philippe Andre [Thu, 23 Jun 2016 12:54:11 +0000 (21:54 +0900)]
config: Test profile APIs

8 years agowin: Attach config API with eo compositing
Jean-Philippe Andre [Thu, 23 Jun 2016 12:39:33 +0000 (21:39 +0900)]
win: Attach config API with eo compositing

8 years agoconfig: Add support for profiles and save
Jean-Philippe Andre [Thu, 23 Jun 2016 12:29:55 +0000 (21:29 +0900)]
config: Add support for profiles and save

Most of these functions actually shouldn't be used by
standard applications. Some are hidden behind @protected.

flush_all() and reload() have not been implemented, on
purpose (save() should flush, and reload is automatic).

8 years agoconfig: Implement support for audio_mute
Jean-Philippe Andre [Thu, 23 Jun 2016 11:02:41 +0000 (20:02 +0900)]
config: Implement support for audio_mute

Instead of being a key "audio_mute" + another key "channel"
I've simply implemented a number of different keys:
audio_mute (= all)
audio_mute_all
audio_mute_effect
...

8 years agoconfig: Simplify Efl.Config API, make C helpers only
Jean-Philippe Andre [Thu, 23 Jun 2016 10:33:34 +0000 (19:33 +0900)]
config: Simplify Efl.Config API, make C helpers only

This removes the mixin functions and uses static inline functions
instead. Much cleaner, looks the same to C devs.

8 years agoconfig: Add support for some enums
Jean-Philippe Andre [Thu, 23 Jun 2016 09:46:04 +0000 (18:46 +0900)]
config: Add support for some enums

8 years agoelm: EO-ify some elm_config enums
Jean-Philippe Andre [Thu, 23 Jun 2016 07:45:32 +0000 (16:45 +0900)]
elm: EO-ify some elm_config enums

Elm_Focus_Autoscroll_Mode
Elm_Softcursor_Mode
Elm_Slider_Indicator_Visible_Mode (rename only)
Elm_Focus_Move_Policy (rename only)

This is for Efl.Config API.

8 years agoefl: Introduce general Efl.Config API
Jean-Philippe Andre [Tue, 21 Jun 2016 08:54:56 +0000 (17:54 +0900)]
efl: Introduce general Efl.Config API

This is to port elm_config to EO APIs.

The current implementation relies on the legacy API, by
simply forwarding calls.

The new API is simply efl_config_set("config_name", value)
where value is an Eina_Value (aka. generic_value).
The C interface proposes a few helpers like config_int_set,
config_double_set, etc...

Unfortunately at the moment, not all config options are
supported, as some rely on more complex types:
- lists
- color class and multiple arguments
- unset functions
- enums

Profiles are also not handled at this point.

@feature

8 years agoevas: (Try to) fix shaders gen without breaking everything
Jean-Philippe Andre [Fri, 24 Jun 2016 05:36:10 +0000 (14:36 +0900)]
evas: (Try to) fix shaders gen without breaking everything

So... adding the .x files to BUILT_SOURCES means they would
get deleted during clean. This was bad, but turned to be awful
when this made the check for writability fail.

See:
8a273158788d630e56b4dc14cdd44f0eaae6b7b5
2b8912462e0ec81efb8e30a63383b811f52e16f5

This commit reverts:
0b69356f1bbceab3261835bc2d4632f8f4669206

Notes:
Please revert if this breaks the build for anyone.
I'm pretty sure the use of top_srcdir is not recommended the
way I've done it.

I hate autofoo.

8 years agosvg/example: upload the correct svg file
Subhransu Mohanty [Fri, 24 Jun 2016 06:16:03 +0000 (15:16 +0900)]
svg/example: upload the correct svg file

Reviewers: cedric, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

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

8 years agoedje: fix the order of applying transformation when creating vg tree.
Subhransu Mohanty [Fri, 24 Jun 2016 06:15:54 +0000 (15:15 +0900)]
edje: fix the order of applying transformation when creating vg tree.

Reviewers: cedric, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

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

8 years agoevas vg: don't apply transformation to the origin point
Subhransu Mohanty [Fri, 24 Jun 2016 06:15:43 +0000 (15:15 +0900)]
evas vg: don't apply transformation to the origin point

Summary: Which will apply translate property twice once to shape and once to origin.

Reviewers: cedric, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

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

8 years agoevas/canvas: rewrite a previous patch, ed444b698b63e0086812062abb9e3065360eb0b2
Hermet Park [Fri, 24 Jun 2016 02:33:04 +0000 (11:33 +0900)]
evas/canvas: rewrite a previous patch, ed444b698b63e0086812062abb9e3065360eb0b2

Reviwed further, I found out the origin shouldn't be accumulated with
previous clippers origin. I forgot this function is recursive
function.

8 years agoRevert "evas: Fix distcheck by disabling shaders generation"
Carsten Haitzler (Rasterman) [Fri, 24 Jun 2016 00:53:37 +0000 (09:53 +0900)]
Revert "evas: Fix distcheck by disabling shaders generation"

this breaks the simplest configure + make ... so obviously it's broken

8 years agopo: catchup with file rename to efl_ui_video in POTFILES.in
Stefan Schmidt [Thu, 23 Jun 2016 21:27:43 +0000 (23:27 +0200)]
po: catchup with file rename to efl_ui_video in POTFILES.in

In commit 549e274acb69131b5fb7dccc1659372cef7a6572 this file was renamed but
POTFILES.in not updated.

8 years agowayland_shm: Make dmabuf opt-in
Derek Foreman [Thu, 23 Jun 2016 18:55:03 +0000 (13:55 -0500)]
wayland_shm: Make dmabuf opt-in

Some weird bugs and performance issues around these days, and I
keep chasing them in dmabuf first.  Removing it from the equation for
now.

8 years agoecore: fix Windows build by properly defining EAPI in all case for internal API user.
Cedric BAIL [Thu, 23 Jun 2016 17:53:46 +0000 (10:53 -0700)]
ecore: fix Windows build by properly defining EAPI in all case for internal API user.

8 years agoelementary: fix test of internal widget to redefine unaccessible variable.
Cedric BAIL [Thu, 23 Jun 2016 17:46:16 +0000 (10:46 -0700)]
elementary: fix test of internal widget to redefine unaccessible variable.

8 years agoedje: handle named color in svg.
Subhransu Mohanty [Thu, 23 Jun 2016 17:17:28 +0000 (10:17 -0700)]
edje: handle named color in svg.

Reviewers: jpeg, cedric

Reviewed By: jpeg, cedric

Subscribers: conr2d, cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agocanvas/vg: fix the reference issue in evas_vg objects.
Subhransu Mohanty [Thu, 23 Jun 2016 17:15:41 +0000 (10:15 -0700)]
canvas/vg: fix the reference issue in evas_vg objects.

Reviewers: jpeg, cedric

Reviewed By: cedric

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoedje/svg: add few error message reagrding parsing and storing of svg file.
Subhransu Mohanty [Thu, 23 Jun 2016 17:12:20 +0000 (10:12 -0700)]
edje/svg: add few error message reagrding parsing and storing of svg file.

Reviewers: cedric, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoedje: replace 4000x4000 min size limitarion with loop count restriction.
Youngbok Shin [Thu, 23 Jun 2016 17:11:39 +0000 (10:11 -0700)]
edje: replace 4000x4000 min size limitarion with loop count restriction.

Summary:
4000x4000 min size limitation was added to prevent infinite
calculation loop. But, it can ruin calculation of some proper Edjes.
Normally, properly generated Edje runs the calculation loop below 10 times.
So, "255" could be proper limitation for calculation loop.
It also make better performance for broken Edje.

Test Plan: N/A

Reviewers: raster, Hermet, woohyun, cedric

Reviewed By: cedric

Subscribers: jpeg, z-wony, Blackmole

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoelm_index: include horizontal index to omit calculation
Sungtaek Hong [Thu, 23 Jun 2016 17:10:26 +0000 (10:10 -0700)]
elm_index: include horizontal index to omit calculation

Summary:
- when index is set to horizontal by elm_index_horizontal_set()
  there is no logic about omit calculation. However, when
  omit is enabled/disabled by elm_index_omit_enabled_set(),
  horizontal index is ignored by
  if (sd->orientation == EFL_ORIENT_HORIZONTAL) return;
- This can cause inconsistency when order of calling those APIs
  is changed. And also, that "horizontal index cannot be omitted" is not documented
  and does not make sense.
- This commit enables omit for horizontal index, but further
  change is needed because current logic of getting min_w for
  dummy edje object is not accurate when text is set.

Reviewers: cedric, jpeg, Hermet, conr2d

Reviewed By: conr2d

Subscribers: eunue, conr2d, cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agogenlist: scroll to item when calc is done
Jee-Yong Um [Thu, 23 Jun 2016 17:09:13 +0000 (10:09 -0700)]
genlist: scroll to item when calc is done

Summary:
If elm_genlist_item_bring_in() is called immediately after appending
item, genlist will not scroll to the last one but stop in the middle.
This patch blocks genlist from scrolling to not calculated item.

Test Plan:
1. Download F31560 and uncompress the file
2. make
3. ./test

Reviewers: SanghyeonLee

Subscribers: cedric, DaveMDS, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoelementary/scroller: fix to skip focus for unfocusable scroller
soohye [Wed, 22 Jun 2016 23:55:07 +0000 (16:55 -0700)]
elementary/scroller: fix to skip focus for unfocusable scroller

Summary:
There is a issue about passing the focus to unfocusable scroller.
To prevent the issue, check the status of focusable object and child object
before passing the focus.

Test Plan:
{F38439}

I changed the test file.
The problem occured as below.

1. click button
2. show popup
3. click cancel button in popup
4. lost the focus

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: minkyu, sju27, cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoevas: avoid calculation bounding for camera and light objects
Oleksandr Shcherbina [Wed, 22 Jun 2016 23:53:47 +0000 (16:53 -0700)]
evas: avoid calculation bounding for camera and light objects

Summary:
Including camera and light to calculation aabb can lead to confusing in detemination
bounding of the whole scene (root node).
@fix

Reviewers: cedric, Hermet, raster

Subscribers: jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoefl_ui_video: convert elm_video to efl_ui_video
Yeshwanth Reddivari [Wed, 22 Jun 2016 23:50:05 +0000 (16:50 -0700)]
efl_ui_video: convert elm_video to efl_ui_video

Test Plan: elementary_test -to video

Reviewers: singh.amitesh, raster, cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoevas canvas: fix broken proxy clipping.
Hermet Park [Thu, 23 Jun 2016 15:48:34 +0000 (00:48 +0900)]
evas canvas: fix broken proxy clipping.

Origin of clipper's clipper won't be transformed to derivative space.
So it needs to transform the coordinate additionally.

8 years agoevas canvas: code refactoring.
Hermet Park [Thu, 23 Jun 2016 15:26:02 +0000 (00:26 +0900)]
evas canvas: code refactoring.

Compare integers clearly.

8 years agoexamples: emotion: make sure all callbacks are actually setup
Stefan Schmidt [Thu, 23 Jun 2016 12:07:29 +0000 (14:07 +0200)]
examples: emotion: make sure all callbacks are actually setup

In commit 3340745c65ef8b8361dc6eff5e746f7ce1104378 the callback array got
removed letting all callback functions around as unused. Somehow the setup
of all these callbacks have gone missing over various refactors.

8 years agoevas: Fix distcheck by disabling shaders generation
Jean-Philippe Andre [Thu, 23 Jun 2016 08:46:35 +0000 (17:46 +0900)]
evas: Fix distcheck by disabling shaders generation

make distcheck is verified by checking the env var "top_distdir"
This is not a great solution but should work.

8 years agosvg/example: fixed typo in svg file name
Subhransu Mohanty [Thu, 23 Jun 2016 08:36:09 +0000 (17:36 +0900)]
svg/example: fixed typo in  svg file name

Reviewers: cedric, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

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

8 years agosvg/loader : Added parsing support for use and def node.
Subhransu Mohanty [Thu, 23 Jun 2016 08:35:55 +0000 (17:35 +0900)]
svg/loader : Added parsing support for use and def node.

Reviewers: cedric, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

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

8 years agowin: Add property accel_preference
Jean-Philippe Andre [Thu, 23 Jun 2016 02:06:22 +0000 (11:06 +0900)]
win: Add property accel_preference

It supports the same syntax as the config value, but
overrides it. This provides a more convenient way to select
the acceleration for a single window.

Its get() value should be what was effective when the window was
created. So it can depend on the config or a previous call
to set().

@feature

8 years agoexamples: elementary: remove unused variable
Stefan Schmidt [Thu, 23 Jun 2016 08:34:27 +0000 (10:34 +0200)]
examples: elementary: remove unused variable

If we are not using something we should not keep it in the code base.
Git history has it all.

8 years agoexamples: rename eio_job to efl_io_manager, finish a job half done
Stefan Schmidt [Thu, 23 Jun 2016 08:30:57 +0000 (10:30 +0200)]
examples: rename eio_job to efl_io_manager, finish a job half done

This rename was missing in the examples. Running make examples or even a
simple grep shows this. I expect higher b0rking skills by now. :)

8 years agoedje_text: fix the fit calculation for different text size
Vyacheslav Reutskiy [Thu, 23 Jun 2016 06:10:07 +0000 (09:10 +0300)]
edje_text: fix the fit calculation for different text size

Fixed T3569

@fix

8 years agoelm code: check return value from elm_layout_theme_set
Amitesh Singh [Thu, 23 Jun 2016 03:57:46 +0000 (09:27 +0530)]
elm code: check return value from elm_layout_theme_set

CID: 1356991

8 years agosvg_loader: Fixed the parsing of style attribute in g node as well as inheriting...
Subhransu Mohanty [Thu, 23 Jun 2016 01:11:46 +0000 (10:11 +0900)]
svg_loader: Fixed the parsing of style attribute in g node as well as inheriting style attribute from parent.

Reviewers: jpeg, cedric

Reviewed By: cedric

Subscribers: cedric, jpeg

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

8 years agoelm_entry: fix duplicate text set
WooHyun Jung [Thu, 23 Jun 2016 01:07:33 +0000 (10:07 +0900)]
elm_entry: fix duplicate text set

Summary:
When user set text to entry, "changed" smart callback is invoked 2 times.
Because entry set to ""(empty string) and append text internally.
But, in a recent, set flag is added for _entry_text_append().
So, empty string set is does not needed before appending.

@fix

Test Plan:
- elm_entry_entry_set(entry, "text") : 2 times invoked (bug)
- elm_object_part_text_set(entry, NULL, "text") : 2 times invoked (bug)
- elm_object_part_text_set(entry, "elm.text", "text") : 1 times invoked

Reviewers: herdsman, tasn, id213sin, woohyun

Reviewed By: woohyun

Subscribers: cedric, jpeg

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

8 years agoecore: fix arguments to use Eo native array type.
Cedric BAIL [Wed, 22 Jun 2016 21:36:39 +0000 (14:36 -0700)]
ecore: fix arguments to use Eo native array type.

8 years agoeio: register one Efl_Io_Manager by default on the main loop at init time.
Cedric BAIL [Thu, 16 Jun 2016 22:14:12 +0000 (15:14 -0700)]
eio: register one Efl_Io_Manager by default on the main loop at init time.

8 years agoeio: rename eio_job to efl_io_manager.
Cedric BAIL [Thu, 16 Jun 2016 22:13:22 +0000 (15:13 -0700)]
eio: rename eio_job to efl_io_manager.

There is still a lot of work to do in this API to make it efficient and
stable. Will try to get at it before 1.18 release.

8 years agoecore: add test for registered provider.
Cedric BAIL [Thu, 16 Jun 2016 22:10:49 +0000 (15:10 -0700)]
ecore: add test for registered provider.

8 years agoecore: add ability for the main loop to provide other class of object.
Cedric BAIL [Thu, 16 Jun 2016 18:38:47 +0000 (11:38 -0700)]
ecore: add ability for the main loop to provide other class of object.

8 years agodocs: update gendoc.lua to latest eolian API
Daniel Kolesa [Wed, 22 Jun 2016 16:46:29 +0000 (17:46 +0100)]
docs: update gendoc.lua to latest eolian API

8 years agoelm win: only set wl cursors on mouse in to the window area
Mike Blumenkrantz [Wed, 22 Jun 2016 15:17:36 +0000 (11:17 -0400)]
elm win: only set wl cursors on mouse in to the window area

in the case of csd regions, canvas mouse in != window mouse in

ref T3819

8 years agoelm win: set input regions for wl windows again
Mike Blumenkrantz [Wed, 22 Jun 2016 15:16:58 +0000 (11:16 -0400)]
elm win: set input regions for wl windows again

this seems to have been lost at some point and was breaking input

ref T3819

8 years agoUi text: Add an editable variant (tiny wrapper).
Tom Hacohen [Wed, 22 Jun 2016 13:22:27 +0000 (14:22 +0100)]
Ui text: Add an editable variant (tiny wrapper).

As part of this commit, also add a way to change whether the widget is
editable or not.

8 years agoCanvas text: Add missing cursor changed callbacks.
Tom Hacohen [Wed, 22 Jun 2016 12:43:02 +0000 (13:43 +0100)]
Canvas text: Add missing cursor changed callbacks.

In some cases we were changing the cursors but not emitting callbacks.
This should fix that.

8 years agoCanvas text: Don't call callbacks while cursors are in inconsistent states.
Tom Hacohen [Wed, 22 Jun 2016 12:42:26 +0000 (13:42 +0100)]
Canvas text: Don't call callbacks while cursors are in inconsistent states.

The issue is that in some cases we were calling user code (callbacks)
when some of the nodes were referencing already deleted text nodes. This
caused invalid memory access. This commit delays the callback calling
until after all of the cursors got into a consistent legal state.

8 years agoelc_combobox.c: apply style to inner parts of combobox like entry and genlist
Vitalii Vorobiov [Wed, 22 Jun 2016 11:37:28 +0000 (14:37 +0300)]
elc_combobox.c: apply style to inner parts of combobox like entry and genlist

this will allow to make more custom styles and themes for combobox

@fix