platform/upstream/efl.git
8 years agoEvas textblock: Save memory space reducing unused hyphen dictionary loads
Youngbok Shin [Thu, 4 Feb 2016 09:29:03 +0000 (11:29 +0200)]
Evas textblock: Save memory space reducing unused hyphen dictionary loads

Summary:
Commonly, only few hyphenation dictionaries are used at a application.
So, loading all of dictionary files could cause waste of memory.
Evas textblock has to load hyphenation dictionaries only when it is
really needed.

Test Plan: N/A

Reviewers: woohyun, tasn, herdsman

Subscribers: cedric, jpeg

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

8 years agoThis should not have been pushed. Revert
Chris Michael [Thu, 4 Feb 2016 14:44:45 +0000 (09:44 -0500)]
This should not have been pushed. Revert

Revert "ecore-drm: Add API functions for rotation support"

This reverts commit b8ceaf0d403ce640ed6a485a59a3bd5a7b06a260.

8 years agoThis should not have been pushed. Unsure what happened here, but
Chris Michael [Thu, 4 Feb 2016 14:44:17 +0000 (09:44 -0500)]
This should not have been pushed. Unsure what happened here, but
revert this

Revert "ecore-drm: Add opaque type for Plane support"

This reverts commit 94082f54e8ce7d47402ea5d8d57e3871f8fa98a4.

8 years agoecore-drm: Add API functions for rotation support
Chris Michael [Wed, 20 Jan 2016 15:48:38 +0000 (10:48 -0500)]
ecore-drm: Add API functions for rotation support

This adds 2 new API functions for getting supported rotations of an
output, and for setting rotation on an output

@feature

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoecore-drm: Add opaque type for Plane support
Chris Michael [Wed, 20 Jan 2016 15:46:40 +0000 (10:46 -0500)]
ecore-drm: Add opaque type for Plane support

This adds an opaque structure to represent a hardware plane for use in
rotation, setting cursor/overlay/primary plane content, etc

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
ecore-drm: Add API functions for rotation support

This adds 2 new API functions for getting supported rotations from an
output, and for setting rotation on an output.

@feature

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoecore-drm: Add internal function to create planes for an output
Chris Michael [Thu, 4 Feb 2016 14:14:31 +0000 (09:14 -0500)]
ecore-drm: Add internal function to create planes for an output

This patch adds an internal function that we use during output
creation in order to create the planes necessary and get the supported
rotation values for an output

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoecore-drm: Add API function to set rotation on an output
Chris Michael [Thu, 4 Feb 2016 14:00:54 +0000 (09:00 -0500)]
ecore-drm: Add API function to set rotation on an output

This patch adds an API function to allow the Screen Setup dialog in
Enlightenment to support setting rotations on an output when running
under drm

@feature

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoecore-drm: Add API function to get supported rotations from an output
Chris Michael [Thu, 4 Feb 2016 13:56:32 +0000 (08:56 -0500)]
ecore-drm: Add API function to get supported rotations from an output

This patch adds an API function so that we can get the supported
rotations from an output. This is needed so that the Screen Setup
dialog in Enlightenment can list the rotations supported for the user
to choose from while running using drm

@feature

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoecore-drm: Add opaque structure for Ecore_Drm_Plane
Chris Michael [Thu, 4 Feb 2016 13:53:16 +0000 (08:53 -0500)]
ecore-drm: Add opaque structure for Ecore_Drm_Plane

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoEvas: Use proper language for harfbuzz shaping
Youngbok Shin [Thu, 4 Feb 2016 10:07:08 +0000 (10:07 +0000)]
Evas: Use proper language for harfbuzz shaping

Summary:
Evas Text, Textblock, Textgrid keeps own language information.
This language information could be vary from the result of setlocale().
Especially, Evas Textblock supports <lang> tag. The language could be
changed in the middle of text. All of these language has to be used
for harfbuzz shaping.
@fix

Test Plan: N/A

Reviewers: herdsman, raster, woohyun, tasn

Reviewed By: tasn

Subscribers: cedric, jpeg

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

8 years agoEo tests: Add tests for eo_init()/shutdown() cycles.
Tom Hacohen [Wed, 3 Feb 2016 16:52:25 +0000 (16:52 +0000)]
Eo tests: Add tests for eo_init()/shutdown() cycles.

We needed to fix the issue and remove a workaround in the test suite
before we could add these tests. Now they are here and they test that
init/shutdown cycles work as expected.

8 years agoEo tests: remove hack to prevent eo_init()/shutdown() cycles.
Tom Hacohen [Wed, 3 Feb 2016 16:38:29 +0000 (16:38 +0000)]
Eo tests: remove hack to prevent eo_init()/shutdown() cycles.

