platform/upstream/efl.git
7 years agocheck: fix efl_ui_check_selected_set() API
Amitesh Singh [Thu, 18 May 2017 09:21:26 +0000 (18:21 +0900)]
check: fix efl_ui_check_selected_set() API

send the theme signal after changing state.
Thanks to JP for pointing out this.

@fix

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agonstate: correct the legacy class name
Amitesh Singh [Thu, 18 May 2017 08:15:39 +0000 (17:15 +0900)]
nstate: correct the legacy class name

@fix

7 years agoRevert "elm_code: Add a save_as API call for writing buffers to a new file"
Andy Williams [Thu, 18 May 2017 07:40:43 +0000 (08:40 +0100)]
Revert "elm_code: Add a save_as API call for writing buffers to a new file"

The implementation is flawed and was not noticed due to
the tests not having run unexpectedly.

This reverts commit ac076be75d125df9353c1a8cdcf970a9a01db370.

7 years agophotocam: fix make distcheck
Amitesh Singh [Thu, 18 May 2017 06:30:24 +0000 (15:30 +0900)]
photocam: fix make distcheck

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agorename Efl.Ui.Zoomable to Efl.Ui.Zoom
Amitesh Singh [Thu, 18 May 2017 05:55:31 +0000 (14:55 +0900)]
rename Efl.Ui.Zoomable to Efl.Ui.Zoom

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agophotocam: move zoom related APIs to Efl.Ui.Zoomable
Amitesh Singh [Thu, 18 May 2017 02:28:47 +0000 (11:28 +0900)]
photocam: move zoom related APIs to Efl.Ui.Zoomable

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoecore_drm2: Better handle flip failure round 2
Derek Foreman [Wed, 17 May 2017 22:31:13 +0000 (17:31 -0500)]
ecore_drm2: Better handle flip failure round 2

If the buffer being flipped to is the one already on screen then
releasing it on flip failure will leave it on scanout with no
references.  The next time a buffer is queued it will be removed
from scanout and deleted.

Not good.

Fix T5462

7 years agoecore_drm2: Better handle flip failure
Derek Foreman [Wed, 17 May 2017 19:53:11 +0000 (14:53 -0500)]
ecore_drm2: Better handle flip failure

We need to release the buffer we couldn't flip to when a flip fails.

This makes whatever bug is causing a page flip to happen right after
dpms blanks the screen, which was leading to a failure to ever wake
from dpms because the flip left a pending buffer that never completed.

Fix T5462

7 years agophotocam: rename 'paused' API to 'zoom_animation'
Amitesh Singh [Wed, 17 May 2017 05:33:48 +0000 (14:33 +0900)]
photocam: rename 'paused' API to 'zoom_animation'

and mark paused_set/get as legacy APIs.

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agophotocam: implement Efl.Gfx.View.view_size.get
Amitesh Singh [Wed, 17 May 2017 04:58:15 +0000 (13:58 +0900)]
photocam: implement Efl.Gfx.View.view_size.get

replace elm_photocam_image_size_get with Efl.Gfx.View.view_size.get
and mark elm_photocam_image_size_get as legacy API.

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agophotocam: merge image_region_show() into image_region
Amitesh Singh [Wed, 17 May 2017 04:02:31 +0000 (13:02 +0900)]
photocam: merge image_region_show() into image_region

and mark this API as legacy

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agophotocam: remove internal_image_get as eo api
Amitesh Singh [Wed, 17 May 2017 02:33:13 +0000 (11:33 +0900)]
photocam: remove internal_image_get as eo api

and mark it as legacy API instead.

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoelm_code: Fix off by 1 in selection refactor
Andy Williams [Wed, 17 May 2017 07:33:06 +0000 (08:33 +0100)]
elm_code: Fix off by 1 in selection refactor

7 years agoc++: Fix examples as Win.Standard was removed
Jean-Philippe Andre [Wed, 17 May 2017 06:43:58 +0000 (15:43 +0900)]
c++: Fix examples as Win.Standard was removed

7 years agoelm: Remove some of Gen_Item types from EO
Jean-Philippe Andre [Wed, 17 May 2017 02:29:11 +0000 (11:29 +0900)]
elm: Remove some of Gen_Item types from EO

