platform/upstream/efl.git
7 years agoeolian: initial structure for units
Daniel Kolesa [Thu, 11 May 2017 14:35:19 +0000 (16:35 +0200)]
eolian: initial structure for units

Units are Eolian files (eo/eot). Each unit contains information
about its class, dependencies, variables and types. This allows
for saner checking to be done.

7 years agoecore-drm2: Don't fill device atomic state if atomic is disabled
Chris Michael [Tue, 30 May 2017 15:01:22 +0000 (11:01 -0400)]
ecore-drm2: Don't fill device atomic state if atomic is disabled

If atomic support is disabled (via kernel or env var), then we do not
need to fill device atomic state as it will not be used anyway.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Don't fill output atomic states if not using atomic
Chris Michael [Tue, 30 May 2017 15:00:20 +0000 (11:00 -0400)]
ecore-drm2: Don't fill output atomic states if not using atomic

If atomic support is not enabled (kernel or env var), then we should
not be filling in output atomic state

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Remove useless return
Chris Michael [Tue, 30 May 2017 14:59:25 +0000 (10:59 -0400)]
ecore-drm2: Remove useless return

This 'return' statement here is just useless as the code can fall
through and the function will return 0 anwyay.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoefl_ui_image_zoomable: fix wrong initial value for zoom mode
Taehyub Kim [Tue, 30 May 2017 11:33:16 +0000 (20:33 +0900)]
efl_ui_image_zoomable: fix wrong initial value for zoom mode

Summary:
fix wrong initial value for ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL mode

@fix

Test Plan:
1. set zoom mode of photocam to ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL in text_photocam.c example
2. run elementary_test -to photocam
3. check it is working well

Reviewers: jpeg, cedric, raster, Hermet, singh.amitesh

Reviewed By: singh.amitesh

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

7 years agoevas: Fix don't redraw map_sufarce issue
jiin.moon [Tue, 30 May 2017 10:25:37 +0000 (19:25 +0900)]
evas: Fix don't redraw map_sufarce issue

Summary:
map_surface does not redraw in below case.

1) parent and child are smart object and has map.
3) drawing objects.
4) apply new map to child object.

Test Plan: sample code

Reviewers: jpeg, cedric, jypark

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

7 years agoevas: Set modifiers & locks on global key events
Jean-Philippe Andre [Tue, 30 May 2017 10:16:48 +0000 (19:16 +0900)]
evas: Set modifiers & locks on global key events

Fixes T5510

7 years agoelm_code: fix wrong selection delete
YeongJong Lee [Tue, 30 May 2017 07:33:10 +0000 (08:33 +0100)]
elm_code: fix wrong selection delete

Summary:
If multi selection have 0 column and delete the selection, 0 + 1 column also
deleted
This fix that bug.

Also, remove needless code.

Test Plan:
1. select multi line with 0 column.
2. delete the selection

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Subscribers: cedric, jpeg

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

7 years agoelm_toolbar: added to ensure different sizes of items in shrink mode.
Bowon Ryu [Fri, 26 May 2017 04:01:56 +0000 (13:01 +0900)]
elm_toolbar: added to ensure different sizes of items in shrink mode.

Change-Id: I9f8a14e77a8859c9a7543e442f8355d5ef5c0d3d
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
7 years agoelm_widget: optimize memory alignment for focus related fields
Jeeyong Um [Tue, 30 May 2017 06:36:17 +0000 (15:36 +0900)]
elm_widget: optimize memory alignment for focus related fields

7 years agoedje: Add test case for signal_recursive_process
Jean-Philippe Andre [Tue, 30 May 2017 04:34:57 +0000 (13:34 +0900)]
edje: Add test case for signal_recursive_process

7 years agoedje: Implement part proxy for all parts
Jean-Philippe Andre [Tue, 30 May 2017 04:52:22 +0000 (13:52 +0900)]
edje: Implement part proxy for all parts

This is required for part_state_get, which is now based
on the EO API internally. This fixes the test case introduced
in the following commmit.

7 years agoedje: Also implement content_get on external part
Jean-Philippe Andre [Mon, 29 May 2017 14:08:54 +0000 (23:08 +0900)]
edje: Also implement content_get on external part

This implements edje_object_part_external_object_get() using
efl_content_get() on the part object. Note that there are now
two ways to call APIs on the external part:
 - direct call to the efl_part() as if it was the object itself
     (implemented by composition),
 - get a handle with efl_content_get(efl_part()) and manipulate
      it directly (it is the real object).