We can now remove it thanks to the previous commit.

8 years agoEo: add support for initialising eo after it has been shut down.
Tom Hacohen [Wed, 3 Feb 2016 16:14:07 +0000 (16:14 +0000)]
Eo: add support for initialising eo after it has been shut down.

Until now it wasn't allowed/possible to init (eo_init) eo after it has
been shut down (eo_shutdown). This commit fixes that, so now that is
fully legal to have as many init/shutdown cycles as you want.

There was a previous workaround for this issue:
e47edc250dc715a6b0f94be4b1cb81d32e9d97fe.

This should allow more flexibility when using the EFL in loadable
modules and in various other scenarios.

The problem is that the class_get() functions cache the previously
created class for efficiency, but the class is freed if eo is shut down,
so the cached pointer is actually invalid.
The solution to the problem was to maintain a generation count
(incremented every time we shut down eo), and compare that to a locally
saved version in class_get(). If they don't match, recreate the class,
as it has already been freed.

@feature

8 years agoRevert "Eo: Prevent shutdown from actually doing anything"
Tom Hacohen [Wed, 3 Feb 2016 15:39:25 +0000 (15:39 +0000)]
Revert "Eo: Prevent shutdown from actually doing anything"

This commit was a workaround to let us shutdown and then init eo without
any issues. It leaks and it's wrong. This will properly be fixed in the
next commit.

This reverts commit e47edc250dc715a6b0f94be4b1cb81d32e9d97fe.

8 years agoecore_imf/wayland: Fix IME hide -> show issue in case of focus-out and then focus-in
Haifeng Deng [Tue, 24 Nov 2015 09:30:14 +0000 (17:30 +0800)]
ecore_imf/wayland: Fix IME hide -> show issue in case of focus-out and then focus-in

Change-Id: I1d3d7023dbd10b78f510380ff3c46087228f9180

8 years agoecore_imf/wayland: do not check input panel enable in show or hide
Jihoon Kim [Thu, 4 Feb 2016 04:57:43 +0000 (13:57 +0900)]
ecore_imf/wayland: do not check input panel enable in show or hide

Input panel enable is already being checked in ecore_imf API.

8 years agoecore_imf/wayland: support to set prediction allow mode
Jihoon Kim [Thu, 4 Feb 2016 03:00:45 +0000 (12:00 +0900)]
ecore_imf/wayland: support to set prediction allow mode

8 years agoecore_imf/wayland: notify language changed
Jihoon Kim [Thu, 4 Feb 2016 02:58:03 +0000 (11:58 +0900)]
ecore_imf/wayland: notify language changed

8 years agoecore_imf/wayland: Add support to get input panel language locale
Jihoon Kim [Thu, 4 Feb 2016 02:56:13 +0000 (11:56 +0900)]
ecore_imf/wayland: Add support to get input panel language locale

8 years agoecore_imf/ibus: fix indentation
Jihoon Kim [Wed, 3 Feb 2016 23:44:14 +0000 (08:44 +0900)]
ecore_imf/ibus: fix indentation

8 years agoedje: fix edje_file_data_get() when no collections are present
Jean Guyomarc'h [Wed, 3 Feb 2016 23:23:34 +0000 (15:23 -0800)]
edje: fix edje_file_data_get() when no collections are present