Those belong to legacy only, EO interfaces will use models
and objects, not function pointers and item classes.

Ref T5329

7 years agoefl model: Fix invalid type in EO
Jean-Philippe Andre [Wed, 17 May 2017 05:16:50 +0000 (14:16 +0900)]
efl model: Fix invalid type in EO

Efl.Canvas refers to a canvas, like Evas or Window. Efl.Gfx is
the base visual object type in libefl.so

7 years agoevas map: Fix uninitialized fields
Jean-Philippe Andre [Wed, 17 May 2017 04:43:33 +0000 (13:43 +0900)]
evas map: Fix uninitialized fields

This fixes a "jump on uninitialized value" as reported by valgrind.
See evas_map.c:85:
  if (obj->map->cur.map->normal_geometry.x != x1) ch = 1;

7 years agoprefs: Remove some elm_prefs types from EO
Jean-Philippe Andre [Wed, 17 May 2017 02:55:41 +0000 (11:55 +0900)]
prefs: Remove some elm_prefs types from EO

Ref T5329

7 years agowidget: Remove widget_callback_add/del from EO
Jean-Philippe Andre [Wed, 17 May 2017 01:52:26 +0000 (10:52 +0900)]
widget: Remove widget_callback_add/del from EO

Those APIs are not bindable with EO since they pass in a function
pointer. Luckily they are barely used.

Ref T5329

7 years agoelm_code: Fix invalid read of 1 byte
Jean-Philippe Andre [Wed, 17 May 2017 06:21:52 +0000 (15:21 +0900)]
elm_code: Fix invalid read of 1 byte

After end of string...

7 years agoelm_code: Fix use after free
Jean-Philippe Andre [Wed, 17 May 2017 06:13:10 +0000 (15:13 +0900)]
elm_code: Fix use after free

7 years agoedje_cc - use mem_alloc to fail and exit if alloc fails and fix err out
Carsten Haitzler (Rasterman) [Wed, 17 May 2017 05:53:22 +0000 (14:53 +0900)]
edje_cc - use mem_alloc to fail and exit if alloc fails and fix err out

PVS sudio thought this was odd and it was a bit. not a real issue as a
mem alloc failure herw would still be fatal and simply a crash... as
opposed to a clean "out of mem" and fatal exit then...

error out eally was not finding originally allocated color and the
malloc should have been a mem_alloc() that guarantees a valid memory
return (or termintion of the process).

@fix

7 years agoelm glview -> fix pvs studio caught typo in stencil bit mappings
Carsten Haitzler (Rasterman) [Wed, 17 May 2017 05:32:08 +0000 (14:32 +0900)]
elm glview -> fix pvs studio caught typo in stencil bit mappings

this fixes CWE-570 on https://www.viva64.com/en/b/0508/

@fix

7 years agoedje_cc docs - fix docs for vector images as it is wrong
Carsten Haitzler (Rasterman) [Tue, 16 May 2017 17:25:01 +0000 (02:25 +0900)]
edje_cc docs - fix docs for vector images as it is wrong

it's images { vector: "x.svg"; } not vector { vector: "x.svg"; } ...

@fix

7 years agoeo - eoid - finally rtemove option to not have eoid. it doesn't work
Carsten Haitzler (Rasterman) [Fri, 12 May 2017 10:50:17 +0000 (19:50 +0900)]
eo - eoid - finally rtemove option to not have eoid. it doesn't work

we use too many bits for metadata now so eoid is broken... remove it
as an option so people dont break out the foot guns

7 years agoecore_input: add ECORE_AXIS_LABEL_TOUCH_PALM enum
Sung-Jin Park [Wed, 17 May 2017 00:44:35 +0000 (09:44 +0900)]
ecore_input: add ECORE_AXIS_LABEL_TOUCH_PALM enum

Summary:
Some of latest touchscreen devices can report if the tool in contact
is the palm of your hand and there is no axis label for this palm flag.
This adds ECORE_AXIS_LABEL_TOUCH_PALM enum as Ecore_Axis_Label type.

Test Plan: N/A

Reviewers: raster, cedric, jpeg, jypark, devilhorns, ManMower

Reviewed By: jpeg