Do we need this? Do we need the composition trick? Should we have
only one of those solutions implemented?

7 years agoedje: Compose external part with real object
Jean-Philippe Andre [Mon, 29 May 2017 13:47:55 +0000 (22:47 +0900)]
edje: Compose external part with real object

This effectively replaces edje_object_part_external_object_get
and allows all function calls except those from Efl.Object.

Is this good enough? Or do we need access to the real object?

7 years agoedje: Remove external_object_get from EO
Jean-Philippe Andre [Mon, 29 May 2017 13:33:28 +0000 (22:33 +0900)]
edje: Remove external_object_get from EO

This will be replaced by a trick: composition on the part
object itself!

7 years agoedje: Remove part_external_content_get from EO
Jean-Philippe Andre [Mon, 29 May 2017 13:27:21 +0000 (22:27 +0900)]
edje: Remove part_external_content_get from EO

I couldn't find a use of this API. This looks like it returns
an object inside a part inside an external (so, inside an edje).

Kept as legacy only.

7 years agoedje: Move external_param_set to a efl_part API
Jean-Philippe Andre [Mon, 29 May 2017 11:28:08 +0000 (20:28 +0900)]
edje: Move external_param_set to a efl_part API

This adds a new class: Efl.Canvas.Layout.External.
I hate this long name...

This class represents an external part, and for now only
supports param_set/get as well as param_type_get. For now
param_type_get() still returns an Edje_External_Param_Type and
not another more generic type.

TODO: enumerate choices, return object, return content

7 years agoedje: Enhance documentation for play vs animation
Jean-Philippe Andre [Mon, 29 May 2017 09:57:09 +0000 (18:57 +0900)]
edje: Enhance documentation for play vs animation

I had to test in order to get an idea of what those two similar
properties meant. Hopefully this is clear and not wrong.

See example: edje-animations

7 years agoeina: Fix broken link in doc to introduce integer hash algorithms
Jeeyong Um [Tue, 30 May 2017 04:33:19 +0000 (13:33 +0900)]
eina: Fix broken link in doc to introduce integer hash algorithms

7 years agoevas gl: Add an env var to debug GLSL version issues
Jean-Philippe Andre [Tue, 30 May 2017 02:11:41 +0000 (11:11 +0900)]
evas gl: Add an env var to debug GLSL version issues

Set this env var to "300 es" to test GLSL 300 ES as shader
version. This is for brokenshakles.

Example:
  export EVAS_GL_GET_PROGRAM_BINARY=0
  export EVAS_GL_SHADER_GLSL_VERSION="300 es"
  export ELM_ACCEL=gl
  elementary_test

7 years agocheck: Bump version to 0.9.10 and change macro
Jean-Philippe Andre [Tue, 30 May 2017 02:02:05 +0000 (11:02 +0900)]
check: Bump version to 0.9.10 and change macro

Changing ck_assert_ptr_nonnull() to ck_assert_ptr_ne() in order to
require "only" check >= 0.9.10. ck_assert_ptr_nonnull() was
introduced in 0.11.0. ck_assert_ptr_ne() is already used a lot
in the test suite so a recent version of check is required.

7 years agoevas - adjust code in evas init to keep threaded gl patches applying
Carsten Haitzler (Rasterman) [Mon, 29 May 2017 09:01:37 +0000 (18:01 +0900)]
evas - adjust code in evas init to keep threaded gl patches applying

7 years agoedje: Add recursive flag for message_signal_process
Jean-Philippe Andre [Mon, 29 May 2017 06:41:06 +0000 (15:41 +0900)]
edje: Add recursive flag for message_signal_process

Original patch by Jinwoo Shin:

If edje has multiple levels of child group,
edje_object_message_signal_process cannot process message on
child group. To cover that, it needs to add new API which
traverses its hierarchy and process messages.

@feature

Signed-off-by: jinwoo.shin <jw0227.shin@samsung.com>
Differential Revision: https://phab.enlightenment.org/D4914

7 years agoelm: rename elm_photocam to Efl.Ui.Image.Zoomable
Amitesh Singh [Mon, 29 May 2017 03:00:41 +0000 (12:00 +0900)]
elm: rename elm_photocam to Efl.Ui.Image.Zoomable

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoecore: Try to fix build
Jean-Philippe Andre [Mon, 29 May 2017 04:36:51 +0000 (13:36 +0900)]
ecore: Try to fix build