Summary:
edje_file_data_get() failed if the Edje file did not contain
a collection (e.g. contained only data.item.
This allows to load data from the file even when no collections
are present, but only if specified.

@fix

Reviewers: raster, jpeg, stefan_schmidt, cedric

Reviewed By: cedric

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoedje: add "keys" block to classes setter/getter
Jee-Yong Um [Wed, 3 Feb 2016 23:21:14 +0000 (15:21 -0800)]
edje: add "keys" block to classes setter/getter

Summary:
With "keys" block, make color/text/size_class setter/getter
to @property methods.

Reviewers: jpeg, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoeolian-js: Remove replacing commas by underscores in events.
Felipe Magno de Almeida [Wed, 3 Feb 2016 23:06:17 +0000 (21:06 -0200)]
eolian-js: Remove replacing commas by underscores in events.

This was done before when the identifier was used to generate
methods. Now using strings to denote events this is not needed
anymore.

8 years agoeolian-js: Modified formating to replace verb position in method names
Felipe Magno de Almeida [Sun, 17 Jan 2016 16:09:55 +0000 (14:09 -0200)]
eolian-js: Modified formating to replace verb position in method names

Formatting now checks if the last function is a known verb and changes
its position to the first word of the method if it is. Making the
method use the same coding standard as node.js.

8 years agoeina-cxx: Fix instantiating eina domain without eina_init
Felipe Magno de Almeida [Sun, 17 Jan 2016 16:07:17 +0000 (14:07 -0200)]
eina-cxx: Fix instantiating eina domain without eina_init

Added eina_init to eina_domain initialization as to force eina_init to
happen before initialization of global eina domains. This fixes
eolian_js domain in src/bin/eolian_js.

8 years agoEo: fix eo_shutdown()'s return value to be FALSE on shutdown.
Tom Hacohen [Wed, 3 Feb 2016 16:32:50 +0000 (16:32 +0000)]
Eo: fix eo_shutdown()'s return value to be FALSE on shutdown.

The return value of init/shutdown is true if eo is init, false otherwise.
This was broken until now.

@fix.

8 years agoEfl: Fixup ref in eo file that I forgot to commit
Jean-Philippe Andre [Wed, 3 Feb 2016 11:13:46 +0000 (20:13 +0900)]
Efl: Fixup ref in eo file that I forgot to commit

8 years agoEfl: Eo-ify remaining Efl.Gfx enums and structs
Jean-Philippe Andre [Wed, 3 Feb 2016 09:23:45 +0000 (18:23 +0900)]
Efl: Eo-ify remaining Efl.Gfx enums and structs

8 years agoEvas textgrid: Use default language according to locale
Youngbok Shin [Wed, 3 Feb 2016 09:34:32 +0000 (09:34 +0000)]
Evas textgrid: Use default language according to locale

Summary:
Use default language according to locale.
It's the same as the recent changes on Evas Text, Textblock.
@feature

Test Plan: N/A

Reviewers: herdsman, raster, tasn

Subscribers: cedric, jpeg

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

8 years agoEo base: Make object del event @hot.
Tom Hacohen [Wed, 3 Feb 2016 09:15:04 +0000 (09:15 +0000)]
Eo base: Make object del event @hot.

This event also needs to be hot, because it's lifecycle related.
We could leak and etc. if this event is not hot.

@fix.

8 years agoEcore evas: Fix compilation warning (missing initializer)
Jean-Philippe Andre [Wed, 3 Feb 2016 05:53:54 +0000 (14:53 +0900)]
Ecore evas: Fix compilation warning (missing initializer)

8 years agoEvas engines: Add missing initializers in Ecore_Evas_Engine_Func
Jean-Philippe Andre [Wed, 3 Feb 2016 05:48:45 +0000 (14:48 +0900)]
Evas engines: Add missing initializers in Ecore_Evas_Engine_Func

8 years agoefl: Update mailmap addresses
Chris Michael [Tue, 2 Feb 2016 20:01:58 +0000 (15:01 -0500)]
efl: Update mailmap addresses

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoedje: remove unecessary forced call to recalc all edje file.
Cedric BAIL [Tue, 2 Feb 2016 00:01:18 +0000 (16:01 -0800)]
edje: remove unecessary forced call to recalc all edje file.

This seems to be a fair improvement as it speeds up by 4% the shutdown
of application (and an overall benchmark used to track where genlist
spend its time).

8 years agoevas: don't emit EVAS_CALLBACK_MOVE event if nobody is listening.
Cedric BAIL [Mon, 1 Feb 2016 23:46:50 +0000 (15:46 -0800)]
evas: don't emit EVAS_CALLBACK_MOVE event if nobody is listening.

This give a constant improvement of 2% over a total benchmark run while scrolling
genlist. This benchmark included setup and destruction of the scene, so under
estimate the cost of the callback emit.

8 years agoevas: no need to call legacy function internally when we can just dereference some...
Cedric BAIL [Fri, 29 Jan 2016 20:42:36 +0000 (21:42 +0100)]
evas: no need to call legacy function internally when we can just dereference some pointers.

8 years agoecore_evas: add log when registering, unregistering and emitting animator.
Cedric BAIL [Thu, 28 Jan 2016 22:59:07 +0000 (14:59 -0800)]
ecore_evas: add log when registering, unregistering and emitting animator.

8 years agoecore_evas: switch main animator to use the first windows source for tick.
Cedric BAIL [Thu, 28 Jan 2016 00:00:42 +0000 (16:00 -0800)]
ecore_evas: switch main animator to use the first windows source for tick.

8 years agoeo: return a value when adding or removing callback to help the caller manage state.
Cedric BAIL [Wed, 27 Jan 2016 19:42:48 +0000 (11:42 -0800)]
eo: return a value when adding or removing callback to help the caller manage state.

8 years agoedje: switch to use per window animator.
Cedric BAIL [Tue, 26 Jan 2016 00:29:36 +0000 (16:29 -0800)]
edje: switch to use per window animator.

8 years agoecore_evas: optimize triggering of animator to happen only when someone is listening.
Cedric BAIL [Mon, 25 Jan 2016 23:44:54 +0000 (15:44 -0800)]
ecore_evas: optimize triggering of animator to happen only when someone is listening.

8 years agoecore_evas: introduce support for per window animator trigger.
Cedric BAIL [Mon, 25 Jan 2016 23:18:28 +0000 (15:18 -0800)]
ecore_evas: introduce support for per window animator trigger.

This code is currently only using the older fallback code and not any
new event source, so all animator on all window are still triggered
whatever the case are.

8 years agoevas: make evas object an animator provider.
Cedric BAIL [Fri, 29 Jan 2016 00:15:20 +0000 (16:15 -0800)]
evas: make evas object an animator provider.

8 years agoevas: make evas a provider of animator.
Cedric BAIL [Fri, 29 Jan 2016 00:13:55 +0000 (16:13 -0800)]
evas: make evas a provider of animator.

8 years agoefl: add Efl.Core.Animator interface.
Cedric BAIL [Fri, 29 Jan 2016 00:12:39 +0000 (16:12 -0800)]
efl: add Efl.Core.Animator interface.

8 years agoeo: fix tests to actually account for callback,add and del signal to be @hot.
Cedric BAIL [Tue, 2 Feb 2016 18:39:41 +0000 (10:39 -0800)]
eo: fix tests to actually account for callback,add and del signal to be @hot.

This example of code is a perfect demonstration of why we should have make
this events @hot from the beginning. As you can see, we ended up being unable
to detect reliably callback being registered and unregistered. Leading to an
negative accounting of callback being unregistered, making this signal unusable
in any scenario.

8 years agoeo: mark both callback,add and callback,del as @hot.
Cedric BAIL [Tue, 2 Feb 2016 18:28:28 +0000 (10:28 -0800)]
eo: mark both callback,add and callback,del as @hot.

This events needs to be hot to remain unfreezable or it is impossible
for anyone to track all callback setting/unsetting safely.

8 years agoevas: move canvas event to be declared inside proper eolian file.
Cedric BAIL [Fri, 22 Jan 2016 23:07:51 +0000 (15:07 -0800)]
evas: move canvas event to be declared inside proper eolian file.

8 years agoecore: remove useless ecore_lock/unlock.
Cedric BAIL [Thu, 14 Jan 2016 22:52:37 +0000 (14:52 -0800)]
ecore: remove useless ecore_lock/unlock.

8 years agoeolian: add parsing and generation of hot events
Daniel Kolesa [Tue, 2 Feb 2016 17:55:01 +0000 (17:55 +0000)]
eolian: add parsing and generation of hot events

Unfreezable events can now be marked @hot.

@feature

8 years agoRevert "Revert "Revert "revise edje_object_size_min_restricted_calc() logic."""
Carsten Haitzler (Rasterman) [Tue, 2 Feb 2016 14:12:25 +0000 (23:12 +0900)]
Revert "Revert "Revert "revise edje_object_size_min_restricted_calc() logic."""

This reverts commit ade138a3d13f7cd1606d0c80cf40fa71cd1d983a.

Revert this commit because this basically causes e to hang solid if
you mousover ibar (and the window list popup slides in then i think
that tyriggers it). this is pretty bad.

8 years agoevas/canvas: fix an incorrect sizing of smart object bounding box.
Hermet Park [Tue, 2 Feb 2016 12:14:43 +0000 (21:14 +0900)]
evas/canvas: fix an incorrect sizing of smart object bounding box.

height of the children b-box should be arranged by parent y-pos.

Signed-Off-By: KeuckDo Bang <keuckdo.bang@samsung.com>
Signed-Off-By: MinKyu Kim <imetjade.kim@samsung.com>
@fix

8 years agoRevert "Revert "increase recalculation_cycle.""
Hermet Park [Tue, 2 Feb 2016 10:25:28 +0000 (19:25 +0900)]
Revert "Revert "increase recalculation_cycle.""

This reverts commit 9efdf309ce421affc0fdf87960df1d4c426217bd.

8 years agoRevert "Revert "revise edje_object_size_min_restricted_calc() logic.""
Hermet Park [Tue, 2 Feb 2016 10:24:50 +0000 (19:24 +0900)]
Revert "Revert "revise edje_object_size_min_restricted_calc() logic.""

This reverts commit b62d656dbe2a4b4a6b0170526db33ad839cd4aa4.

push it again since 1.17 was released.

8 years agoEvas textblock: Use a common thickness and position at a underline.
Youngbok Shin [Wed, 27 Jan 2016 13:14:52 +0000 (13:14 +0000)]
Evas textblock: Use a common thickness and position at a underline.

Summary:
If a underline is drawn with seperated thickness and position, it doesn't look good.
It will take the thickest and the lowest underline.

@feature

Test Plan:
Set the following markup text in Evas Textblock.
<underline=on underline_color=#fff><font_size=20>Markup text <font_size=50>with</font_size> underline tag</font_size></underline>

It shows the underline is split to 3 underlines with different thickness and positions.
Commonly, underline has to be drawn with same thickness ans position per each line.

Reviewers: woohyun, herdsman, tasn

Reviewed By: tasn

Subscribers: jpeg, raster, subodh6129, cedric

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

8 years agoEvas Text/Textblock: Use locale for lang as default.
Youngbok Shin [Tue, 26 Jan 2016 10:48:42 +0000 (10:48 +0000)]
Evas Text/Textblock: Use locale for lang as default.

Summary:
The configuration files for Fontconfig can describe
how font list is made according to language information.
EFL also set the language for each Evas textblock styles
and used for loading font list.

But, this is inconvenient to use if we want to apply language
for loading font list according to system-wide locale information.
This patch will apply locale information for font list if there is
no specific language in description.

And it also add [lang=auto] for Evas Textblock.
auto - It loads locale for language.
none - It disables language.

@feature

Test Plan: N/A

Reviewers: woohyun, herdsman, tasn

Subscribers: jpeg, cedric

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

8 years agoedje: Reduce duplicated item obj creations and deletions.
Youngbok Shin [Tue, 12 Jan 2016 13:20:19 +0000 (13:20 +0000)]
edje: Reduce duplicated item obj creations and deletions.

Summary:
When text is changed, all of objects for item tag are deleted
and recreated. It is unnecessary work and can cause performance
issues. Actually, many of application developers wonder why
item provider callback functions are called every text changes.
@fix

Test Plan:
Run elementary_test -to "entry emoticon"
When you make a very little change on text,
36 emoticon objects are recreated.

Reviewers: woohyun, jaehwan, herdsman, tasn

Reviewed By: tasn

Subscribers: cedric, jpeg

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

8 years agoconfigure: Switch to dev mode again. Merge window for 1.18 is now open.
Stefan Schmidt [Tue, 2 Feb 2016 10:18:35 +0000 (11:18 +0100)]
configure: Switch to dev mode again. Merge window for 1.18 is now open.

8 years agorelease: Update NEWS and bump version for 1.17.0 release
Stefan Schmidt [Tue, 2 Feb 2016 09:25:12 +0000 (10:25 +0100)]
release: Update NEWS and bump version for 1.17.0 release

8 years agoRevert "revise edje_object_size_min_restricted_calc() logic."
Hermet Park [Tue, 2 Feb 2016 09:11:35 +0000 (18:11 +0900)]
Revert "revise edje_object_size_min_restricted_calc() logic."

This reverts commit 32c12f60c99cbc363c1f65fcb9c7915398be087e.

rollback until release 1.17

8 years agoRevert "increase recalculation_cycle."
Hermet Park [Tue, 2 Feb 2016 09:11:19 +0000 (18:11 +0900)]
Revert "increase recalculation_cycle."

This reverts commit 524fd2f6fc9afdd44fd371d99179d44a28bfd28a.

rollback until release 1.17

8 years agoRevert "evas/canvas: simple optimization."
Hermet Park [Tue, 2 Feb 2016 09:09:01 +0000 (18:09 +0900)]
Revert "evas/canvas: simple optimization."

This reverts commit ca124ce5cea162f130eeb80b6c95ee3fadd64761.

rollback until release 1.17

8 years agoevas/canvas: simple optimization.
Hermet Park [Tue, 2 Feb 2016 08:59:27 +0000 (17:59 +0900)]
evas/canvas: simple optimization.

We don't need to reorder the clist here as far as I reviewed.
Because, the clist nodes will be calculated all in one.

If I'm wrong please ping me.

8 years agoincrease recalculation_cycle.
Hermet Park [Tue, 2 Feb 2016 08:54:29 +0000 (17:54 +0900)]
increase recalculation_cycle.

256 is too short.
entry can be much larger than this calculation cycle.

8 years agorevise edje_object_size_min_restricted_calc() logic.
Hermet Park [Tue, 2 Feb 2016 08:40:11 +0000 (17:40 +0900)]
revise edje_object_size_min_restricted_calc() logic.

This change is to fix the 4000x4000 limitation issue in edje.
Previously, the sizing calc logic was experimentally confirmed with 4000x4000.
It worked somehow but was not perfect. This change may not be perfect either but
it gets rid of the limitation problem without any performance drop in
computating. Maybe it would be better than before.
I'd rather push the temporary version before we confirmed no side effects.

@fix T2978

8 years agoeldbus: Correctly read/write boolean to eina_value
José Roberto de Souza [Wed, 27 Jan 2016 20:32:49 +0000 (18:32 -0200)]
eldbus: Correctly read/write boolean to eina_value

DBus bool type is a uint32_t not a uint8_t, just changing how read
and write, not chaging how it is stored in eina_value to save some
bytes of RAM.

This fix the stack overflow pointed out here: https://phab.enlightenment.org/T3089

@fix

8 years agoEina_Value: do not mix declarations and code
Vincent Torri [Mon, 1 Feb 2016 11:17:01 +0000 (12:17 +0100)]
Eina_Value: do not mix declarations and code

Reviewers: cedric, jpeg

Reviewed By: jpeg

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

8 years agoevas: Fix typo in previous clip issue fix
Jean-Philippe Andre [Mon, 1 Feb 2016 11:23:48 +0000 (20:23 +0900)]
evas: Fix typo in previous clip issue fix

See 100a7006b855fe4da2c2a5c1c4ec58e06b3a0bc0.

This typo actually caused some really rare crashes to happen
(even rarer than the one I fixed originally). Crashes nonetheless.

8 years agoeeze: Fix eeze_udev_find_by_subsystem_sysname function
Chris Michael [Fri, 29 Jan 2016 18:46:30 +0000 (13:46 -0500)]
eeze: Fix eeze_udev_find_by_subsystem_sysname function

This function was severly broken when used for finding devices of a
particular subsystem. Previously, this function would return every
device in the system, regardless if subsystem or sysname was passed in.
This patch fixes the issue by adding udev_enumerate matches before we
scan for devices. This way, when we enumerate the scan results, we now
get only devices that match the subsystem (if supplied).

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoeina: fix invalid prototype
Jean Guyomarc'h [Thu, 28 Jan 2016 21:29:32 +0000 (22:29 +0100)]
eina: fix invalid prototype

The prototype means "unspecified arguments". However, the implementation
specifies no parameters (void).
GCC's warning -Wstrict-prototypes complains a lots about this old-style
prototype, spamming the console when compiling more than one compiling
units including Eina.

@fix

8 years agoecore_evas: trigger pre render function as expected.
Cedric BAIL [Fri, 29 Jan 2016 06:21:58 +0000 (07:21 +0100)]
ecore_evas: trigger pre render function as expected.

This should fix exactness and elementary documentation screenshot bug discovered
by commit 6149fd7a0a9ef3f9495270cf1c4ab7727a30f21c in elementary.

8 years agoEvas clip: Fix rare crash in _render_pre_clipper_change
Jean-Philippe Andre [Thu, 28 Jan 2016 03:18:34 +0000 (12:18 +0900)]
Evas clip: Fix rare crash in _render_pre_clipper_change

Use delete callback instead of direct call to clip_unset,
which lets us know that clip_unset() is called during the
clipper's deletion, as opposed to a simple call.

We can then make sure that the previous object state does
not point to invalid data anymore.

Here is a scenario that could have crashed:
- load and show an edje object, hide it
- change its theme or style
- show it again

@fix

8 years agoevas: Fix explicit NULL dereference
Chris Michael [Wed, 27 Jan 2016 17:05:59 +0000 (12:05 -0500)]
evas: Fix explicit NULL dereference

This patch fixes an Coverity issue that if 'dst' gets set to NULL (as can
happen above) then this eo_do call may segfault as it is directly
accessing 'dst->buffer'.

@fix
CID1347415

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoecore_imf/scim: fix uninitiazed value issue detected by valgrind
Jihoon Kim [Wed, 27 Jan 2016 09:31:26 +0000 (18:31 +0900)]
ecore_imf/scim: fix uninitiazed value issue detected by valgrind

8 years agoevas: Fix segfault when trying to determine overlay usage
Chris Michael [Mon, 25 Jan 2016 21:10:25 +0000 (16:10 -0500)]
evas: Fix segfault when trying to determine overlay usage

Previously, _evas_render_can_use_overlay would segfault here when
trying to make use of an Evas_Video_Surface. This is because eo_tmp
variable was never reassigned to be the smart parent before we tried
to get eo data from it.

@fix

NB: Thanks Frenchie !! ;)

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agorelease: Update NEWS and bump version for 1.17.0-beta3 release
Stefan Schmidt [Mon, 25 Jan 2016 16:37:38 +0000 (17:37 +0100)]
release: Update NEWS and bump version for 1.17.0-beta3 release