Subscribers: JHyun

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

7 years agowin: Remove special class Efl.Ui.Win.Standard
Jean-Philippe Andre [Tue, 16 May 2017 12:47:52 +0000 (21:47 +0900)]
win: Remove special class Efl.Ui.Win.Standard

All windows should be standard, really. Except when using legacy
elm_win_add() or if type_set() was called with a specific type.

I dislike type_set...

Ref T5322

7 years agoEfl.Ui.Autorepeat: add 'autorepeat' prefix to methods.
Amitesh Singh [Wed, 17 May 2017 01:28:49 +0000 (10:28 +0900)]
Efl.Ui.Autorepeat: add 'autorepeat' prefix to methods.

Thanks to Dave for pointing out this.

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoelm_code: Add a save_as API call for writing buffers to a new file
Andy Williams [Tue, 16 May 2017 22:19:34 +0000 (23:19 +0100)]
elm_code: Add a save_as API call for writing buffers to a new file

7 years agoelm_code: Fix insertion of multiline content in widget
Andy Williams [Tue, 16 May 2017 21:10:56 +0000 (22:10 +0100)]
elm_code: Fix insertion of multiline content in widget

A small refactoring to reduce code duplication as well :)

7 years agoexamples: evas: fix else block by adding needed parenthesis
Stefan Schmidt [Tue, 16 May 2017 19:58:35 +0000 (21:58 +0200)]
examples: evas: fix else block by adding needed parenthesis

This was broken since over a year. Happened during the automatic eo4
migration in f21ade6123b9053fca8d1632644c48525a99d6e0.

Thanks goes to the gcc warning misleading-indentation:

evas-3d-shadows.c:163:4: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
    else
    ^~~~
evas-3d-shadows.c:165:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’
      evas_canvas3d_node_look_at_set(scene->mediator, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 3.0, 0.0, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 5.0, 0.0);

7 years agoevas: Rename evas_types to evas_canvas3d_types
Jean-Philippe Andre [Tue, 16 May 2017 08:54:37 +0000 (17:54 +0900)]
evas: Rename evas_types to evas_canvas3d_types

Now evas_types has nothing but canvas3d definitions.

Fixes T5312

7 years agoevas: Remove unnecessary imports of evas_types
Jean-Philippe Andre [Tue, 16 May 2017 08:48:19 +0000 (17:48 +0900)]
evas: Remove unnecessary imports of evas_types

Ref T5312

7 years agoevas: Remove Efl.Canvas.Text.Annotation from evas_types.eot
Jean-Philippe Andre [Tue, 16 May 2017 08:46:36 +0000 (17:46 +0900)]
evas: Remove Efl.Canvas.Text.Annotation from evas_types.eot

This moves it to efl/interfaces which may not be the best...
@herdsman should know where to place this opaque definition.

Ref T5312

7 years agoevas: Add seat arg to modifier/lock EO APIs
Jean-Philippe Andre [Tue, 16 May 2017 08:41:09 +0000 (17:41 +0900)]
evas: Add seat arg to modifier/lock EO APIs

This now matches the new seat-related set of APIs present as EAPI.

7 years agoevas: Remove Evas.Modifier from EO
Jean-Philippe Andre [Tue, 16 May 2017 08:23:00 +0000 (17:23 +0900)]
evas: Remove Evas.Modifier from EO

Similar to the previous patch with Evas.Lock

Ref T5312

7 years agoevas: Use enum instead of string in Efl.Input.State
Jean-Philippe Andre [Tue, 16 May 2017 07:48:58 +0000 (16:48 +0900)]
evas: Use enum instead of string in Efl.Input.State

Ref T5312

7 years agoecore_x: Fix build warning (invalid enum used)
Jean-Philippe Andre [Tue, 16 May 2017 07:59:05 +0000 (16:59 +0900)]
ecore_x: Fix build warning (invalid enum used)

7 years agoevas: Remove Evas.Lock from EO
Jean-Philippe Andre [Tue, 16 May 2017 07:25:23 +0000 (16:25 +0900)]
evas: Remove Evas.Lock from EO

This is a step towards the removal of the modifier & lock API
as it is and use enums exclusively.

Ref T5312

