platform/upstream/efl.git
9 years agoecore-wl: Reset input keyboard repeat values when we cancel the timer
Chris Michael [Tue, 14 Jul 2015 18:33:41 +0000 (14:33 -0400)]
ecore-wl: Reset input keyboard repeat values when we cancel the timer

Summary: If we end up cancelling the keyboard repeat timer due to no
focused surface, we should also reset the input repeat values.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-wl: Don't renew keyboard-repeat timer if we have no focused surface
Chris Michael [Tue, 14 Jul 2015 18:31:15 +0000 (14:31 -0400)]
ecore-wl: Don't renew keyboard-repeat timer if we have no focused surface

Summary: During the keyboard repeat function, if we have no keyboard
focused window to send the key to, then we should cancel the repeat
timer.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-wl: Reset ecore_wl_input repeat values on keyboard leave
Chris Michael [Tue, 14 Jul 2015 18:28:14 +0000 (14:28 -0400)]
ecore-wl: Reset ecore_wl_input repeat values on keyboard leave

Summary: As we delete any keyboard repeat timers when we get a
keyboard leave event, we should also reset any stored values there
(key, sym, time, etc).

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-wl: Reset input's pointer & keyboard focus on events
Chris Michael [Tue, 14 Jul 2015 18:22:42 +0000 (14:22 -0400)]
ecore-wl: Reset input's pointer & keyboard focus on events

Summary: If we get pointer or keyboard leave events, then reset the
Ecore_Wl_Input's idea of focus (eg: set input->pointer_focus and
input->keyboard_focus fields to NULL) just in case we cannot find a
window for this surface.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoeolian/generator: generate @ingroup in doc comments properly
Daniel Kolesa [Tue, 14 Jul 2015 13:30:41 +0000 (14:30 +0100)]
eolian/generator: generate @ingroup in doc comments properly

9 years agoEvas textblock: Clear unused paragraphs
Daniel Hirt [Tue, 14 Jul 2015 11:44:38 +0000 (14:44 +0300)]
Evas textblock: Clear unused paragraphs

This fixes a scenario in which paragraphs in the current layout still
store visual lines from the previous layout. This is possible if the
text uses an ellipsis format, allowing the layout work to stop at a
certain paragraph. This inconsistency affects some query functions that
consider lines which may be irrelevant in the current layout.

Test Case: see added test case to evas_suite.

@fix

9 years agoefl.interfaces: Doc conversion of efl_file.eo
Srivardhan Hebbar [Tue, 14 Jul 2015 12:10:19 +0000 (13:10 +0100)]
efl.interfaces: Doc conversion of efl_file.eo

Summary: Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: cedric, tasn, q66

Reviewed By: q66

Subscribers: cedric

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

9 years agoefl.interfaces: Doc conversion of efl_gfx_stack.eo
Srivardhan Hebbar [Tue, 14 Jul 2015 09:41:24 +0000 (10:41 +0100)]
efl.interfaces: Doc conversion of efl_gfx_stack.eo

Summary: Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: cedric, tasn, q66

Reviewed By: q66

Subscribers: cedric

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

9 years agoexample: check NULL value in ecore imf example
Jihoon Kim [Tue, 14 Jul 2015 07:15:35 +0000 (16:15 +0900)]
example: check NULL value in ecore imf example

9 years agorelease: Update NEWS and bump version for 1.15.0-beta1 release v1.15.0-beta1
Daniel Juyung Seo [Mon, 13 Jul 2015 14:31:24 +0000 (23:31 +0900)]
release: Update NEWS and bump version for 1.15.0-beta1 release

9 years agoevas - unload/scalecache self-feeding loop unload/reload fix
Carsten Haitzler (Rasterman) [Sun, 12 Jul 2015 04:17:08 +0000 (13:17 +0900)]
evas - unload/scalecache self-feeding loop unload/reload fix