8 years agoefreet: add locking for efreet_desktop_x_field_get()
Mike Blumenkrantz [Mon, 25 Jan 2016 16:24:54 +0000 (11:24 -0500)]
efreet: add locking for efreet_desktop_x_field_get()

in a threaded environment, reading from a hash is not atomic and is
subject to race conditions

@fix

ref 39417cf0ea4e457fbc8d50d120bb8ac776aa366f

8 years agoefreet: reject invalid "" data for Efreet_Desktop->x hash
Mike Blumenkrantz [Mon, 25 Jan 2016 16:20:55 +0000 (11:20 -0500)]
efreet: reject invalid "" data for Efreet_Desktop->x hash

ref T3096

@fix

8 years agoedje: Fix potential NULL pointer dereference
Chris Michael [Mon, 25 Jan 2016 12:47:03 +0000 (07:47 -0500)]
edje: Fix potential NULL pointer dereference

It is possible that evas_object_data_get here does not return an Edje,
so check the return value. This fixes a coverity reported issue.

@fix
CID1349866

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoecore_evas_extn: Add safety checks, fixing a crash in elm_test
Jean-Philippe Andre [Mon, 25 Jan 2016 06:58:16 +0000 (15:58 +0900)]
ecore_evas_extn: Add safety checks, fixing a crash in elm_test