ecore_types.eot does not exist anymore.

7 years agoeo: Make efl_cast() return NULL if invalid cast
Jean-Philippe Andre [Mon, 29 May 2017 02:28:13 +0000 (11:28 +0900)]
eo: Make efl_cast() return NULL if invalid cast

This makes it work like C++ dynamic_cast<> operator, so that
the return value will be NULL if the object is not an instance
of the given class.

In case of efl_super() we don't do it as efl_super is used A LOT
inside EFL itself (all constructors & destructors, for a start)
and efl_isa is in fact a bit expensive. efl_cast isn't really used
and is intended to be something like dynamic_cast.

For @cedric :)

7 years agoedje: Move part_state_get to efl_part
Jean-Philippe Andre [Fri, 26 May 2017 02:53:27 +0000 (11:53 +0900)]
edje: Move part_state_get to efl_part

7 years agoedje: Implement part_geometry_get with Efl.Part
Jean-Philippe Andre [Fri, 26 May 2017 02:33:58 +0000 (11:33 +0900)]
edje: Implement part_geometry_get with Efl.Part

This refactors even more the edje part eo internals. But now
common part APIs can easily be implemented in edje_part.c

The API now looks like:
  efl_gfx_geometry_get(efl_part(edje, "part"), &x, &y, &w, &h)

7 years agoedje: Refactor a bit internal parts for edje objects (EO)
Jean-Philippe Andre [Fri, 26 May 2017 01:52:57 +0000 (10:52 +0900)]
edje: Refactor a bit internal parts for edje objects (EO)

1. Make internal part "real_part_set" an internal function (EO)
2. Use a common class rather than an interface:
  - Cost: 1 extra call to efl_data_scope_get() as we don't have
    the data inside the EO function call implementation.
  - Gain: Ability to implement common code, such as part_geometry_get

7 years agoedje: Remove part_object_get from EO
Jean-Philippe Andre [Fri, 26 May 2017 01:41:52 +0000 (10:41 +0900)]
edje: Remove part_object_get from EO

Ooooh. This one might be controversial, as some apps definitely
use the function. But it is so easily abused. For our EO API
we are trying to not expose any internal object, as this prevents
us from making changes to the internal behaviour and structure.
All the features that this API provided should be limited to
read-only access to the internal object. In order to replace
this, we will have to return an Efl.Part object that implements
all those APIs: geometry_get, visibility_get, etc...

7 years agoedje: Unify load error types for image and edje (EO)
Jean-Philippe Andre [Fri, 26 May 2017 01:29:05 +0000 (10:29 +0900)]
edje: Unify load error types for image and edje (EO)

Most of the values were the same, with edje having just a couple
more error codes.

Not entirely sure the prefix Efl.Image is correct for this type.
Maybe just Efl.Load.Error?

7 years agoedje: Move message structs to legacy header
Jean-Philippe Andre [Fri, 26 May 2017 01:11:20 +0000 (10:11 +0900)]
edje: Move message structs to legacy header

7 years agoedje: Remove Message_Type from EO
Jean-Philippe Andre [Thu, 25 May 2017 10:22:46 +0000 (19:22 +0900)]
edje: Remove Message_Type from EO

See the previous commits, Eina_Value is used directly, no need to
specify the type.

7 years agoecore: Remove ecore_types.eot
Jean-Philippe Andre [Thu, 25 May 2017 10:12:08 +0000 (19:12 +0900)]
ecore: Remove ecore_types.eot

This moves one enum from EO to legacy only (Ecore_Pos_Map).
Ideally the type should be in Ecore_Legacy and no Common, that
can be done later.

Ref T5522

7 years agoelm inwin - fix unised variable warning by removing it
Carsten Haitzler (Rasterman) [Mon, 29 May 2017 01:14:38 +0000 (10:14 +0900)]
elm inwin - fix unised variable warning by removing it

7 years agoUi text: use new text api instead of 'style'
Daniel Hirt [Tue, 23 May 2017 13:04:53 +0000 (16:04 +0300)]
Ui text: use new text api instead of 'style'

7 years agoUi text: use 'wrap' and 'multiline' properties
Daniel Hirt [Tue, 23 May 2017 13:04:04 +0000 (16:04 +0300)]
Ui text: use 'wrap' and 'multiline' properties

