platform/upstream/efl.git
8 years agoecore-drm2: Fix redrawing screen when we vt-switch back to a session
Chris Michael [Tue, 21 Jun 2016 16:55:17 +0000 (12:55 -0400)]
ecore-drm2: Fix redrawing screen when we vt-switch back to a session

When we vt-switch away from a running session, we need to disable
rendering to an output and re-enable when we switch back. This patch
set essentially makes vt-switching work again in Enlightenment Wayland.

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoelput: Support suspending and resuming inputs on vt switch
Chris Michael [Tue, 21 Jun 2016 16:46:29 +0000 (12:46 -0400)]
elput: Support suspending and resuming inputs on vt switch

This patch fixes an issue where input would stop working when you
vt-switch away and back again in a running Enlightenment Wayland
session. Basically, when we vt-switch away, we need to tell libinput
to suspend input event processing, and when we return to re-enable it.

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoevas-drm: Remove improper EINA_UNUSED for function parameter
Chris Michael [Tue, 21 Jun 2016 16:07:16 +0000 (12:07 -0400)]
evas-drm: Remove improper EINA_UNUSED for function parameter

'fd' is actually used in the call to WaitVBlank, so do not mark it as
EINA_UNUSED

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoexamples: evas3d: fix out of range array
Oleksandr Shcherbina [Tue, 21 Jun 2016 15:40:27 +0000 (17:40 +0200)]
examples: evas3d: fix out of range array

Missing parenthesis have been leading to an out of bound access here.

Summary: @fix

Reviewers: stefan_schmidt

Subscribers: cedric, jpeg

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

8 years agoexamples: evas: put define into config_h guards to avoid redefinition
Stefan Schmidt [Tue, 21 Jun 2016 15:05:48 +0000 (17:05 +0200)]
examples: evas: put define into config_h guards to avoid redefinition

evas-images5.c:19:0: warning: "EFL_BETA_API_SUPPORT" redefined
 #define EFL_BETA_API_SUPPORT
 ^
 In file included from evas-images5.c:14:0:
 ../../../config.h:360:0: note: this is the location of the previous definition
  #define EFL_BETA_API_SUPPORT 1

We should only define it when we are not using config.h

8 years agoexamples: evas3d: uniform use of config.h include or manual defines
Stefan Schmidt [Tue, 21 Jun 2016 15:01:16 +0000 (17:01 +0200)]
examples: evas3d: uniform use of config.h include or manual defines

My recent removal of the EFL_EO_API_SUPPORT define brought some trouble to the
evas 3d examples. The problem was that there was no uniform usage of including
config.h and thus it worked fine in some constellations abut not in others. This
patch should fix the known problems and brings back EFL_EO_API_SUPPORT until we
are removing it from the whole code base.

8 years agobuild: clean generated js and lua files manually to avoid problems with CLEANFILES
Stefan Schmidt [Tue, 21 Jun 2016 14:13:17 +0000 (16:13 +0200)]
build: clean generated js and lua files manually to avoid problems with CLEANFILES

We hit another argument too long error with CLEANFILES. Moving the generated
files for js and lua into separated variables and cleaning them manually fixes
the issue.

8 years agoeolian: implement a stringshare builtin
Daniel Kolesa [Tue, 21 Jun 2016 13:41:18 +0000 (14:41 +0100)]
eolian: implement a stringshare builtin

This implements a new builtin, stringshare, which is replaced with the right
pointer to Eina_Strinshare as necessary. This allows simplifying binding code
(it can call the proper eina APIs, deal with lifetime etc).

It also removes the extern Eina.Stringshare typedef from eina_types.eot, which
was actually incorrect and would generate invalid code in binding generators.

@feature @fix

8 years agoexamples: edje: rename new svg test file to its correct name
Stefan Schmidt [Tue, 21 Jun 2016 08:58:54 +0000 (10:58 +0200)]
examples: edje: rename new svg test file to its correct name

The code does reference a bojo.svg file so does the build system. Rename
bozo.svg to its correct name.

8 years agoCanvas text: revert new behavior on text append
Daniel Hirt [Mon, 20 Jun 2016 21:12:35 +0000 (21:12 +0000)]
Canvas text: revert new behavior on text append

This was discussed and still wasn't decided whether this is required to be
supported internally.
The reason for this revert is that the behavior still needs tweaking to work
just right along with the legacy behavior.

8 years agoCanvas text cursor: fix text insertion
Daniel Hirt [Mon, 20 Jun 2016 16:54:43 +0000 (16:54 +0000)]
Canvas text cursor: fix text insertion