See T2835 (my crash was different from the one reported).

The buffer may be initialized after the first render_pre, due to
whatever timing issue. Check in elm_test "Window Socket" and then
open several "Window Plug".

@fix

8 years agoEthumb: make the emotion plugin correctly use the edje frame if requested.
Dave Andreoli [Sun, 24 Jan 2016 21:58:24 +0000 (22:58 +0100)]
Ethumb: make the emotion plugin correctly use the edje frame if requested.

The emotion plugin was lacking the ability to use the edje frame as expected,
this patch add this ability, so now video thumbnail works like the normal ones.

This commit is a bit of a new feature, but I consider this a @fix as now
the ethumb_frame_set() API works as expected, also the implementation
is so simple that I think it can go in without any problems.

8 years ago evas: Updated documentation of evas_object_image_save.
Ji-Youn Park [Sat, 23 Jan 2016 09:36:07 +0000 (18:06 +0830)]
   evas: Updated documentation of evas_object_image_save.

8 years agoEvas filters: Change FIXME comment in test case
Jean-Philippe ANDRE [Sat, 23 Jan 2016 09:18:52 +0000 (18:18 +0900)]
Evas filters: Change FIXME comment in test case

8 years ago evas: Updated documentation of evas_object_image_save.
Ji-Youn Park [Sat, 23 Jan 2016 08:46:34 +0000 (17:16 +0830)]
   evas: Updated documentation of evas_object_image_save.