7 years agoCanvas text: implement Font, Format and Style interfaces
Daniel Hirt [Mon, 22 May 2017 15:02:43 +0000 (18:02 +0300)]
Canvas text: implement Font, Format and Style interfaces

This replaces the 'style' API with actual properties.

@feature

7 years agoEfl text: add Font, Format and Style interfaces
Daniel Hirt [Mon, 22 May 2017 14:36:41 +0000 (17:36 +0300)]
Efl text: add Font, Format and Style interfaces

The following text interfaces are added:
  - Efl.Text.Font: font settings that decide which font to display in
the text
  - Efl.Text.Format: formatting that affects the looks and layout of
the text
  - Efl.Text.Style: decorations and overlays that shouldn't affect the
font choice or the layout

@feature

7 years agoelm_code: Allow multibyte characters to be entered
Andy Williams [Fri, 26 May 2017 22:07:52 +0000 (23:07 +0100)]
elm_code: Allow multibyte characters to be entered

@fix T5496

7 years agoelput: do not set TABLET_PAD to have POINTER caps
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
elput: do not set TABLET_PAD to have POINTER caps

7 years agoelput: fallback to regular device name if output_name is not available
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
elput: fallback to regular device name if output_name is not available

7 years agowayland/drm: create evas_devices and add device pointer to input events
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
wayland/drm: create evas_devices and add device pointer to input events

this is still semi-broken if a seat has many pointer-ish type devices since
pointer devices in ecore-evas were never correctly implemented to be 1:1 with
seat:cursor relationships

@feature

7 years agoevas: better handle async device creation of default mouse
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
evas: better handle async device creation of default mouse

instead of yolo setting the first pointer-ish device which is created,
check to see if a better match for "default mouse" can be applied

@fix

7 years agoelput: store output w/h and apply to devices on creation
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
elput: store output w/h and apply to devices on creation

fix async device initialization for devices which need this (e.g., touchpads)

@fix

7 years agoelput: add more elput_seat accessor apis
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
elput: add more elput_seat accessor apis

7 years agoecore-evas: init cursors for all pointer-ish objects
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
ecore-evas: init cursors for all pointer-ish objects

all of these will use a cursor visual if one is set

@fix

7 years agoecore-evas: clear cursor object cache when setting default cursor
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
ecore-evas: clear cursor object cache when setting default cursor

@fix

7 years agoecore-evas: only apply cursor object cache for default pointer
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
ecore-evas: only apply cursor object cache for default pointer

@fix

7 years agoecore-drm2: simplify output name checking on device change
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
ecore-drm2: simplify output name checking on device change

eina_streq handles null and stringshare params

7 years agoelput: start elput_device_ and elput_seat_ namespaces, rename some functions
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
elput: start elput_device_ and elput_seat_ namespaces, rename some functions

7 years agoelput: rename and make public Elput_Device_Caps enum
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
elput: rename and make public Elput_Device_Caps enum

7 years agoelput/drm: redo xkb context/keymap setting
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
elput/drm: redo xkb context/keymap setting

context and keymap need to be set at the same time in order to effectively
update keyboard state, and active group should be accessible through api
as well

preserve old function ABI to ensure old binaries don't crash

7 years agoelput: implement compose sequences
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
elput: implement compose sequences

@feature

fix T5006

7 years agoelput: fix key/keyname strings in key events
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
elput: fix key/keyname strings in key events

todo: move all this duplicated code somewhere

7 years agoelput: sync _keyboard_keysym_translate() with ecore-wl2 code, add copyright
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
elput: sync _keyboard_keysym_translate() with ecore-wl2 code, add copyright

7 years agoelput: add copyright from weston
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
elput: add copyright from weston

7 years agoecore-wl2: implement compose keys
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
ecore-wl2: implement compose keys

@feature

ref T5006

7 years agoecore-wl2: add weston copyright notice to ecore_wl2_input.c
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
ecore-wl2: add weston copyright notice to ecore_wl2_input.c

this file contains code copied from weston

7 years agoelput: handle double/triple click for pen events
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
elput: handle double/triple click for pen events

7 years agoelput: send axis events for tablet tools
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
elput: send axis events for tablet tools

7 years agoelput: add initial input tablet support
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
elput: add initial input tablet support

@feature

7 years agoelput: use unrounded coords for subpixel struct members in events
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
elput: use unrounded coords for subpixel struct members in events