The cursor update hasn't considered when the pararaph is broken. The reason the
code path is different from legacy is because that it was originally intended to
support append and prepend operations in the new API. Since we don't anymore
(only supporting append operations in the new cursor with 'text_insert'), we can
simplify the insertion implementation and fix this.

8 years agoCanvas text cursor: remove redefinition, already in legacy.
Daniel Hirt [Mon, 20 Jun 2016 11:31:36 +0000 (11:31 +0000)]
Canvas text cursor: remove redefinition, already in legacy.

8 years agoevas: Fix redefinition of Efl_Canvas_Object type
Jean-Philippe Andre [Tue, 21 Jun 2016 07:28:41 +0000 (16:28 +0900)]
evas: Fix redefinition of Efl_Canvas_Object type

8 years agoevas: Remove common interface and use provider_find
Jean-Philippe Andre [Tue, 21 Jun 2016 06:45:31 +0000 (15:45 +0900)]
evas: Remove common interface and use provider_find

Evas.Common_Interface not only had a bad name, it also
wasn't in line with how we can get a loop object, for
instance.

Use eo_provider_find in each implementing class.

8 years agoedje: Fix compilation of svg example (add -beta)
Jean-Philippe Andre [Tue, 21 Jun 2016 05:49:26 +0000 (14:49 +0900)]
edje: Fix compilation of svg example (add -beta)

8 years agosvg: added support for parsing and showing of polyline data.
Subhransu Mohanty [Tue, 21 Jun 2016 05:42:43 +0000 (14:42 +0900)]
svg: added support for parsing and showing of polyline data.

Reviewers: cedric, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

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

8 years agoefl/interface: fixed scubic_to and quad_to implementation.
Subhransu Mohanty [Tue, 21 Jun 2016 05:42:35 +0000 (14:42 +0900)]
efl/interface: fixed scubic_to and quad_to implementation.

Reviewers: cedric, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

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

8 years agoedje/example: Added example for testing vector part with svg images.
Subhransu Mohanty [Tue, 21 Jun 2016 05:42:28 +0000 (14:42 +0900)]
edje/example: Added example for testing vector part with svg images.

Reviewers: cedric, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

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

8 years agoevas: Rename Evas.Object to Efl.Canvas.Object
Jean-Philippe Andre [Tue, 21 Jun 2016 04:26:15 +0000 (13:26 +0900)]
evas: Rename Evas.Object to Efl.Canvas.Object

One step closer to make the EO inheritance tree look like
it's all Efl.

8 years agoelm: Fix obvious warning (leak / typo)
Jean-Philippe Andre [Tue, 21 Jun 2016 04:29:28 +0000 (13:29 +0900)]
elm: Fix obvious warning (leak / typo)

warning: ignoring return value of function declared with
warn_unused_result attribute [-Wunused-result]

Thanks GCC for pointing out the leak.

8 years agoexamples: Fix misuse of evas image api on canvas 3d
Jean-Philippe Andre [Tue, 21 Jun 2016 01:16:27 +0000 (10:16 +0900)]
examples: Fix misuse of evas image api on canvas 3d

image_size_set is for legacy images

8 years agoecore: Fix _ecore_animator_shutdown (double free)
Jean-Philippe Andre [Tue, 21 Jun 2016 01:14:13 +0000 (10:14 +0900)]
ecore: Fix _ecore_animator_shutdown (double free)

evas 3d examples would always exit on a double free, since
EINA_INLIST_FREE was misused. Not surprising considering
it's different from EINA_LIST_FREE but has a similar name.

8 years agoeolian-cxx: Remove Eina_Bool from event function wrapper
Felipe Magno de Almeida [Mon, 20 Jun 2016 22:35:50 +0000 (19:35 -0300)]
eolian-cxx: Remove Eina_Bool from event function wrapper

8 years agoelementary: remove wrong documentation for Elm.Widget.focus
Vitor Sousa [Mon, 20 Jun 2016 19:28:09 +0000 (21:28 +0200)]
elementary: remove wrong documentation for Elm.Widget.focus

Fixes T3717.

Reviewers: bu5hm4n

Reviewed By: bu5hm4n

Subscribers: cedric, jpeg

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

8 years agoEo event: Add a test for stopping callbacks within another callback.
Tom Hacohen [Mon, 20 Jun 2016 16:57:52 +0000 (17:57 +0100)]
Eo event: Add a test for stopping callbacks within another callback.

This tests that stopping callbacks is correctly preserved inside the
call and does not affect any surrounding callback calls.

8 years agoAdjust the code according to the eo event stop changes.
Tom Hacohen [Mon, 20 Jun 2016 14:31:31 +0000 (15:31 +0100)]
Adjust the code according to the eo event stop changes.

This was changed in the previous commit.