7 years agoevas: Move Efl_Gfx_Fill_Spread to legacy
Jean-Philippe Andre [Tue, 16 May 2017 06:42:04 +0000 (15:42 +0900)]
evas: Move Efl_Gfx_Fill_Spread to legacy

This was never implemented and was translated to EO without
any implementation.

7 years agoevas: Move evas event info types to Evas_Legacy.h
Jean-Philippe Andre [Tue, 16 May 2017 06:38:35 +0000 (15:38 +0900)]
evas: Move evas event info types to Evas_Legacy.h

This moves the following definitions from Common to Legacy:
 - Evas_Event_Mouse_Down
 - Evas_Event_Mouse_Up
 - Evas_Event_Mouse_In
 - Evas_Event_Mouse_Out
 - Evas_Event_Mouse_Move
 - Evas_Event_Mouse_Wheel
 - Evas_Event_Multi_Down
 - Evas_Event_Multi_Up
 - Evas_Event_Multi_Move
 - Evas_Event_Key_Down
 - Evas_Event_Key_Up
 - Evas_Event_Hold
 - Evas_Event_Axis_Update

7 years agoevas: Move Evas_Engine_Info to Evas_Legacy.h
Jean-Philippe Andre [Tue, 16 May 2017 06:33:58 +0000 (15:33 +0900)]
evas: Move Evas_Engine_Info to Evas_Legacy.h

7 years agogesture: Use new EO API to grab Ctrl key
Jean-Philippe Andre [Tue, 16 May 2017 06:29:14 +0000 (15:29 +0900)]
gesture: Use new EO API to grab Ctrl key

See previous commit

7 years agoevas: Replace Evas.Modifier_Mask with Efl.Input enums
Jean-Philippe Andre [Tue, 16 May 2017 02:16:28 +0000 (11:16 +0900)]
evas: Replace Evas.Modifier_Mask with Efl.Input enums

This removes Evas.Modifier_Mask from EO.

This introduces two new types instead:
 - Efl.Input.Modifier
 - Efl.Input.Lock

Those are enums, not strings, containing all the known and
currently supported lock and modifier keys. The enums are
bit masks.

This effectively removes the ability for an application to
create and handle specific modifier or lock keys - with EO
API (legacy compatibility is unchanged, of course). I wonder
who ever required this?

7 years agoevas: Remove evas_key_modifier_mask_get from EO
Jean-Philippe Andre [Tue, 16 May 2017 05:38:26 +0000 (14:38 +0900)]
evas: Remove evas_key_modifier_mask_get from EO

Such an ugly API. This is an API to match a string to a number,
build a bitmask from it, and then use that. The supported
strings are well known (should be enum) and would need a
recompilation (ABI update) to support anything new anyway.

7 years agoelm: Add missing eo.c file for elm_button
Jean-Philippe Andre [Tue, 16 May 2017 11:43:58 +0000 (20:43 +0900)]
elm: Add missing eo.c file for elm_button

This fixes a recently introduced crash in elm.

7 years agoEfl.Ui.Autorepeat: Add efl autorepeat interface
Amitesh Singh [Tue, 16 May 2017 06:57:16 +0000 (15:57 +0900)]
Efl.Ui.Autorepeat: Add efl autorepeat interface

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoecore_drm2: Clear next fb if we use it
Derek Foreman [Mon, 15 May 2017 19:29:55 +0000 (14:29 -0500)]
ecore_drm2: Clear next fb if we use it

Fixes a race that's either really hard to hit if you're a developer
or really easy to hit if you're a user.

Thanks to ApB for the debug assistance.

Fix T5484

7 years agoevas: Improve linespacing consistency
Bryce Harrington [Mon, 15 May 2017 09:07:48 +0000 (11:07 +0200)]
evas: Improve linespacing consistency

Reviewers: cedric

Subscribers: jpeg

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

7 years agoecore_evas: Omit redundant return info in doxygen
Bryce Harrington [Mon, 15 May 2017 09:07:06 +0000 (11:07 +0200)]
ecore_evas: Omit redundant return info in doxygen

Summary:
These routines all already have a @return line that states the return
values appropriately; it's unnecessary to restate the return values in
the documentation text.

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Subscribers: cedric, jpeg

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