8 years agoedje_cc: remove redundant comments which makes reference seem weird
Jee-Yong Um [Fri, 22 Jan 2016 19:03:25 +0000 (11:03 -0800)]
edje_cc: remove redundant comments which makes reference seem weird

Summary:

Group.Parts.Part.Description.Domain @edcsubription is in wrong place,
(actually that is not necessary one.)
so it makes Group.Parts.Part.Description.Text block seem weird.

Reviewers: jpeg, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoEvas filters: Re-enable transform test case, remove dead code
Jean-Philippe Andre [Fri, 22 Jan 2016 06:23:15 +0000 (15:23 +0900)]
Evas filters: Re-enable transform test case, remove dead code

Now that transform is fixed, this should be reenabled.

8 years agoEvas filters: Fix transform filter (crashes & blend)
Jean-Philippe Andre [Fri, 22 Jan 2016 05:06:57 +0000 (14:06 +0900)]
Evas filters: Fix transform filter (crashes & blend)

out was simply not initialized if the source and destination
were the same. The COW flag is required here to separate input
and output properly. Also, the source & destination pointers
were badly calculated and could overflow.

Instead of using memcpy this filter was supposed to use the
blend functions. This patch also fixes that.

In order to make this filter actually useful (think text reflection
on a flat surface), more information needs to be passed to the Lua
script, such as the text ascent, descent, etc...