8 years agoEo event callbacks: Change the way callbacks are stopped.
Tom Hacohen [Mon, 20 Jun 2016 09:37:02 +0000 (10:37 +0100)]
Eo event callbacks: Change the way callbacks are stopped.

Instead of using the return value, we now use eo_event_callback_stop()
to stop calling other callbacks.

8 years agoEo callback call: Fix misleading docs.
Tom Hacohen [Mon, 20 Jun 2016 14:58:45 +0000 (15:58 +0100)]
Eo callback call: Fix misleading docs.

8 years agoevas: native-tbm: remove unused variable
Stefan Schmidt [Mon, 20 Jun 2016 14:07:20 +0000 (16:07 +0200)]
evas:  native-tbm: remove unused variable

The variable was set but never used in this function.

8 years agoedje_util: make sure we have an initialized return value
Stefan Schmidt [Mon, 20 Jun 2016 14:06:29 +0000 (16:06 +0200)]
edje_util: make sure we have an initialized return value

8 years agoedje_util: mark parameter as unused
Stefan Schmidt [Mon, 20 Jun 2016 14:05:36 +0000 (16:05 +0200)]
edje_util: mark parameter as unused

8 years agoEdje, Elementary: Remove <password=off> tag when password mode is disabled
Youngbok Shin [Mon, 20 Jun 2016 12:11:25 +0000 (21:11 +0900)]
Edje, Elementary: Remove <password=off> tag when password mode is disabled

Summary:
When edje_password_show_last option is enabled, the edje_entry uses <password=off>
for showing last character. But, when password mode is disabled by the elm_entry,
<password=off> is remained in the text. It can cause some problems.

Because, there is no way to control password mode by API for the edje_entry.
The elm_entry can't remove <password=off> tag before getting text from the edje_entry.
So, the patch adds edje_object_part_text_hide_visible_password() function and
the elm_entry will use this when elm_layout_theme_apply() is called.
@fix

Test Plan:
1. Run "elementary_test".
2. Show "Entry Password" demo. (Newly added by this patch)
3. Password mode is enabled. Put some text.
4. Click "Show Password" check box to disable password mode.
5. Put more text.
6. Click "Hide Password" check box to enable password mode again.
7. See a character among the text is visible. (without this patch)

Reviewers: tasn, herdsman, cedric, jpeg, thiepha, raster

Reviewed By: raster

Subscribers: Blackmole, z-wony, woohyun

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

8 years agoelm_access: override elm_interface_atspi_widget_action_elm_actions_get
Shinwoo Kim [Mon, 20 Jun 2016 06:45:33 +0000 (15:45 +0900)]
elm_access: override elm_interface_atspi_widget_action_elm_actions_get

Summary: override elm_interface_atspi_widget_action_elm_actions_get to support what elm_access_action offers

Reviewers: cedric, jpeg, stanluk, raster

Reviewed By: raster

Subscribers: seoz

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

8 years agoevas gl: Fix invalid argument
Jean-Philippe Andre [Mon, 20 Jun 2016 12:08:58 +0000 (21:08 +0900)]
evas gl: Fix invalid argument

GCC didn't warn where it should have :(
Luckily the previous code worked just as well as the value
of EINA_TRUE and EVAS_GL_GLES_1_X are the same (1).

8 years agoefl.ui.image: Fix min size of non-resizable images
Jean-Philippe Andre [Mon, 20 Jun 2016 11:05:52 +0000 (20:05 +0900)]
efl.ui.image: Fix min size of non-resizable images

Legacy API was setting a value that was not used in the size
computation.

This fixes the layout in elm_test "Icon Animation".

8 years agoeo: remove now longer needed EO_BASE_BETA define from code base
Stefan Schmidt [Mon, 20 Jun 2016 07:40:45 +0000 (09:40 +0200)]
eo: remove now longer needed EO_BASE_BETA define from code base

This was needed when the eo composite object was still in beta. Since commit
d7c45e41d4a911b160d2c24c13f243d0c7de25a3 this is no longer the case. No beta
part left in eo base so we can safely remove this define.

8 years agoecore_evas: Try to fix mouse events on Windows
Jean-Philippe Andre [Mon, 20 Jun 2016 07:26:52 +0000 (16:26 +0900)]
ecore_evas: Try to fix mouse events on Windows

See also de5f293426965f9dc19 and T3789

I wrongly assumed that multi.{x,y} would be properly set.
I'm assuming here that multi.{x,y} == (0,0) means they are
not set, and that double comparison to 0 works fine.

8 years agoevas: Fix usage of fill_set
Jean-Philippe Andre [Mon, 20 Jun 2016 06:47:07 +0000 (15:47 +0900)]
evas: Fix usage of fill_set

efl.gfx.fill will reset the filled flag, so the internal function
needs to be called instead of the gfx api.