7 years agophotocam: Fix invalid type in legacy header
Jean-Philippe Andre [Mon, 15 May 2017 08:27:22 +0000 (17:27 +0900)]
photocam: Fix invalid type in legacy header

Sorry, this temporarily broke the build of external apps.

7 years agoevas: Remove Evas.Coord from EO
Jean-Philippe Andre [Mon, 15 May 2017 08:23:11 +0000 (17:23 +0900)]
evas: Remove Evas.Coord from EO

This may be a bit more controversial...
But Evas_Coord really is just an int and all the internals
of EFL assume that the base coordinate type is a 32-bit int.
So this type is a bit redondant and can't easily be changed
to, say, a float or int64.

Ref T5312

7 years agoevas: Remove font_hinting from EO
Jean-Philippe Andre [Mon, 15 May 2017 07:47:34 +0000 (16:47 +0900)]
evas: Remove font_hinting from EO

We only need it in elm_config.
This removes the type Evas_Font_Hinting_Flags from EO,
as well as the functions font_hinting_set/get and
font_hinting_can_hint.

Ref T5312

7 years agoevas: Remove evas touch_point from EO
Jean-Philippe Andre [Mon, 15 May 2017 06:17:38 +0000 (15:17 +0900)]
evas: Remove evas touch_point from EO

Note: it seems the EAPI evas_touch_point_list_xy_get() was
lst at some point, as it doesn't appear in the headers anymore.
It looks like we fail to catch an ABI break! abi_checker didn't
catch this!?

Ref T5312

7 years agoevas: Remove Evas_Border_Fill_Mode from EO
Jean-Philippe Andre [Mon, 15 May 2017 06:07:43 +0000 (15:07 +0900)]
evas: Remove Evas_Border_Fill_Mode from EO

Ref T5312

7 years agoevas: Remove Evas_Image_Orient from EO
Jean-Philippe Andre [Mon, 15 May 2017 05:59:45 +0000 (14:59 +0900)]
evas: Remove Evas_Image_Orient from EO

Ref T5312

7 years agophotocam: Move image_orient to legacy
Jean-Philippe Andre [Mon, 15 May 2017 05:48:03 +0000 (14:48 +0900)]
photocam: Move image_orient to legacy

This makes photocam implement Efl.Flipable and Efl.Orientation
in order to use the proper API.

image_orient is now split into two function calls.

Ref T5312

7 years agoevas: Remove some types from EO
Jean-Philippe Andre [Mon, 15 May 2017 04:33:00 +0000 (13:33 +0900)]
evas: Remove some types from EO

Those are legacy only.

Ref T5312

7 years agoevas: Remove Evas_Callback_Type from EO
Jean-Philippe Andre [Fri, 12 May 2017 10:11:15 +0000 (19:11 +0900)]
evas: Remove Evas_Callback_Type from EO

This moves the enum to legacy only, but in Evas_Common.h and not
Evas_Legacy.h because some other legacy things are in Evas_Common.h

Ref T5312

7 years agoelm_widget: Remove widget_event_propagate from EO
Jean-Philippe Andre [Fri, 12 May 2017 09:46:12 +0000 (18:46 +0900)]
elm_widget: Remove widget_event_propagate from EO

It is an internal only API.

Ref T5312 (one less use of a legacy type)

7 years agoevas: Remove Evas_Text_Style_Type from EO
Jean-Philippe Andre [Fri, 12 May 2017 09:39:34 +0000 (18:39 +0900)]
evas: Remove Evas_Text_Style_Type from EO

It belongs to legacy only... Evas.Text is not part of EO.

Ref T5312

7 years agoevas: Remove Evas_Font_Size from EO
Jean-Philippe Andre [Fri, 12 May 2017 09:10:24 +0000 (18:10 +0900)]
evas: Remove Evas_Font_Size from EO

Ref T5312

7 years agoecore_drm2: Fix use after free
Derek Foreman [Sun, 14 May 2017 18:13:34 +0000 (13:13 -0500)]
ecore_drm2: Fix use after free

In trying to clean up some code and fix a hypothetical buffer leak, I added
a use after free error that can break rendering on the drm and gl_drm
evas engines.