@fix

7 years agoelput: store device pressure for use in events
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
elput: store device pressure for use in events

7 years agoelput: group tablet input devices into pointer devices
Mike Blumenkrantz [Fri, 26 May 2017 20:34:10 +0000 (16:34 -0400)]
elput: group tablet input devices into pointer devices

this is consistent with x11 behavior as well as the behavior of other toolkits
under wayland

@feature

7 years agoelementary_test: add a new inwin test
Marcel Hollerbach [Fri, 26 May 2017 19:33:34 +0000 (21:33 +0200)]
elementary_test: add a new inwin test

to show focusable widgets in the inwin

7 years agoelm_inwin: set this widget as a redirect
Marcel Hollerbach [Thu, 25 May 2017 21:01:51 +0000 (23:01 +0200)]
elm_inwin: set this widget as a redirect

once this widget is visible, It should handle the focus of its children
and leave no option to the underlaying widgets to gain focus.

This is implemented by making it a redirect when it gets visible.

7 years agointroduce efl_ui_focus_manager_root_focus
Marcel Hollerbach [Thu, 25 May 2017 14:37:01 +0000 (16:37 +0200)]
introduce efl_ui_focus_manager_root_focus

add a class that fills a dummy element for the case of no element added
at all.

7 years agoelm_code: fix cursor position (100%)
Al Poole [Wed, 24 May 2017 20:18:19 +0000 (21:18 +0100)]
elm_code: fix cursor position (100%)

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Subscribers: cedric, jpeg

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

7 years agoEfl.Ui.Progressbar: Implement Efl.Ui.Progress intf for progressbar part
Amitesh Singh [Wed, 24 May 2017 08:02:37 +0000 (17:02 +0900)]
Efl.Ui.Progressbar: Implement Efl.Ui.Progress intf for progressbar part

and remove part_value_set/get as EO APIs

ref T5360

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoEfl.Ui.Progressbar: add pulse_mode & pulse as eo API
Amitesh Singh [Wed, 24 May 2017 05:12:34 +0000 (14:12 +0900)]
Efl.Ui.Progressbar: add pulse_mode & pulse as eo API

and mark pulse_set/get, pulse and is_pulsing_get() as legacy APIs

ref T5360

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoexamples: Test API efl_input_device_children_iterate
Jean-Philippe Andre [Wed, 24 May 2017 06:31:45 +0000 (15:31 +0900)]
examples: Test API efl_input_device_children_iterate

While the API seems to work fine, I am not 100% sure the device
names are properly assigned.

Run ecore_evas_cursor_example or ecore_evas_vnc_example and
then connect to the VNC server locally or remotely.

7 years agoevas: Unify device names
Jean-Philippe Andre [Wed, 24 May 2017 07:00:47 +0000 (16:00 +0900)]
evas: Unify device names

Fixes mouse name that was "keyboard".

This is an attempt at unifying names under X11, WL and VNC.

The default device names now look the same, namely "Keyboard"
and "Mouse". The default seat still has different names on WL
and X11 ("seat-0" and "default").

7 years agoelm: Remove elm_box_layout_set from EO
Jean-Philippe Andre [Wed, 24 May 2017 06:17:06 +0000 (15:17 +0900)]
elm: Remove elm_box_layout_set from EO

This removes a type from ecore_types.eot
elm_box is legacy. Efl.Ui.Box is the new EO-enabled box.

Ref T5522

7 years agoevas/elm: Add Efl.Image.image_size read-only property
Jean-Philippe Andre [Wed, 24 May 2017 06:07:21 +0000 (15:07 +0900)]
evas/elm: Add Efl.Image.image_size read-only property

Following a remark in the mailing list, it is pretty clear that
Efl.Gfx.View.view_size is not as simple as "image_size".

I have defined this new image_size as being the size of the
image file, and not what's currently loaded. So it will not
apply to proxies, gl views, 3d scenes, etc... but only to
standard image files loaded with file_set or mmap_set.
Supported objects:
 - Efl.Canvas.Image (evas image)
 - Efl.Ui.Image (elm image)
 - Elm.Photocam (note: still needs some interface work)

@feature

7 years agoevas: Fix rare crash in object destruction
Jean-Philippe Andre [Wed, 24 May 2017 04:52:13 +0000 (13:52 +0900)]
evas: Fix rare crash in object destruction