This test error was added in a very recent commit: ccaf12e1b66b2b49.

8 years agoevas 3d: Fix shader compilation with EGL
Jean-Philippe Andre [Mon, 20 Jun 2016 06:25:09 +0000 (15:25 +0900)]
evas 3d: Fix shader compilation with EGL

This fixes the following error:
 error C1059: non constant expression in initialization

It happened with the hedgehog example: evas_canvas3d_aabb

8 years agoevas: Fix regeneration of shaders (normal and 3d)
Jean-Philippe Andre [Mon, 20 Jun 2016 05:47:39 +0000 (14:47 +0900)]
evas: Fix regeneration of shaders (normal and 3d)

This will trigger a re-run of the shaders shell scripts even
in case of out-of-tree builds. BUILT_SOURCES is used here
because for whatever reason make does not rebuild the .x targets
in case of out-of-tree builds (even if the timestamps of
the dependencies have changed).

8 years agoevas: Improve debug logs (print shader code)
Jean-Philippe Andre [Mon, 20 Jun 2016 05:19:30 +0000 (14:19 +0900)]
evas: Improve debug logs (print shader code)

8 years agoevas: Use efl_gfx APIs where appropriate
Jean-Philippe Andre [Mon, 20 Jun 2016 05:11:32 +0000 (14:11 +0900)]
evas: Use efl_gfx APIs where appropriate