Coverity did the heavy lifting for me on this one.

Fix Coverity CID 1375047
Fix T5484

7 years agoee_drm: Remove some commented out code
Derek Foreman [Fri, 12 May 2017 19:51:39 +0000 (14:51 -0500)]
ee_drm: Remove some commented out code

I think this was intended as a reminder to do something that's already
been done.  Or something.

7 years agoecore_drm2: Add some safety checks for accessing dead fbs
Derek Foreman [Fri, 12 May 2017 19:42:02 +0000 (14:42 -0500)]
ecore_drm2: Add some safety checks for accessing dead fbs

Accessing an fb after discarding it is bad karma, so we should log something
if it ever happens.

7 years agoecore_drm2: refcount fbs
Derek Foreman [Fri, 12 May 2017 19:41:03 +0000 (14:41 -0500)]
ecore_drm2: refcount fbs

Removes the previous "busy" flag, as now we might have an fb attached to
multiple outputs at once, and need to be careful to destroy them only
after they've been removed from all outputs.

Removed the old "busy_set" API which nothing used, and renames fb_destroy
to fb_discard to make it more clear that it's not immediately destroyed.

It's all beta api, so I can do this.

7 years agoevas: simplify fb engine.
Cedric BAIL [Fri, 12 May 2017 22:24:25 +0000 (15:24 -0700)]
evas: simplify fb engine.

7 years agoevas: simplify buffer engine.
Cedric BAIL [Fri, 12 May 2017 22:10:28 +0000 (15:10 -0700)]
evas: simplify buffer engine.

7 years agoevas: stat introducing a concept of engine and output in the backend.
Cedric BAIL [Fri, 12 May 2017 22:03:05 +0000 (15:03 -0700)]
evas: stat introducing a concept of engine and output in the backend.

7 years agoShelf/Gadget themes... Update with proper horiz/vert theme strings for future theme...
Stephen 'Okra' Houston [Fri, 12 May 2017 20:35:46 +0000 (15:35 -0500)]
Shelf/Gadget themes... Update with proper horiz/vert theme strings for future theme developers.

7 years agoecore-wl2: add functions for proxying a selection receive externally
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: add functions for proxying a selection receive externally

in some cases (e.g,, x11 bridged selections) it is necessary to use
alternate means when transferring a selection, and so performing the
entire piped receive is not necessary. instead, extend the lifetime
of the data offer until the proxied receive has completed

@feature

7 years agoecore-wl2: add function for setting a drag source's actions without a drag
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: add function for setting a drag source's actions without a drag

in some cases it may be desired to have a drag data source without ever
initiating a drag, so ensure that it's possible to set the actions of the
source which will be passed for drag operations in this case

@feature

7 years agoecore-wl2: add function for accepting a single mime type
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: add function for accepting a single mime type

@feature

7 years agoecore-wl2: do not offer a null mime first in ecore_wl2_offer_mimes_set()
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: do not offer a null mime first in ecore_wl2_offer_mimes_set()

this seems to have been done to account for the case where no mimes were
passed, but sending null in this way is bad behavior for a client. the
spec indicates that null should be sent only when no mimes are accepted

@fix

7 years agoecore-wl2: add events for changes in keymap, selection, and kbd repeat rate
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: add events for changes in keymap, selection, and kbd repeat rate

@feature

7 years agoecore-wl2: add 'cancelled' to Ecore_Wl2_Event_Data_Source_End
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: add 'cancelled' to Ecore_Wl2_Event_Data_Source_End

it's impossible to know the result of a drag operation without this
member

7 years agoecore-wl2: add display object to all events
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: add display object to all events

this is required in order to determine which connection an event originated
from

7 years agoecore-wl2: add const to internal function param
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: add const to internal function param

7 years agoecore-wl2: add seat id to most events
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: add seat id to most events

seat id is required in order to handle multiseat environments

7 years agoelm_cnp: only attempt to manage wl selections which are created by elm_cnp
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
elm_cnp: only attempt to manage wl selections which are created by elm_cnp

use serials of the selections and events to avoid mangling external selections

7 years agoecore-wl2: emit serials in selection-related events
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: emit serials in selection-related events

these allow apps to match the serial of their selection to the related
event in order to avoid mangling selections from other components