8 years agoEvas filters: Fix inconsistency in transform API
Jean-Philippe Andre [Fri, 22 Jan 2016 04:54:21 +0000 (13:54 +0900)]
Evas filters: Fix inconsistency in transform API

This is a minor change, makes 'output' the default target for
the transform filter. This is consistent with all the other
filters. This is not exactly a bug fix but it doesn't break
compatibility with the earlier explicit form and improves the API
for 1.17.

8 years agoEvas filters: Disable debug mode!
Jean-Philippe Andre [Fri, 22 Jan 2016 05:38:32 +0000 (14:38 +0900)]
Evas filters: Disable debug mode!

Ooops, I must have let this in by mistake.

8 years agoEolian Cxx: Fix warnings related to deprecated EO_EV_DEL
Jean-Philippe Andre [Fri, 22 Jan 2016 06:27:35 +0000 (15:27 +0900)]
Eolian Cxx: Fix warnings related to deprecated EO_EV_DEL

Switch the generator to EO_BASE_EVENT_DEL.

8 years agoector: fix potential crash if cairo is not found on the system.
Cedric BAIL [Thu, 21 Jan 2016 23:56:49 +0000 (15:56 -0800)]
ector: fix potential crash if cairo is not found on the system.

@fix

T2938

8 years agoecore-drm: Unify and cleanup tty code
Chris Michael [Thu, 21 Jan 2016 16:38:07 +0000 (11:38 -0500)]
ecore-drm: Unify and cleanup tty code