The COW object may have not been created if the object could
not be created. Example: a window failed to open because the
engine could not create a surface.

7 years agoevas: Add children_iterate to Efl.Input.Device
Jean-Philippe Andre [Wed, 24 May 2017 04:26:51 +0000 (13:26 +0900)]
evas: Add children_iterate to Efl.Input.Device

This is a new method for EO that allows us to enumerate the
children of a device, especially useful for seat devices.

@feature

7 years agoevas: Make efl_input_device_seat_id_get() more useful
Jean-Philippe Andre [Wed, 24 May 2017 04:12:51 +0000 (13:12 +0900)]
evas: Make efl_input_device_seat_id_get() more useful

And cleanup the EO file a little bit.

7 years agospinner: Add signal to notify the value of spinner has been reached at min, max.
Woochan Lee [Wed, 24 May 2017 04:31:14 +0000 (13:31 +0900)]
spinner: Add signal to notify the value of spinner has been reached at min, max.

Summary: The User requires this signal to handle spinner widget easily on their app.

Test Plan: Spinner test on elementary_test.

Reviewers: cedric, jpeg, Hermet, woohyun, Jaehyun, myoungwoon, Jaehyun_Cho

Reviewed By: myoungwoon, Jaehyun_Cho

Subscribers: myoungwoon, cedric, jpeg

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

7 years agoedje: Implement EO API for message_send
Jean-Philippe Andre [Tue, 23 May 2017 07:29:16 +0000 (16:29 +0900)]
edje: Implement EO API for message_send

Since this uses generic_value (aka Eina_Value), there is an
implicit type detection and conversion. I did not attempt to
cover all types (namely string+int and string+float and even
less sets of those) as I believe they aren't really used. Or
they most likely could be replaced by multiple messages rather
than a single message.

Note: should we pass ptr(generic_value) instead of generic_value?
The API looks a little odd in C when passing by value.

@feature

7 years agoedje: Fix typos and overall strange function name
Jean-Philippe Andre [Mon, 22 May 2017 10:32:22 +0000 (19:32 +0900)]
edje: Fix typos and overall strange function name

popornot was supposed to be propornot which stands for prop or not.
prop itself means propagate. Why choose a name so complicated? :)

7 years agoedje: Remove message_handler_set from EO
Jean-Philippe Andre [Mon, 22 May 2017 10:18:41 +0000 (19:18 +0900)]
edje: Remove message_handler_set from EO

It is used to receive messages with a payload from embryo to C.
This API has a function pointer, which means it would have to be
manually bound, or transformed (eg. eo event).

Also, prepare the change for message_send to use Eina_Value and
no explicit type.

This feature seems rarely used.

But note that handler_set is in fact used in terminology, rage and
luncher. So, if the need arises, it will have to be transformed in
a proper EO way.

7 years agoelm_code: reduce race conditions in rendering cursor
Andy Williams [Tue, 23 May 2017 22:03:08 +0000 (23:03 +0100)]
elm_code: reduce race conditions in rendering cursor

This code is slowly getting neater as we get to the bottom of it

7 years agoelm_win: Fix breakage in frame bg style with Elementary WL2
Bryce Harrington [Tue, 23 May 2017 20:45:06 +0000 (16:45 -0400)]
elm_win: Fix breakage in frame bg style with Elementary WL2

Summary:
An else statement was added in 5ebdf8f3 with no clause, resulting in the
bg_solid property becoming conditionalized such that it won't be set
correctly when HAVE_ELEMENTARY_WL2 is defined and there is no wayland
window in use.

Further, this also causes focus to be left undefined.  Since there's no
window, presumably it should be turned off in this circumstance.

fix CID1375496, CID1375497

Reviewers: zmike

Subscribers: cedric, jpeg

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

7 years agoelm_fileselector: use a sane item size
Marcel Hollerbach [Tue, 23 May 2017 18:05:15 +0000 (20:05 +0200)]
elm_fileselector: use a sane item size

16 px is nothing you can really read, even the font is bigger than that,
so you only see "...", like
http://www.enlightenment.org/ss/e-592478d86028f5.91073806.jpg.

Now it looks like:
http://www.enlightenment.org/ss/e-592479ac4dde13.60227000.png

@fix

7 years agoEvas textblock: fix width calculation of non-dirty paragraphs
Daniel Hirt [Tue, 23 May 2017 09:14:57 +0000 (12:14 +0300)]
Evas textblock: fix width calculation of non-dirty paragraphs