7 years agoecore-wl2: change selection setting apis to return the serial of the request
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: change selection setting apis to return the serial of the request

in the case where multiple places in an app may be handling selections, this
is necessary in order to manage the selections accurately

@feature

7 years agoecore-wl2: remove ERR when trying to find the focused window id
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: remove ERR when trying to find the focused window id

this can trigger in the case where a selection transfer occurs and
no input resource has received an enter (e.g., the window is not focused)

@fix

7 years agoecore-wl2: correctly refcount display objects during events
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: correctly refcount display objects during events

ensure lifetime of display object is longer than events in which
the object is passed

@fix

7 years agoecore-wl2: add safety check in ecore_wl2_display_inputs_get()
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: add safety check in ecore_wl2_display_inputs_get()

ensure this is not called on server displays

7 years agoecore-wl2: handle case where session recovery listener triggers on dead surface
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: handle case where session recovery listener triggers on dead surface

@fix

7 years agoecore-wl2: add function for checking if a client connection sync is done
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: add function for checking if a client connection sync is done

@feature

7 years agoecore-wl2: add some accessors for useful Ecore_Wl2_Input struct members
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: add some accessors for useful Ecore_Wl2_Input struct members

@feature

7 years agoecore-wl2: split data offers into selection and drag
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: split data offers into selection and drag

these are distinct objects and can coexist simultaneously; a drag
source should not overwrite an existing selection source

@fix

7 years agoecore-wl2: store names for inputs and add api for retrieving name
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: store names for inputs and add api for retrieving name

@feature

7 years agoecore-wl2: add checks for a valid display object in ecore_wl2_input fns
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-wl2: add checks for a valid display object in ecore_wl2_input fns

no display = invalid object, so this needs checking

7 years agoecore-evas: account for framespace when processing mouse movement
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-evas: account for framespace when processing mouse movement

in some cases (e.g., the mouse-out emission from the ee wl engine),
this was calculating wrong coordinates, which would lead to a broken
chain of events like:
  object mouse out -> object mouse in -> object mouse out
which would severely break some apps

@fix

7 years agoecore-evas: add function for unsetting a specific seat's cursor
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore-evas: add function for unsetting a specific seat's cursor

@feature

7 years agoecore: allow creation of fd handlers with no flags
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
ecore: allow creation of fd handlers with no flags

it's possible to set flags to 0 with another function, so allowing
creation with 0 makes the api more consistent without breaking the
documented behavior

7 years agoelm_entry: request both text and markup when pasting
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
elm_entry: request both text and markup when pasting

setting this to only markup means that it's impossible to paste into
an elm_entry from a plaintext app under wayland

@fix

7 years agoelm_cnp: don't explicitly set wl window type when starting drag
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
elm_cnp: don't explicitly set wl window type when starting drag

this is no longer necessary

7 years agoevas: ensure even no-op renders emit RENDER_PRE
Mike Blumenkrantz [Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)]
evas: ensure even no-op renders emit RENDER_PRE

ref 67fae7aa0fdc9d778e8db88fc49bc149576994d2

7 years agotests: win_dialog: remove unused variable
Stefan Schmidt [Fri, 12 May 2017 11:21:24 +0000 (13:21 +0200)]
tests: win_dialog: remove unused variable

7 years agoefl ui win -> add test for centering + fix center of window before show
Carsten Haitzler (Rasterman) [Fri, 12 May 2017 10:19:29 +0000 (19:19 +0900)]
efl ui win -> add test for centering + fix center of window before show

we haven't gotten replies yet on what our position or size should be,
so we should store them so centering works before show but after
resizing is evaluated (that also fixed by forcing an eval).

@fix

7 years agoefreet: Fix failure to save list data to output
Bryce Harrington [Fri, 12 May 2017 09:08:30 +0000 (11:08 +0200)]
efreet: Fix failure to save list data to output

Summary:
This fixes a typo in the fix 55676b33, which introduced an invalid early
return from the save_list function, preventing it from outputing the
list data to the file.

@fix CID1375005, CID1375004

Reviewers: jpeg

Reviewed By: jpeg

Subscribers: stefan_schmidt, cedric, jpeg

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