This patch brings the tty code more inline with what the logind code
Was doing. It also fixes the return value from the vt_signal handler,
and opens the tty in non-blocking mode now.

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoecore-drm: Don't unset logind variable when disconnecting a device
Chris Michael [Thu, 21 Jan 2016 16:35:45 +0000 (11:35 -0500)]
ecore-drm: Don't unset logind variable when disconnecting a device

For a case where we have more than one device open, if we set the
'logind' variable to false, then the second device would never close
properly.

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoecore-drm: Destroy any existing eeze watch when we free the device
Chris Michael [Thu, 21 Jan 2016 16:32:53 +0000 (11:32 -0500)]
ecore-drm: Destroy any existing eeze watch when we free the device

If a user frees a device without closing it we could end up with a
dangling eeze watch. This small patch just makes sure to delete the
watch if it exists

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoecore-drm: Refactor logind code to use tty functions
Chris Michael [Thu, 21 Jan 2016 16:20:29 +0000 (11:20 -0500)]
ecore-drm: Refactor logind code to use tty functions

This patch cleans up some of the logind code to make use of the
existing tty functions as they both did the same thing

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoecore-evas-drm: Cleanup drm outputs during shutdown
Chris Michael [Thu, 21 Jan 2016 14:24:06 +0000 (09:24 -0500)]
ecore-evas-drm: Cleanup drm outputs during shutdown

As we no longer cleanup outputs inside the ecore_drm_device_free
function (see previous commit), we should be cleaning up outputs here
as they are created during the _ecore_evas_drm_init function.

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoecore-drm: Cleanup ecore-drm shutdown routine
Chris Michael [Thu, 21 Jan 2016 14:22:37 +0000 (09:22 -0500)]
ecore-drm: Cleanup ecore-drm shutdown routine

This patch addresses an issue where when closing Enlightenment, the
shutdown procedure would previously end up calling the same functions
twice. These functions should be called from the ecore_evas drm
shutdown routine as the sprites, inputs, outputs, etc are all called
from the ecore_evas drm init routine.

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoEo: Actually mark EO_EV_ as EINA_DEPRECATED
Jean-Philippe Andre [Thu, 21 Jan 2016 04:10:48 +0000 (13:10 +0900)]
Eo: Actually mark EO_EV_ as EINA_DEPRECATED

This should add compilation warnings whereever they're used.

8 years agoEo: Replace deprecated EO_EV_ by EO_BASE_EVENT_
Jean-Philippe Andre [Thu, 21 Jan 2016 04:10:05 +0000 (13:10 +0900)]
Eo: Replace deprecated EO_EV_ by EO_BASE_EVENT_

8 years agoEvas GL: Actually save the checksum inside the file
Jean-Philippe Andre [Thu, 21 Jan 2016 01:59:22 +0000 (10:59 +0900)]
Evas GL: Actually save the checksum inside the file

This would be cleaner than adding it as a suffix to the filename.
Use simple write and read_direct for simplicity.

This is an improvement on 3dcd903a537e29342121c and should make sure
everyone is actually using the latest version of the shaders even
if they track master or the alpha/beta releases.