This is a better fix than the previous patch, as it keeps
the legacy API check. The point of that check is: if the object
has been created with legacy API (evas_object_image_[filled_]add,
then legacy APIs are allowed, otherwise they are disallowed. This
means only EO APIs should be used on an eo_add() image object.

8 years agoevas: Fix type checking for legacy APIs
Jean-Philippe Andre [Mon, 20 Jun 2016 05:04:09 +0000 (14:04 +0900)]
evas: Fix type checking for legacy APIs

This should fix canvas 3d examples (that were calling fill_set
and evas would reject with "object is not an image").

8 years agoedje: Fix double clicks
Jean-Philippe Andre [Mon, 20 Jun 2016 04:37:56 +0000 (13:37 +0900)]
edje: Fix double clicks

This fixes T3895

8 years agoelm_combobox/video: remove EO_BASE_BETA
Amitesh Singh [Mon, 20 Jun 2016 04:27:20 +0000 (09:57 +0530)]
elm_combobox/video: remove EO_BASE_BETA

composite_attach() is no more a beta API after d7c45e41d4a911b16

8 years agoelm: Add internal eo files to EXTRA_DIST
Jean-Philippe Andre [Mon, 20 Jun 2016 03:06:12 +0000 (12:06 +0900)]
elm: Add internal eo files to EXTRA_DIST

This should fix make distcheck

8 years agoelm: Fix default image scale type
Jean-Philippe Andre [Mon, 20 Jun 2016 02:18:18 +0000 (11:18 +0900)]
elm: Fix default image scale type

Elementary image used to respect aspect ratio by default,
corresponding to the fit_inside policy.

Fixes T3914.

8 years agoedje_load: fixed adding ellipse shape data.
Subhransu Mohanty [Mon, 20 Jun 2016 01:13:03 +0000 (10:13 +0900)]
edje_load: fixed adding ellipse shape data.

Reviewers: cedric, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

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

8 years agoevas: fix double define
Marcel Hollerbach [Sun, 19 Jun 2016 09:32:05 +0000 (11:32 +0200)]
evas: fix double define

/usr/local-efl/include/evas-1/Evas_Legacy.h:3762:30: warning: redefinition of typedef 'Evas_Load_Error'
      is a C11 feature [-Wtypedef-redefinition]
typedef Efl_Image_Load_Error Evas_Load_Error;
                             ^
/usr/local-efl/include/evas-1/Evas_Loader.h:126:30: note: previous definition is here
typedef Efl_Image_Load_Error Evas_Load_Error;
                             ^

thank you jpeg :P

8 years agoelementary: Fix fileselector directory monitoring events
Vitor Sousa [Fri, 17 Jun 2016 19:40:49 +0000 (16:40 -0300)]
elementary: Fix fileselector directory monitoring events

@fix

8 years agoEo: Take composite out of beta.
Tom Hacohen [Fri, 17 Jun 2016 18:22:25 +0000 (19:22 +0100)]
Eo: Take composite out of beta.

This has proved itself very useful, and is used all around our API.
It does not make sense to keep it as beta.

8 years agoEfl: Fix a build break
Jean-Philippe ANDRE [Fri, 17 Jun 2016 11:34:55 +0000 (20:34 +0900)]
Efl: Fix a build break

Strange doc reference has decided to break the build now.
Not sure why it worked before and not anymore...

8 years agoexamples: eldbus and elementary: fix build after efl model changes
Stefan Schmidt [Fri, 17 Jun 2016 10:29:19 +0000 (12:29 +0200)]
examples: eldbus and elementary: fix build after efl model changes

In commit 8e4f383d61188020d5ceeee691fd7df761f10202 the function signature
changed but examples have not been build and fixed.

8 years agoexamples: Fix compilation (use legacy func)
Jean-Philippe Andre [Fri, 17 Jun 2016 10:28:57 +0000 (19:28 +0900)]
examples: Fix compilation (use legacy func)

name has been removed (it's part of EO).

8 years agoEvas: Rename smart object into Efl.Canvas.Group
Jean-Philippe Andre [Fri, 17 Jun 2016 08:26:08 +0000 (17:26 +0900)]
Evas: Rename smart object into Efl.Canvas.Group

8 years agoEvas: Fix warnings in Efl.Ui.Text
Jean-Philippe Andre [Fri, 17 Jun 2016 06:35:21 +0000 (15:35 +0900)]
Evas: Fix warnings in Efl.Ui.Text

clang being overzealous with -Wmissing-field-initializers

8 years agoEvas: Cleanup evas smart clipped class
Jean-Philippe Andre [Fri, 17 Jun 2016 06:32:37 +0000 (15:32 +0900)]
Evas: Cleanup evas smart clipped class

This is legacy stuff. I wish we could hide it from our inheritance
entirely. Instead, just make it abstract, remove all functions from
eo (doable here) and rename with the keyword "internal" in the new
ugly java style name.

8 years agoEvas: Remove a useless magic check
Jean-Philippe Andre [Fri, 17 Jun 2016 06:11:32 +0000 (15:11 +0900)]
Evas: Remove a useless magic check

8 years agoEvas: Add smart_ prefix to all smart functions (eo)
Jean-Philippe Andre [Fri, 17 Jun 2016 05:57:31 +0000 (14:57 +0900)]
Evas: Add smart_ prefix to all smart functions (eo)

This is a first step at separating legacy smart
object features away from standard efl interfaces.

8 years agoEvas: Move smart_members_get to legacy
Jean-Philippe Andre [Fri, 17 Jun 2016 05:42:07 +0000 (14:42 +0900)]
Evas: Move smart_members_get to legacy

Going forward, we prefer to return iterators rather than
lists.

8 years agoEvas: Move smart data to legacy
Jean-Philippe Andre [Fri, 17 Jun 2016 05:30:44 +0000 (14:30 +0900)]
Evas: Move smart data to legacy

8 years agoEvas: Move smart_callbacks_descriptions to legacy
Jean-Philippe Andre [Fri, 17 Jun 2016 05:12:02 +0000 (14:12 +0900)]
Evas: Move smart_callbacks_descriptions to legacy

8 years agoEvas: Move smart_get to legacy and smart_attach to internals
Jean-Philippe Andre [Fri, 17 Jun 2016 04:42:09 +0000 (13:42 +0900)]
Evas: Move smart_get to legacy and smart_attach to internals

smart_get and attach referred to an opaque struct, from EO
point of view.

Also, attach was an EO-only function, used nowhere besides
evas object smart itself, and evas grid (which is not EO
public API).

8 years agoEfl.Ui.Image: Remove invalid import in eo file
Jean-Philippe Andre [Fri, 17 Jun 2016 10:25:10 +0000 (19:25 +0900)]
Efl.Ui.Image: Remove invalid import in eo file

8 years agoevas_image_load_bmp: fix bug that image is not decoded, if image is not perfact.
Ji-Youn Park [Fri, 17 Jun 2016 10:12:28 +0000 (18:42 +0830)]
evas_image_load_bmp: fix bug that image is not decoded, if image is not perfact.

8 years agoCanvas text: Fix idiotic memory leak.
Tom Hacohen [Fri, 17 Jun 2016 08:02:23 +0000 (09:02 +0100)]
Canvas text: Fix idiotic memory leak.

Thanks to vtorri for reporting.

8 years agoefl_ui_win: move some APIs get the object's list in special location to efl_ui_win.
Ji-Youn Park [Fri, 17 Jun 2016 07:32:38 +0000 (16:02 +0830)]
efl_ui_win: move some APIs get the object's list in special location to efl_ui_win.

The apis to get the object or object list in special location is useful.
like game app.
so move these APIs from evas canvas to efl_canvas.

8 years agoexamples: eina-cxx: ensure the install hook honors a set DESTDIR
Simon Lees [Fri, 17 Jun 2016 05:35:02 +0000 (15:05 +0930)]
examples: eina-cxx: ensure the install hook honors a set DESTDIR

Only missing from the mkdir this time.

8 years agoelm_video: make emotion obj as a composite object.
Amitesh Singh [Fri, 17 Jun 2016 04:55:41 +0000 (10:25 +0530)]
elm_video: make emotion obj as a composite object.

There is no need to reimplement player interface APIs in elm video.
Thanks marcel for this idea.

8 years agoEvas: Move Object_Pointer_Mode to Efl.Event
Jean-Philippe Andre [Fri, 17 Jun 2016 02:32:25 +0000 (11:32 +0900)]
Evas: Move Object_Pointer_Mode to Efl.Event

8 years agoEvas: Move BiDi type to Efl.Text
Jean-Philippe Andre [Thu, 16 Jun 2016 11:44:45 +0000 (20:44 +0900)]
Evas: Move BiDi type to Efl.Text

This renames it to Efl.Text.Bidirectional_Type.

8 years agoEvas: Move Evas.Load_Error to legacy, use Efl.Image.Load.Error
Jean-Philippe Andre [Thu, 16 Jun 2016 11:01:32 +0000 (20:01 +0900)]
Evas: Move Evas.Load_Error to legacy, use Efl.Image.Load.Error

This also disables the unused interface "load_state".

8 years agoEvas: Remove Evas.Render_Op and switch to Efl.Gfx
Jean-Philippe Andre [Thu, 16 Jun 2016 10:49:06 +0000 (19:49 +0900)]
Evas: Remove Evas.Render_Op and switch to Efl.Gfx

Note: Only two modes are supported (blend and copy).
The Efl.Gfx and Evas enums were different. All other values
were not supported. For legacy compatibility (since GL engine
actually implements some kind of support for all operations),
render_op_set() should still work fine, even though it's not
recommended, and won't work anymore with EO API.

8 years agoEvas: Move Evas_Native_Surface to legacy
Jean-Philippe Andre [Thu, 16 Jun 2016 10:38:21 +0000 (19:38 +0900)]
Evas: Move Evas_Native_Surface to legacy

8 years agotests: Add test case for evas clipees get
Jean-Philippe Andre [Thu, 16 Jun 2016 10:05:36 +0000 (19:05 +0900)]
tests: Add test case for evas clipees get

This tests both legacy (list) and eo (iterator) APIs.
THis is a terrible test with a single item, though.

8 years agoEvas: Fix clipees_get and return an iterator
Jean-Philippe Andre [Thu, 16 Jun 2016 09:11:11 +0000 (18:11 +0900)]
Evas: Fix clipees_get and return an iterator

The legacy function was broken: it was returning the
private data.

8 years agoEvas: Mark legacy_ctor as constructor and beta
Jean-Philippe Andre [Thu, 16 Jun 2016 09:03:32 +0000 (18:03 +0900)]
Evas: Mark legacy_ctor as constructor and beta

This is a futile attempt at hiding an internal function.

8 years agoEvas: Move smart_move_children_relative to evas smart
Jean-Philippe Andre [Thu, 16 Jun 2016 08:56:18 +0000 (17:56 +0900)]
Evas: Move smart_move_children_relative to evas smart

This is temporary...

8 years agoEvas: Move smart_type_check[_ptr] to legacy
Jean-Philippe Andre [Thu, 16 Jun 2016 08:50:20 +0000 (17:50 +0900)]
Evas: Move smart_type_check[_ptr] to legacy

8 years agoEvas: Move smart_clipped_clipper to its class
Jean-Philippe Andre [Thu, 16 Jun 2016 08:45:29 +0000 (17:45 +0900)]
Evas: Move smart_clipped_clipper to its class

It was in Evas.Object, probably to make it work without any ERR
message on invalid objects. Not worth it right now...

8 years agoEvas: Nove smart data get to smart class
Jean-Philippe Andre [Thu, 16 Jun 2016 08:33:42 +0000 (17:33 +0900)]
Evas: Nove smart data get to smart class

It didn't make sense where it was.
No idea why evas_box was overwriting smart_data.get
(esp. since it was returning a private struct).

8 years agoEvas: Rename object focus to key_focus
Jean-Philippe Andre [Thu, 16 Jun 2016 08:19:23 +0000 (17:19 +0900)]
Evas: Rename object focus to key_focus

The evas focus concept is valid and applies only to the
keyboard inputs.

8 years agoEvas: Move object static_clip to legacy
Jean-Philippe Andre [Thu, 16 Jun 2016 07:20:25 +0000 (16:20 +0900)]
Evas: Move object static_clip to legacy

This is a horrible API used for internal optimizations. Which
may or may not be partly broken anyway.

We can do better, in the future. Let's not expose this kind
of API.

8 years agoEvas: Move object name to legacy
Jean-Philippe Andre [Thu, 16 Jun 2016 07:09:49 +0000 (16:09 +0900)]
Evas: Move object name to legacy

All EO objects have a name now. No need for evas object
names anymore.

Also move name_child_find.

8 years agoEvas: Mark type as legacy and protected
Jean-Philippe Andre [Thu, 16 Jun 2016 07:05:00 +0000 (16:05 +0900)]
Evas: Mark type as legacy and protected

Only set() is allowed for EO, and it's a constructor,
protected function. Unfortunately, this means a lot
of #define EVAS_OBJECT_PROTECTED

8 years agoefl_ui_win: add some evas feature(pointer, cache ) to efl.canvas and efl_ui_win
Ji-Youn Park [Fri, 17 Jun 2016 02:00:22 +0000 (10:30 +0830)]
efl_ui_win: add some evas feature(pointer, cache ) to efl.canvas and efl_ui_win

evas will be internal, so APIs need to open public are moved efl.canvas eo
and efl_ui_win.

8 years agoefl: Move promise parameter to return in data model
Felipe Magno de Almeida [Fri, 17 Jun 2016 00:50:37 +0000 (21:50 -0300)]
efl: Move promise parameter to return in data model

Summary:
Instead of:

efl_model_property_get("name", &promise);

now:

promise = efl_model_property_get("name");

Reviewers: stefan_schmidt, cedric

Subscribers: jpeg

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

8 years agoelementary: Modify parameter from @out void to @inout void
Felipe Magno de Almeida [Fri, 17 Jun 2016 00:49:28 +0000 (21:49 -0300)]
elementary: Modify parameter from @out void to @inout void

@out parameters doesn't need initialization, so passing a buffer
to a function must be a @in void_ptr or a @inout void, but
never an @out void.

8 years agoeolian-cxx: Work with @inout parameter of void type
Felipe Magno de Almeida [Fri, 17 Jun 2016 00:48:07 +0000 (21:48 -0300)]
eolian-cxx: Work with @inout parameter of void type

8 years agoedje: creation of gradient node from data parsing of color property and refactoring...
Subhransu Mohanty [Thu, 16 Jun 2016 23:50:05 +0000 (16:50 -0700)]
edje: creation of gradient node from data parsing of color property and refactoring of fill and stroke attribute.

Reviewers: jpeg, cedric

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoelementary: remove non-exist target from Makefile
Jee-Yong Um [Thu, 16 Jun 2016 23:48:13 +0000 (16:48 -0700)]
elementary: remove non-exist target from Makefile

Summary:
efl_ui_flip_internal_part_eo.h doesn't exist but it belongs to
the target list of Makefile.
Remove it from the list to fix an error when building elementary only.

Test Plan: $ make (in src/lib/elementary path)

Reviewers: jpeg, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoMerge in the new text API changes and new Efl.Ui.Text widget
Tom Hacohen [Thu, 16 Jun 2016 19:15:22 +0000 (20:15 +0100)]
Merge in the new text API changes and new Efl.Ui.Text widget

This set of commits include the renaming of textblock to the new
convention, addition of a new interface for interactive text editing,
and a new entry widget that uses this new API.

A better write up will follow when the change is fully done. But the
gist of it is that now you just manipulate text cursors to manipulate
the text and selections. Edje_Entry is no longer used, the logic is
outside. Formats and markup are no longer used, they proved to be
problematic for text editing; we'll add wrappers for setting and getting
markup. Instead of formats we use the more strict subset, which is
format ranges, or as we called them "annotations" that essentially let
you apply a format on a range of text.

There are a few things missing that will soon follow. Namely:
1. Style is currently hardcoded. We need to change it to load from Edje,
    and just use the old entry theme instead of the custom one.
2. Text filtering is not yet implemented.
3. There are a few known issues that need to be fixed.
4. Markup set/get support.
5. Change the IMF API and other APIs that we didn't know much about that
looked a bit messy.

8 years agoUi text: store SEL_FORMAT_TEXT only for now.
Daniel Hirt [Thu, 16 Jun 2016 20:58:20 +0000 (20:58 +0000)]
Ui text: store SEL_FORMAT_TEXT only for now.

8 years agoCanvas test: remove style test for now
Daniel Hirt [Thu, 16 Jun 2016 20:54:55 +0000 (20:54 +0000)]
Canvas test: remove style test for now

8 years agoUi text: fixup build
Daniel Hirt [Thu, 16 Jun 2016 17:22:23 +0000 (17:22 +0000)]
Ui text: fixup build

8 years agoUi text: introduce this new text widget
Daniel Hirt [Wed, 8 Jun 2016 15:37:35 +0000 (15:37 +0000)]
Ui text: introduce this new text widget

This composite object utilizes the Efl.Canvas.Text, Efl.Canvas.Text.Cursor and
Efl.Ui.Interactive API to server as a proper replacement for the Elm Entry
widget.

@feature

8 years agoUi text interactive: introduce this new object (rebase squash)
Tom Hacohen [Wed, 8 Jun 2016 10:45:40 +0000 (11:45 +0100)]
Ui text interactive: introduce this new object (rebase squash)

@feature

Ui text: Add a new interactive version of Canvas.Text

This object is internal and is essentially a Canvas.Text that accepts
key and mouse input. It should be used by Ui.Text as the text
layout/input driver.

Ui text interactive: Add include guard to header.

Ui internal text: Improve input handling support and add selection.

Ui internal text: Add a lot of imf stuff.

Add more text selection handling code.

Add support for allowing selection.

Efl.Ui.Text.Interactive: (reword) code format fix.

Efl.Ui.Text.Interactive: Remove useless struct members.

Add multiline toggle support and a constructor.

Text interactive: Add support for legcay newline.

Text interactive: Use the new cursor_equal function.

Efl.Ui.Text.Interactive: (Rebase split) fixup cursor

Efl.Ui.Interactive: (Rebase split) fixup line_jump_by usage

Text interactive: Cleanup tab/return handling.

Text interactive: Use cursor_equal more.

Text interactive: Simplify and unify selection handling in key input.

Text interactive: Fix user text change reporting.

This is useful for implementing undo/redo.

Text interactive: Add documentation to event.

Efl text interactive: (Rebase reword) Add a new interface to be used later.

Ui text interactive: Migrate one missing change_info call.

Ui text interactive: Mark the correct type for the change event.

Ui text interactive: (Edited) Move to elementary and add "selection,changed".

This is useful for implementing selection handlers. We had to move it to
elementary because we started referencing cursors.

Ui internal: Emit an event for selection changed.

Ui text interactive: Remove unused code.

Ui text interactive: Remove more unused code.

Ui text interactive: Remove more unused code.

Ui text interactive: Rename improperly named function.

Ui text interactive: Update code to the new canvas text api.

Ui text interactive: provide access to the selection cursors.

This is the new API for manipulation selection outside of the object.
Just manipulate these cursors to manipulate the selection.

Fix previous commit.

Ui interactive: Clean up internal functions.

Ui interactive: Fix abuse of selection in word deletion.

Ui text interactive: Fix selection.

Ui text interactive: Fix right key to move next.

Ui text interactive: Fix selection using keyboard.

Ui text interactive: Don't emit selection changed events twice.

We now use the cursor changed event to track changes, so no need
to manually emit events ourselves.

Ui Text interactive: Remove selection,cleared signal, use changed instead.

If the selection cursors are equal, there's no selection, if they are
different, there is.

Ui text interactive: remove redundant code.

Ui text interactive: Don't emit selection changed events on init.

Ui text interactive: Remove unused variable.

Efl.Ui.Interactive: fixup char_coor usage

Ui text interactive: Fix some fixmes.

Ui text interactive: fix selection_cursors_get

Ui text interactive: Skip key down events if marked ON_HOLD.

8 years agoCanvas Text: continue porting api and fixup bugs
Daniel Hirt [Tue, 7 Jun 2016 17:16:34 +0000 (17:16 +0000)]
Canvas Text: continue porting api and fixup bugs

Also: This merges style user and normal style into a list with precedence. This
allows for more flexibility while keeping the API clean.

@feature

8 years agoCanvas text cursor: introduce this new object
Tom Hacohen [Sun, 5 Jun 2016 12:44:03 +0000 (13:44 +0100)]
Canvas text cursor: introduce this new object

The text cursor is now an eo object. Consult the efl_canvas_text_cursor.eo file
for the API.

@feature

8 years agoCanvas text: introduce new text object
Daniel Hirt [Tue, 24 May 2016 13:11:03 +0000 (16:11 +0300)]
Canvas text: introduce new text object

The implementation depends on creating different code paths from the now-legacy
behavior of text appending.

The annotation system introduced in this commit replaces the current way of
applying formats on text.
Up until now it has been quite a hassle for the user to control the formats, as
it required keeping track of the format positions with an opener and closer
formats almost every time (with the exception of own-closing formats).

The combination of Efl.Text API along with the Efl.Canvas.Text annotation API
essentially replaces the capabilities of the old format.

There is additional annotation API to allow more control, so be sure to check
the documentation/.eo files and the wiki page of Efl.Canvas.Text.

The style API now accepts actual strings of format style. There is not longer
need to instantiate as style with style_new() followed later by style_free().

@feature