i was runing perf top and noticed that evas_image_load_file_data_eet(0
was being called. in fact - it was #1 on the list of functions being
called. why? it didn't make sense. i found out. just a blinking cursor
in terminology was causing the background to be unloaded and
re-loaded. the new "actually unload" changes for 1.15 made this happen
and thus we kept sucking in new data all the time even if the
scalecache already had the data - and that was the problem.

so now calcecache prepare tells you if you don't have cached data and
if you likely then have to ensure the data is loaded. this cuts down
quite a bit of work.

while i'm at it... we definitely need to clean house on the internals
of evas. a decade+ of features, mess, optimizations needs to be fixed.
i mean really house-cleaned. rewritten clenl;y re-using existing code
where appropriate.

9 years agoedje_object: fix some minor doc problems
Daniel Kolesa [Fri, 10 Jul 2015 13:02:32 +0000 (14:02 +0100)]
edje_object: fix some minor doc problems

9 years agoedje: convert doc of edje_object.eo
Srivardhan Hebbar [Fri, 10 Jul 2015 10:07:00 +0000 (11:07 +0100)]
edje: convert doc of edje_object.eo

Summary: Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: cedric, tasn, q66

Subscribers: q66, cedric

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

9 years agoEvas canvas3d: Fix reference to class in .eo file.
Tom Hacohen [Thu, 9 Jul 2015 12:41:57 +0000 (13:41 +0100)]
Evas canvas3d: Fix reference to class in .eo file.

We should reference classes directly, not use 'Eo'.

9 years agoecore-x fix warning on unused function due to ifdefs
Carsten Haitzler (Rasterman) [Thu, 9 Jul 2015 06:45:15 +0000 (15:45 +0900)]
ecore-x fix warning on unused function due to ifdefs

9 years agoevas: Init need_unload value after unload.
Hosang Kim [Thu, 9 Jul 2015 03:04:39 +0000 (12:04 +0900)]
evas: Init need_unload value after unload.

Summary: @fix

Reviewers: seoz, cedric, woohyun, raster

Reviewed By: raster

Subscribers: cedric

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

9 years agoecore anim - oops. coverity silence checked wrong value for read/write
Carsten Haitzler (Rasterman) [Wed, 8 Jul 2015 23:22:05 +0000 (08:22 +0900)]
ecore anim - oops. coverity silence checked wrong value for read/write

fix

9 years agorelease: Update NEWS and bump version for 1.15.0alpha1 release v1.15.0-alpha1
Daniel Juyung Seo [Wed, 8 Jul 2015 18:35:35 +0000 (03:35 +0900)]
release: Update NEWS and bump version for 1.15.0alpha1 release

9 years agoedje: Fix distcheck.
Daniel Juyung Seo [Wed, 8 Jul 2015 17:50:25 +0000 (02:50 +0900)]
edje: Fix distcheck.

9 years agoeina: make re-setting the same tiler tile size a no-op
Mike Blumenkrantz [Wed, 8 Jul 2015 16:33:23 +0000 (12:33 -0400)]
eina: make re-setting the same tiler tile size a no-op

9 years agoecore-wayland: Remove improper use of EINA_UNUSED
Chris Michael [Wed, 8 Jul 2015 15:01:13 +0000 (11:01 -0400)]
ecore-wayland: Remove improper use of EINA_UNUSED

Summary: 'version' is actually used inside this function so no need
for EINA_UNUSED here.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoEfreet: Fix config and data dir paths on windows.
Vincent Torri [Wed, 8 Jul 2015 15:28:30 +0000 (16:28 +0100)]
Efreet: Fix config and data dir paths on windows.

@fix

9 years agoeolian: enable the new doc validator
Daniel Kolesa [Wed, 8 Jul 2015 14:51:05 +0000 (15:51 +0100)]
eolian: enable the new doc validator

This will make Eolian error when the input documentation
is in a wrong format.

9 years agoefl: fix doc references across the tree to validate right
Daniel Kolesa [Wed, 8 Jul 2015 14:12:32 +0000 (15:12 +0100)]
efl: fix doc references across the tree to validate right

9 years agoeolian/generator: check if the reference is generatable first
Daniel Kolesa [Wed, 8 Jul 2015 14:11:47 +0000 (15:11 +0100)]
eolian/generator: check if the reference is generatable first

9 years agogitignore: Updated.
Daniel Juyung Seo [Wed, 8 Jul 2015 13:45:28 +0000 (22:45 +0900)]
gitignore: Updated.

9 years agoeolian: print more detailed location info for doc validation
Daniel Kolesa [Wed, 8 Jul 2015 13:47:09 +0000 (14:47 +0100)]
eolian: print more detailed location info for doc validation

9 years agoeolian: correct documentation ref validation (disabled for now)
Daniel Kolesa [Wed, 8 Jul 2015 12:39:25 +0000 (13:39 +0100)]
eolian: correct documentation ref validation (disabled for now)

9 years agoedje_edit: return EINA_TRUE for unset color_class
Vyacheslav Reutskiy [Wed, 8 Jul 2015 11:45:58 +0000 (14:45 +0300)]
edje_edit: return EINA_TRUE for unset color_class

For unset color_class for part used edje_edit_state_color_class_set and NULL
value for color_class, it's a string, is valid. In this case function must
return EINA_TRUE.
@fix

9 years agoedje edit: don't set the color_class color as main
Vyacheslav Reutskiy [Wed, 8 Jul 2015 11:37:26 +0000 (14:37 +0300)]
edje edit: don't set the color_class color as main

@fix

9 years agoeolian/generator: delete a stringshare correctly on failure
Daniel Kolesa [Wed, 8 Jul 2015 12:25:32 +0000 (13:25 +0100)]
eolian/generator: delete a stringshare correctly on failure

9 years agoeolian/generator: static-ify some funcs
Daniel Kolesa [Wed, 8 Jul 2015 11:17:00 +0000 (12:17 +0100)]
eolian/generator: static-ify some funcs

9 years agoeolian: improve function_full_c_name_get API
Daniel Kolesa [Wed, 8 Jul 2015 11:09:56 +0000 (12:09 +0100)]
eolian: improve function_full_c_name_get API

It's now generalized to work properly with legacy functions
as well as correctly append suffixes. Thus, it can be easily
used with the documentation generator and in other places.

@feature

9 years agonew animator coverity complaints - silence them
Carsten Haitzler (Rasterman) [Wed, 8 Jul 2015 09:51:11 +0000 (18:51 +0900)]
new animator coverity complaints - silence them

check return of read/write to make coverity happy (even though they
should never fail as it's a pipe within a process).

9 years agoecore-input-evas: fix canvas mouse event dispatch
Mike Blumenkrantz [Tue, 7 Jul 2015 18:15:29 +0000 (14:15 -0400)]
ecore-input-evas: fix canvas mouse event dispatch

this was broken in 5cb6cdbc5e1a13ea0262e155983b494e6519abde such that
when multiple sources produce mouse events using the same device,
these events are marshalled as though they were from the same canvas.
the result is that eventing is wrong on at least one of the canvases,
and spurious mouse-up events are triggered before every mouse down

fix T2509

9 years agoeolian/generator: add proper generation of references
Daniel Kolesa [Tue, 7 Jul 2015 16:19:13 +0000 (17:19 +0100)]
eolian/generator: add proper generation of references

Adds proper generation of automatic references in docs.
For now events are missing.

@feature

9 years agoeolian: initial work on doc syntax validation (disabled for now)
Daniel Kolesa [Tue, 7 Jul 2015 14:21:45 +0000 (15:21 +0100)]
eolian: initial work on doc syntax validation (disabled for now)

9 years agoevas: Remove unused variable
Chris Michael [Tue, 7 Jul 2015 13:00:04 +0000 (09:00 -0400)]
evas: Remove unused variable

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoEvas line: Migrate Eolian file to use the Eolian types.
Tom Hacohen [Tue, 7 Jul 2015 12:55:02 +0000 (13:55 +0100)]
Evas line: Migrate Eolian file to use the Eolian types.

9 years agoEvas line: Remove obviously wrong default values.
Tom Hacohen [Tue, 7 Jul 2015 12:54:10 +0000 (13:54 +0100)]
Evas line: Remove obviously wrong default values.

9 years agoevas - image core - fix unloading of images to work again
Carsten Haitzler (Rasterman) [Tue, 7 Jul 2015 12:29:31 +0000 (21:29 +0900)]
evas - image core - fix unloading of images to work again

i think this has been disabled for a while. image unloading is broken
- esp with gl enigne as due to async move it was effectively disabled.

this re-enables it. unloading is deferred with a managed list of things
needing unloading and then when any async sw renders are not busy any
more - do the unload then in the mainloop of all pending/flagged
images to unload

@fix

9 years agoEvas gl core: Move variables to the correct ifdef branch.
Tom Hacohen [Tue, 7 Jul 2015 12:28:53 +0000 (13:28 +0100)]
Evas gl core: Move variables to the correct ifdef branch.

These variables were not really used in the #else branch of the ifdef.
This moves them to the correct place removing the unused variables issues.

9 years agoEcore con eet test: Fix const discard issue.
Tom Hacohen [Tue, 7 Jul 2015 12:25:58 +0000 (13:25 +0100)]
Ecore con eet test: Fix const discard issue.

9 years agoEcore Anim: fix compilation on Windows
Vincent Torri [Tue, 7 Jul 2015 11:48:50 +0000 (13:48 +0200)]
Ecore Anim: fix compilation on Windows

sys/select.h is not available on Windows

9 years agoEcore Exe: decrease log level on Windows
Vincent Torri [Tue, 7 Jul 2015 11:48:17 +0000 (13:48 +0200)]
Ecore Exe: decrease log level on Windows

9 years agoEcore Con: Fix ecore_con_local hangs on Windows.
Vincent Torri [Tue, 7 Jul 2015 10:34:40 +0000 (12:34 +0200)]
Ecore Con: Fix ecore_con_local hangs on Windows.

Since the move to eo, ecore_con_local hangs on Windows, hence edje_cc can
not compile edc files (e.g.).
Problem was a loop that was used to finish some threads which is now endless.

For now, comment out that loop

@fix

9 years agoEcore_Con: decrease log level in ecore_con_local_win32
Vincent Torri [Tue, 7 Jul 2015 10:33:39 +0000 (12:33 +0200)]
Ecore_Con: decrease log level in ecore_con_local_win32

9 years agoEcore exe (windows): Fix object destruction/failed creation.
Tom Hacohen [Tue, 7 Jul 2015 10:36:06 +0000 (11:36 +0100)]
Ecore exe (windows): Fix object destruction/failed creation.

The correct way of disposing of an object in a failed finalisation is to
return NULL, not to delete it.

Also, since the destructor is already called when the object is deleted
anyway, there's no point in having cleanup code in the finalizer too.

@fix

9 years agoeolian: add API: eolian_declaration_get_by_name
Daniel Kolesa [Tue, 7 Jul 2015 09:56:53 +0000 (10:56 +0100)]
eolian: add API: eolian_declaration_get_by_name

Sorry for last minute new API, but this one is necessary to implement
proper verification of references in docs, which I would like to have
in 1.15. It allows you to retrieve any kind of declaration by full
namespace, so that you can check for an existence of an Eolian decl,
rather than checking every type individually.

@feature

9 years agoecore animator - use windows ifdefs/macros so it works there
Carsten Haitzler (Rasterman) [Tue, 7 Jul 2015 06:41:44 +0000 (15:41 +0900)]
ecore animator - use windows ifdefs/macros so it works there

9 years agoanimator - use select not uslleep so we can wake up during a sleep
Carsten Haitzler (Rasterman) [Tue, 7 Jul 2015 03:32:04 +0000 (12:32 +0900)]
animator - use select not uslleep so we can wake up during a sleep

if you change animator frametime while we are sleeping for a frame...
we can't wake up and adjust. this allows that with a pipe and select.

9 years agoeolian/generator: use the __eolian function in overrides when default values are...
Daniel Kolesa [Mon, 6 Jul 2015 10:25:32 +0000 (11:25 +0100)]
eolian/generator: use the __eolian function in overrides when default values are present

9 years agoecore_con: convert doc of ecore_con_eet.eo
Srivardhan Hebbar [Mon, 6 Jul 2015 09:20:28 +0000 (10:20 +0100)]
ecore_con: convert doc of ecore_con_eet.eo

Summary:
converted docs of ecore_con_eet.eo to the new style.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: cedric, tasn

Subscribers: yashu21985, cedric

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

9 years agoecore - animator - new thread timer animator - fiux shutdown
Carsten Haitzler (Rasterman) [Mon, 6 Jul 2015 09:00:19 +0000 (18:00 +0900)]
ecore - animator - new thread timer animator - fiux shutdown

expedite actualyl shuts ecore down - fix eina magic complaints with
safe shutdown.

9 years agoEvas.Image: Fix legacy EAPI name
Jean-Philippe Andre [Mon, 6 Jul 2015 05:22:45 +0000 (14:22 +0900)]
Evas.Image: Fix legacy EAPI name

Thanks @kuuko for the report. Sorry for the breakage of Python apps.

9 years agoEvas gl_common: Fix up error handling
WooHyun Jung [Mon, 6 Jul 2015 05:18:36 +0000 (14:18 +0900)]
Evas gl_common: Fix up error handling

9 years agoevas gl - dont crash if gl image internal im is null
Carsten Haitzler (Rasterman) [Sun, 5 Jul 2015 09:01:06 +0000 (18:01 +0900)]
evas gl - dont crash if gl image internal im is null

new crash i saw today

9 years agoefreet - improve edstop exec find to use the command with less args
Carsten Haitzler (Rasterman) [Sun, 5 Jul 2015 03:53:14 +0000 (12:53 +0900)]
efreet - improve edstop exec find to use the command with less args

efreet will just match any desktop file (at random basically -
whatever is first in the list), thjat has the base command looked at.
if you have various desktip files with the same command, like:

mycommand
mycommand %U
mycommand -a -b -c /path/to/file
/usr/bin/mycommand

etc. - which one does it match? it'll pick the first and the list
ordering is arbitrary, so this is pretty bad. this strips off the base
command at the start (full path or whatever) and then uses the command
with the shortest argument length. this means the generic command is
found first if we look for "mycommand" in the above list, whihc ends
up the best... ESPECIALLY for steam which does just this.

9 years agoedje: add Convex Hull logic
perepelits.m [Sat, 4 Jul 2015 00:39:08 +0000 (02:39 +0200)]
edje: add Convex Hull logic

Summary: This is an algorithm which calcuates a convex hull of some mesh, in fact it returns vertex, index, normal and color datas, though the new mesh could be build just as for AABB

Reviewers: raster, Hermet, cedric

Subscribers: cedric, artem.popov

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeina: fix failure of eina_quaternion_test.
Vivek Ellur [Sat, 4 Jul 2015 00:30:40 +0000 (02:30 +0200)]
eina: fix failure of eina_quaternion_test.

Summary:
eina_test_quaternion_norm was failing. so fixed it.

Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com>
Reviewers: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoEcore_File: use ecore_file_mkdir()
Vincent Torri [Fri, 3 Jul 2015 08:11:01 +0000 (10:11 +0200)]
Ecore_File: use ecore_file_mkdir()

9 years agoEcore_File: better implementation of ecore_file_mkdir()
Vincent Torri [Fri, 3 Jul 2015 07:35:25 +0000 (09:35 +0200)]
Ecore_File: better implementation of ecore_file_mkdir()

9 years agoEcore_File: improve comment of ecore_file_mkdir()
Vincent Torri [Fri, 3 Jul 2015 07:34:46 +0000 (09:34 +0200)]
Ecore_File: improve comment of ecore_file_mkdir()

9 years agoEina: include string.h on Windows as memcpy is used (fixes warning)
Vincent Torri [Fri, 3 Jul 2015 07:33:00 +0000 (09:33 +0200)]
Eina: include string.h on Windows as memcpy is used (fixes warning)

9 years agoEvil: add a wrapper around _mkdir
Vincent Torri [Fri, 3 Jul 2015 06:14:01 +0000 (08:14 +0200)]
Evil: add a wrapper around _mkdir

@feature

9 years agoEfl debug daemon: Fix Warning on Windows.
Vincent Torri [Thu, 2 Jul 2015 20:24:44 +0000 (22:24 +0200)]
Efl debug daemon: Fix Warning on Windows.

According to the Open Group, pid_t is signed integer and can not
be larger than a long

9 years agoEdje_Player: disable code unused on Windows.
Vincent Torri [Thu, 2 Jul 2015 12:50:15 +0000 (14:50 +0200)]
Edje_Player: disable code unused on Windows.

9 years agoEcore_Con_Ares: fix undefined variable warning
Vincent Torri [Thu, 2 Jul 2015 11:10:55 +0000 (13:10 +0200)]
Ecore_Con_Ares: fix undefined variable warning

9 years agoeolian: generate correct fallback character
Daniel Kolesa [Fri, 3 Jul 2015 15:15:01 +0000 (16:15 +0100)]
eolian: generate correct fallback character

9 years agoeolian: add support for monospace highlights in docs
Daniel Kolesa [Fri, 3 Jul 2015 15:13:59 +0000 (16:13 +0100)]
eolian: add support for monospace highlights in docs

9 years agoeolian: allow trailing comma on last enum item (just like C)
Daniel Kolesa [Fri, 3 Jul 2015 14:19:12 +0000 (15:19 +0100)]
eolian: allow trailing comma on last enum item (just like C)

9 years agoInterfaces: fix event name
Daniel Zaoui [Fri, 3 Jul 2015 07:35:25 +0000 (10:35 +0300)]
Interfaces: fix event name

zoom,change is the name used in efl and elementary, not zoom,changed

@fix

9 years agoeina: don't return NULL silently when creating new tilers
Mike Blumenkrantz [Thu, 2 Jul 2015 18:18:06 +0000 (14:18 -0400)]
eina: don't return NULL silently when creating new tilers

9 years agoEvas gl_common: Fix up error handling
WooHyun Jung [Thu, 2 Jul 2015 12:54:51 +0000 (21:54 +0900)]
Evas gl_common: Fix up error handling

9 years agoecore animators - improve accuracy by having a thread do animator timing
Carsten Haitzler (Rasterman) [Thu, 2 Jul 2015 09:24:18 +0000 (18:24 +0900)]
ecore animators - improve accuracy by having a thread do animator timing

this will cause animators to be more accurate now with timing coming
from a dedicated thread whose only reason in life is to trigger timed
wakeups. the wakeup time is even adjusted with fmod to the exact
frametime slot that is expected

9 years agoRevert "Evas gl_cocoa: remove code duplicated from gl_generic"
Jean-Philippe Andre [Thu, 2 Jul 2015 07:00:40 +0000 (16:00 +0900)]
Revert "Evas gl_cocoa: remove code duplicated from gl_generic"

This reverts commit 681c8b0ec25a0a00325d32aa0f0178434bb54ae7.

@cedric pointed me out that gl_cocoa doesn't depend on gl_generic,
so this commit was not very smart.

9 years agoEvas.Image: Simplify logic (trivial change)
Jean-Philippe Andre [Thu, 2 Jul 2015 06:41:06 +0000 (15:41 +0900)]
Evas.Image: Simplify logic (trivial change)

9 years agoEvas.Image: Deprecate some functions and remove from Eo
Jean-Philippe Andre [Thu, 2 Jul 2015 05:26:44 +0000 (14:26 +0900)]
Evas.Image: Deprecate some functions and remove from Eo

This patch deprecates the following functions:
- evas_object_image_data_convert
- evas_object_image_pixels_import
- evas_object_image_reload

I could not find any place where they are used.

The old documentation is kept in the header, but not as a doxygen
anymore.

9 years agoEvas: Replace image_map_surface_free by common image_free
Jean-Philippe Andre [Thu, 2 Jul 2015 03:04:02 +0000 (12:04 +0900)]
Evas: Replace image_map_surface_free by common image_free

Those two functions were doing exactly the same thing[1], which
is free an image, so this commit only attempts to simplify the code
a little bit.

[1] Actually image_map_surface_free() might even not have worked
properly with cserve2 sw (calling unload instead of close).

9 years agoEvas gl_cocoa: remove code duplicated from gl_generic
Jean-Philippe Andre [Thu, 2 Jul 2015 02:56:36 +0000 (11:56 +0900)]
Evas gl_cocoa: remove code duplicated from gl_generic

Remove the two functions:
- image_data_get
- image_data_put

9 years agoEvas: Implement image_data_get for FBO images
Jean-Philippe Andre [Thu, 2 Jul 2015 02:52:16 +0000 (11:52 +0900)]
Evas: Implement image_data_get for FBO images

9 years agoecore-wl: disable session recovery
Mike Blumenkrantz [Wed, 1 Jul 2015 16:11:55 +0000 (12:11 -0400)]
ecore-wl: disable session recovery

this is guaranteed to crash in 100% of use cases.

9 years agoEvas Textblock: Add obstacle objects feature
Daniel Hirt [Wed, 1 Jul 2015 15:24:31 +0000 (16:24 +0100)]
Evas Textblock: Add obstacle objects feature

Summary:
Introducing a new feature for Evas Textblock. This allows the layout to
wrap around other evas objects.
The following API is added:
 - obstacle_add
 - obstacle_del
 - obstacle_update
Evas objects can now serve as textblock obstacles, if positioned and
visible on the text area. The text will wrap around the obstacles
according to the wrapping mode set to it.

This also modifies the current wrapping code to handle obstacle wrap
points as well. The wrap index query function is modified so that
forward-scanning (specific cases) may be disabled when treating
obstacle wrap point.

RTL text is currently unsupported by this feature.
Consult added docs and example for usage.

@feature

Test Plan: Evas example and test in evas_suite are provided with this.

Reviewers: tasn

Subscribers: raster, JackDanielZ, cedric

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

9 years agoelua: remove obsolete xgettext wrapper
Daniel Kolesa [Wed, 1 Jul 2015 13:49:44 +0000 (14:49 +0100)]
elua: remove obsolete xgettext wrapper

9 years agoEvas image: Remove useless piece of code
Jean-Philippe Andre [Wed, 1 Jul 2015 05:19:25 +0000 (14:19 +0900)]
Evas image: Remove useless piece of code

Not only is it useless, it is very likely to make the function call
fail (data_get is quite likely to fail with GL).

9 years agoEdje: Embed verbatim scripts for Efl.Gfx.Filters
Jean-Philippe Andre [Tue, 30 Jun 2015 10:26:20 +0000 (19:26 +0900)]
Edje: Embed verbatim scripts for Efl.Gfx.Filters

This is now like the other embedded scripts, where a verbatim
string is parsed. The syntax is now:

filters {
   filter {
      name: "filter0";
      file: "filter.lua";
   }
   filter {
      name: "filter1";
      script {
         blend {}
      }
   }
   filter.file: "file.lua"; // name is "file.lua"
}

Thanks @raster for the quick review.

9 years agoEvas: Make Evas.Image.save() work with all images
Jean-Philippe Andre [Tue, 30 Jun 2015 06:37:55 +0000 (15:37 +0900)]
Evas: Make Evas.Image.save() work with all images

This includes proxies, 3d scenes and normal images.
There is still a problem as the GL engine returns NULL on
data_get.

This kinda goes against the EO API declaration as
eo_obj is used as a mutable argument, but internal data was
already modified before this patch.

TODO: Draw maps, filters, etc... in a dedicated surface to save
      them as they truly are (ie. filtered images).

9 years agoevas-fb: Fix compiler warnings about suggested parentheses
Chris Michael [Tue, 30 Jun 2015 13:25:23 +0000 (09:25 -0400)]
evas-fb: Fix compiler warnings about suggested parentheses

Summary: Gcc suggested parens around the truth value here, however
as some developers don't like overly used parens, just modify the code
slightly to not use an if on the assignment line.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore: Fix typo in since tag.
Amitesh Singh [Tue, 30 Jun 2015 10:08:09 +0000 (15:38 +0530)]
ecore: Fix typo in since tag.

9 years agoecore_imf: check parameter of ecore_imf_module_register ()
Jihoon Kim [Tue, 30 Jun 2015 07:43:37 +0000 (16:43 +0900)]
ecore_imf: check parameter of ecore_imf_module_register ()

9 years agoecore_imf: fix wrong return type of ecore_imf_context_input_panel_return_key_type_get
Jihoon Kim [Tue, 30 Jun 2015 07:39:56 +0000 (16:39 +0900)]
ecore_imf: fix wrong return type of ecore_imf_context_input_panel_return_key_type_get

@fix

9 years agoEvas filters: Force filter redraw if object changed
Jean-Philippe Andre [Tue, 30 Jun 2015 02:45:55 +0000 (11:45 +0900)]
Evas filters: Force filter redraw if object changed

Somehow I broke this when introducing the eo mixin.
This is what broke @cedric's work on the snapshot widget!

TODO: Verify that the contents changed, and not just X,Y.

9 years agoEvas filters: Fix color(0xrrggbb) to be opaque by default
Jean-Philippe Andre [Tue, 30 Jun 2015 01:33:29 +0000 (10:33 +0900)]
Evas filters: Fix color(0xrrggbb) to be opaque by default

For compatibility with previous behaviour and with what the doc
says, make sure default alpha is 255 and not 0.

This way color(0) is black and not transparent

9 years agodoc: Fixup EDC documentation about filters & examples
Jean-Philippe Andre [Mon, 29 Jun 2015 10:52:56 +0000 (19:52 +0900)]
doc: Fixup EDC documentation about filters & examples

9 years agoEdje: Fix test case (after syntax change)
Jean-Philippe Andre [Mon, 29 Jun 2015 10:06:26 +0000 (19:06 +0900)]
Edje: Fix test case (after syntax change)

Filters now belong to one of the filters sections:
- filters
- collections.filters
- collections.group.filters

9 years agoEdje: Use bsearch() to find filters as fast as possible
Jean-Philippe Andre [Mon, 29 Jun 2015 08:51:42 +0000 (17:51 +0900)]
Edje: Use bsearch() to find filters as fast as possible

edje_cc ensures that the filters are in order by name

9 years agoEdje: Replace index() by strchr()
Jean-Philippe Andre [Mon, 29 Jun 2015 08:00:57 +0000 (17:00 +0900)]
Edje: Replace index() by strchr()

Thanks vtorri for pointing out the build break on windows and
that index() is deprecated.

9 years agoEdje: Add proper filters section in the EDJ file
Jean-Philippe Andre [Mon, 29 Jun 2015 07:47:00 +0000 (16:47 +0900)]
Edje: Add proper filters section in the EDJ file

Don't [ab]use the file data section for filter scripts, instead
create a proper section for them. The rest of the behaviour stays
the same.

9 years agodoc: EDC reference: Add specific doc for group.data
Jean-Philippe Andre [Fri, 26 Jun 2015 02:48:57 +0000 (11:48 +0900)]
doc: EDC reference: Add specific doc for group.data

Group.data does not support "file", only "item". This doc
explains that.

Should Group.Data support file instead?

9 years agoEdje: Use array instead of hash for filters data
Jean-Philippe Andre [Fri, 26 Jun 2015 01:40:27 +0000 (10:40 +0900)]
Edje: Use array instead of hash for filters data

Yeah that was totally overkill and pure laziness on my side.

Despite having the EO API for the filters still in beta,
I want to the EDC API and EDJ binary formats to stay compatible,
so let's get it right before the release :)