This reverts commit 0a28cb97af928623127644e37a522af36035a845, as the
addressed issue was still occurring.
Non-dirty paragraphs were not considered when recalculating the
formatted width of the text.
This could easily be reproduced with two paragraphs, getting the width,
and then updating only the second paragraph.

Added a test case.

@fix

7 years agoupdate po/* files after progressbar rename
Amitesh Singh [Tue, 23 May 2017 09:54:45 +0000 (18:54 +0900)]
update po/* files after progressbar rename

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoelm: rename elm_progressbar to Efl.Ui.Progressbar
Amitesh Singh [Tue, 23 May 2017 09:30:00 +0000 (18:30 +0900)]
elm: rename elm_progressbar to Efl.Ui.Progressbar

ref T5360

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoEfl.Ui.Radio: correct the 'changed' event name
Amitesh Singh [Tue, 23 May 2017 06:41:17 +0000 (15:41 +0900)]
Efl.Ui.Radio: correct the 'changed' event name

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoEfl.Ui.Check: correct the include gaurds name
Amitesh Singh [Tue, 23 May 2017 01:24:38 +0000 (10:24 +0900)]
Efl.Ui.Check: correct the include gaurds name

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoelementary: fix global declaration
Jean Guyomarc'h [Mon, 22 May 2017 17:39:10 +0000 (19:39 +0200)]
elementary: fix global declaration

Don't DEFINE a global in a header, DECLARE it instead!
This fixes link on macOS.

7 years agoelm_cnp: use correct pointer when emitting ELM_CNP_EVENT_SELECTION_CHANGED
Mike Blumenkrantz [Mon, 22 May 2017 10:52:57 +0000 (06:52 -0400)]
elm_cnp: use correct pointer when emitting ELM_CNP_EVENT_SELECTION_CHANGED

CID ???

7 years agoupdate po/* files after elm_radio rename
Amitesh Singh [Mon, 22 May 2017 10:19:26 +0000 (19:19 +0900)]
update po/* files after elm_radio rename

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agorename elm_radio to Efl.Ui.Radio
Amitesh Singh [Mon, 22 May 2017 09:56:52 +0000 (18:56 +0900)]
rename elm_radio to Efl.Ui.Radio

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoAdd po/* files changes after elm_button rename
Amitesh Singh [Mon, 22 May 2017 08:34:45 +0000 (17:34 +0900)]
Add po/* files changes after elm_button rename

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoevas: Fix build for Windows without segv
Jean-Philippe Andre [Mon, 22 May 2017 08:20:35 +0000 (17:20 +0900)]
evas: Fix build for Windows without segv

Revert "Revert "evas: Fix build for Windows (hopefully)""
This reverts commit c8ec1cb2af4f3771ebdcafff3a1f9c7db5c13dad.

The two efl_input_ functions need to be declared as EOAPI inside
the file where they are implemented. Otherwise the symbols aren't
exposed and weak linking means the function call crashes.

Sorry for the first untested patch and subsequent revert. Things
should be in order now.

7 years agorename elm_button to Efl.Ui.Button
Amitesh Singh [Mon, 22 May 2017 03:48:12 +0000 (12:48 +0900)]
rename elm_button to Efl.Ui.Button

ref T5323

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoRevert "evas: Fix build for Windows (hopefully)"
Jean-Philippe Andre [Mon, 22 May 2017 06:05:16 +0000 (15:05 +0900)]
Revert "evas: Fix build for Windows (hopefully)"

This reverts commit 1e2d382298b0d4357d35b1f350c04f04820c7218.
This segfaults. Ouch... Will need more time to fix this.

7 years agoevas: Fix build for Windows (hopefully)
Jean-Philippe Andre [Mon, 22 May 2017 05:41:00 +0000 (14:41 +0900)]
evas: Fix build for Windows (hopefully)

The declaration of some internal EO APIs was located in the wrong
library, which results on Windows to an invalid definition of
EAPI (dllexport vs dllimport).

Thanks @vtorri for the report!

7 years agoconfig: fix keybindings for Efl.Ui.Check
Amitesh Singh [Mon, 22 May 2017 05:47:37 +0000 (14:47 +0900)]
config: fix keybindings for Efl.Ui.Check

Thanks to Woohyun for reporting this.

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>