platform/upstream/efl.git
7 years agoEina Debug: rewrite efl_debugd for portability
Daniel Zaoui [Thu, 8 Jun 2017 22:25:52 +0000 (01:25 +0300)]
Eina Debug: rewrite efl_debugd for portability

The previous version of the daemon was using functions specific to
Linux, such as epoll...

The daemon communication part has been rewritten to use Ecore
functionalities.

Sorry for the inconvenience guys

7 years agoEina Debug: fix a bug resulting in registering opcodes twice
Daniel Zaoui [Thu, 8 Jun 2017 22:09:38 +0000 (01:09 +0300)]
Eina Debug: fix a bug resulting in registering opcodes twice

The opcodes registration request is sent directly in case the connection
is already made. Otherwise, the request is waiting for the connection to
be made by the dedicated thread (not the main loop).
That's why the request can be sent by the two different threads at the
same time, leading to send it twice. It means a callback for an opcode
would be invoked twice everytime a request with this opcode is received.

This patch fixes it by checking if the request has already been sent.

7 years agoelm_inwin: set the redirect manager on the correct object
Marcel Hollerbach [Sat, 10 Jun 2017 15:43:00 +0000 (17:43 +0200)]
elm_inwin: set the redirect manager on the correct object

otherwise the redirect is never set on the window which does not work

7 years agoefl_ui_focus_manager: enhance documentation of the semantics of that
Marcel Hollerbach [Sat, 10 Jun 2017 15:00:41 +0000 (17:00 +0200)]
efl_ui_focus_manager: enhance documentation of the semantics of that
function

7 years agoelm_naviframe: this is not handling focus
Marcel Hollerbach [Sat, 10 Jun 2017 11:45:58 +0000 (13:45 +0200)]
elm_naviframe: this is not handling focus

the widgets that are used to compose the naviframe are handling it, not
the naviframe itself.

7 years agoefl_ui_focus_manager: use focus geometry for the shortest distance
Marcel Hollerbach [Sat, 10 Jun 2017 09:20:45 +0000 (11:20 +0200)]
efl_ui_focus_manager: use focus geometry for the shortest distance

7 years agoelm_toolbar: do not focus a separator
Marcel Hollerbach [Sat, 10 Jun 2017 09:20:14 +0000 (11:20 +0200)]
elm_toolbar: do not focus a separator

7 years agoelm_code: Fix possible crash when deleting a selection
Andy Williams [Sat, 10 Jun 2017 06:40:40 +0000 (23:40 -0700)]
elm_code: Fix possible crash when deleting a selection

If there was a multiline selection that ended at the end of a line this could crash
@fix

7 years agoRevert "Revert "Edje calc: Fix textblock size calculation logic""
Mike Blumenkrantz [Sat, 10 Jun 2017 00:20:47 +0000 (20:20 -0400)]
Revert "Revert "Edje calc: Fix textblock size calculation logic""

This reverts commit 0392cd3c489ee1c69dc768b2c3e8ac01ba1854c1.

oops this was supposed to just be local

7 years agotheme: add signal to e border theme to set NOGRAB on titlebar part
Mike Blumenkrantz [Sat, 10 Jun 2017 00:16:08 +0000 (20:16 -0400)]
theme: add signal to e border theme to set NOGRAB on titlebar part

for compatibility reasons this can only be changed in a signal callback
in the default theme.

all themes should now use NOGRAB for parts which can be used to trigger
window_move signal bindings

ref T5552

7 years agoedje: add set_pointer_mode() to embryo functions
Mike Blumenkrantz [Sat, 10 Jun 2017 00:16:08 +0000 (20:16 -0400)]
edje: add set_pointer_mode() to embryo functions

this should probably be a description-level property

7 years agoevas: add new event_grabber smart-ish object
Mike Blumenkrantz [Sat, 10 Jun 2017 00:16:08 +0000 (20:16 -0400)]
evas: add new event_grabber smart-ish object

adding an "event rect" is a common use case for rectangles, but I needed
a smarter event rect so I sent one off to school and it came back like this.

an event_grabber is a smart object which functions like a normal event rect
which has color(0,0,0,0), but with an important difference: it can have smart
members. event propagation works differently for an event_grabber:

normal:
event -> layer -> smart(obj1,obj2,obj3) ->(?) other objects
in this case, obj1,obj2,obj3 are all "inside" the smart object and their stacking
will always be considered as being inside the smart object. rendering is also
tied to the smart object in this case, as is clipping.
an event which reaches a smart object will be sent to the objects inside,
and then may continue through the smart object if there are no objects which
block repeating.

event_grabber:
event -> layer -> event_grabber -> obj1,obj2,obj3 -> STOP
in this case, obj1,obj2,obj3 are unmodified after being added to the event_grabber
and can be stacked, rendered, and clipped completely independently of the
event_grabber.
the event_grabber is considered an "event_parent" for this case. member objects
are not "inside" the event_grabber, and they are unable to receive events on
their own. instead, the event_grabber, which must be stacked above all its
members, receives events and propagates them top->down through its member objects.
if none of the member objects block the repeat of an event then the event will
still be blocked from further propagation past the event_grabber.

object lifetimes are independent of the event_grabber; deleting the event_grabber
has no effect on its members.

@feature

7 years agoevas: remove null check, passthrough list in _evas_event_object_list_in_get()
Mike Blumenkrantz [Sat, 10 Jun 2017 00:16:08 +0000 (20:16 -0400)]
evas: remove null check, passthrough list in _evas_event_object_list_in_get()

_evas_event_object_list_raw_in_get() already has a null check and uses the
last list member

no functional changes

7 years agoevas: split _evas_event_object_list_raw_in_get() into two functions
Mike Blumenkrantz [Sat, 10 Jun 2017 00:16:08 +0000 (20:16 -0400)]
evas: split _evas_event_object_list_raw_in_get() into two functions

slightly outdent code and prepare for pending features

no functional changes

7 years agoevas: add some functions for determining if pointer coords are inside an object
Mike Blumenkrantz [Sat, 10 Jun 2017 00:16:08 +0000 (20:16 -0400)]
evas: add some functions for determining if pointer coords are inside an object

@feature

7 years agoRevert "Edje calc: Fix textblock size calculation logic"
Mike Blumenkrantz [Sat, 10 Jun 2017 00:16:08 +0000 (20:16 -0400)]
Revert "Edje calc: Fix textblock size calculation logic"

This reverts commit a6fff5bc1e5e30a946e435369bcbaa406dd5d5ba.

7 years agoefl_input_device: add function for determining if a device has pointer caps
Mike Blumenkrantz [Sat, 10 Jun 2017 00:16:07 +0000 (20:16 -0400)]
efl_input_device: add function for determining if a device has pointer caps

this is useful when attempting to manage devices

@feature

7 years agoevas: handle focus setting with async input init
Mike Blumenkrantz [Sat, 10 Jun 2017 00:16:07 +0000 (20:16 -0400)]
evas: handle focus setting with async input init

@fix

7 years agoecore-ipc: don't return dead clients in ecore_ipc_server_clients_get
Mike Blumenkrantz [Sat, 10 Jun 2017 00:16:07 +0000 (20:16 -0400)]
ecore-ipc: don't return dead clients in ecore_ipc_server_clients_get

@fix

fix T5383

7 years agoecore-evas: make focus-setting work with async device init
Mike Blumenkrantz [Sat, 10 Jun 2017 00:16:07 +0000 (20:16 -0400)]
ecore-evas: make focus-setting work with async device init

@fix

7 years agoecore-evas: safety -> normal null check in _ecore_evas_focus_device_set()
Mike Blumenkrantz [Sat, 10 Jun 2017 00:16:07 +0000 (20:16 -0400)]
ecore-evas: safety -> normal null check in _ecore_evas_focus_device_set()

when unsetting focus, if the specified seat doesn't exist then there is no
focus to unset

7 years agoecore-evas: safety -> normal null check in ecore_evas_cursor_device_unset
Mike Blumenkrantz [Sat, 10 Jun 2017 00:16:07 +0000 (20:16 -0400)]
ecore-evas: safety -> normal null check in ecore_evas_cursor_device_unset

if there is already no cursor then this is not an error

7 years agoefl: add EFL_VERSION_1_20
Mike Blumenkrantz [Sat, 10 Jun 2017 00:16:07 +0000 (20:16 -0400)]
efl: add EFL_VERSION_1_20

indicate that features from this version can be used

7 years agoLuncher theme: Allow preview size to be configurable.
Stephen 'Okra' Houston [Fri, 9 Jun 2017 19:20:29 +0000 (14:20 -0500)]
Luncher theme: Allow preview size to be configurable.

7 years agostatic_libs/libdrm: Update exynos header files
Chris Michael [Fri, 9 Jun 2017 18:52:41 +0000 (14:52 -0400)]
static_libs/libdrm: Update exynos header files

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelput: Document how keyboard events are processed
Bryce Harrington [Fri, 9 Jun 2017 18:35:51 +0000 (14:35 -0400)]
elput: Document how keyboard events are processed

Summary:
Add some light function docs and code comments to explain the steps
followed in processing hardware events for keyboard hits into actual
printable characters.  While this is internal functionality, the process
is important and involves a couple external dependencies (libinput and
libxkbcommon) so documenting this flow may help future developers avoid
introducing bugs.

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewers: zmike

Subscribers: cedric, jpeg

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

7 years agostatic_libs/libdrm: Update static libdrm headers
Chris Michael [Fri, 9 Jun 2017 18:23:57 +0000 (14:23 -0400)]
static_libs/libdrm: Update static libdrm headers

This patch updates our static_libs/libdrm header files to version
2.4.81-1 (from arch).

NB: derek, I don't have the exynos headers here. Please update them
when you can.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Remove check for drmModeAtomicCommit
Chris Michael [Fri, 9 Jun 2017 18:20:00 +0000 (14:20 -0400)]
ecore-drm2: Remove check for drmModeAtomicCommit

This check for drmModeAtomicCommit is no longer necessary as we have
moved to using static_libs/libdrm during compile time.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Remove #ifdef HAVE_ATOMIC_DRM
Chris Michael [Fri, 9 Jun 2017 18:20:05 +0000 (14:20 -0400)]
ecore-drm2: Remove #ifdef HAVE_ATOMIC_DRM

As we now use static_libs/libdrm for compiling ecore-drm2, we can
remove the atomic #ifdefs as we can run-time check this now.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Use static_libs/libdrm to build ecore-drm2 library
Chris Michael [Fri, 9 Jun 2017 17:52:58 +0000 (13:52 -0400)]
ecore-drm2: Use static_libs/libdrm to build ecore-drm2 library

This patch set allows us to use static_libs/libdrm files in order to
build ecore-drm2. This also allows us to remove a lot of the copied
drm header code from our source files and is easier to keep up-to-date.

Merge branch 'devs/devilhorns/drm_static'

7 years agoecore-drm2: Fix drm_mode variables to work with static lib
Chris Michael [Fri, 9 Jun 2017 17:50:22 +0000 (13:50 -0400)]
ecore-drm2: Fix drm_mode variables to work with static lib

As we now use static_libs/libdrm to build ecore_drm2, we need to
fix how our drm_mode variables are declared so we can use them.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Use static libdrm to build ecore-drm2
Chris Michael [Fri, 9 Jun 2017 17:48:55 +0000 (13:48 -0400)]
ecore-drm2: Use static libdrm to build ecore-drm2

As we will now use static_libs/libdrm to build ecore_drm2, we no
longer need to include the copied code from the libdrm headers so
remove all of the copied code from our source files.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-evas-drm: Remove borrowed fourcc_code from source file
Chris Michael [Fri, 9 Jun 2017 17:47:47 +0000 (13:47 -0400)]
ecore-evas-drm: Remove borrowed fourcc_code from source file

As we will now use static_libs/libdrm for building ecore_evas_drm, we
no longer need to include this bit of borrowed four_cc code from libdrm

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-evas: Add static_libs/libdrm to ecore_evas_drm source files
Chris Michael [Fri, 9 Jun 2017 17:47:09 +0000 (13:47 -0400)]
ecore-evas: Add static_libs/libdrm to ecore_evas_drm source files

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Add static_libs/libdrm to drm2 source files
Chris Michael [Fri, 9 Jun 2017 17:46:02 +0000 (13:46 -0400)]
ecore-drm2: Add static_libs/libdrm to drm2 source files

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agostatic_libs: Add xf86drm headers to libdrm static_libs
Chris Michael [Fri, 9 Jun 2017 17:44:52 +0000 (13:44 -0400)]
static_libs: Add xf86drm headers to libdrm static_libs

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-evas-wl: Add support for Window Manager rotations
Chris Michael [Fri, 9 Jun 2017 15:06:05 +0000 (11:06 -0400)]
ecore-evas-wl: Add support for Window Manager rotations

This patch adds support to Ecore_Evas_Wayland for Window Manager
Rotations so that window managers which do support rotations are able
to rotate an EFL wayland application.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Fix window rotation event structure and various typos
Chris Michael [Fri, 9 Jun 2017 15:01:03 +0000 (11:01 -0400)]
ecore-wl2: Fix window rotation event structure and various typos

As these events will be raised to ecore_evas_wl and the handlers there
do not pass along the Ecore_Evas as 'data', we need to change the type
of variable passed along in the event struture so that
ecore_event_window_match can be called to find the Ecore_Evas.

This patch also fixes some typos discovered during compile

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add event type for window rotate events
Chris Michael [Fri, 9 Jun 2017 14:50:01 +0000 (10:50 -0400)]
ecore-wl2: Add event type for window rotate events

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API and Event for window rotation change done
Chris Michael [Fri, 9 Jun 2017 14:45:06 +0000 (10:45 -0400)]
ecore-wl2: Add API and Event for window rotation change done

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API and Event for window rotation change request
Chris Michael [Fri, 9 Jun 2017 14:42:31 +0000 (10:42 -0400)]
ecore-wl2: Add API and Event for window rotation change request

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API and Event for window rotation change prepare done
Chris Michael [Fri, 9 Jun 2017 14:39:00 +0000 (10:39 -0400)]
ecore-wl2: Add API and Event for window rotation change prepare done

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API and event for window rotation change prepare
Chris Michael [Fri, 9 Jun 2017 14:27:54 +0000 (10:27 -0400)]
ecore-wl2: Add API and event for window rotation change prepare

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API to return window available rotations
Chris Michael [Fri, 9 Jun 2017 14:08:06 +0000 (10:08 -0400)]
ecore-wl2: Add API to return window available rotations

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API to set window available rotations
Chris Michael [Fri, 9 Jun 2017 13:54:44 +0000 (09:54 -0400)]
ecore-wl2: Add API to set window available rotations

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API to return a windows preferred rotation
Chris Michael [Fri, 9 Jun 2017 13:51:19 +0000 (09:51 -0400)]
ecore-wl2: Add API to return a windows preferred rotation

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API to set window preferred rotation
Chris Michael [Fri, 9 Jun 2017 13:47:40 +0000 (09:47 -0400)]
ecore-wl2: Add API to set window preferred rotation

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API to get if an application has set window rotation
Chris Michael [Fri, 9 Jun 2017 13:38:00 +0000 (09:38 -0400)]
ecore-wl2: Add API to get if an application has set window rotation

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API to set if an application has rotation a window
Chris Michael [Fri, 9 Jun 2017 13:36:17 +0000 (09:36 -0400)]
ecore-wl2: Add API to set if an application has rotation a window

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API to get if window manager rotation is supported
Chris Michael [Fri, 9 Jun 2017 13:13:36 +0000 (09:13 -0400)]
ecore-wl2: Add API to get if window manager rotation is supported

This patch adds an API function which can be called to determine if
window manager rotation is supported.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API function to set if wm rotation is supported
Chris Michael [Fri, 9 Jun 2017 13:12:39 +0000 (09:12 -0400)]
ecore-wl2: Add API function to set if wm rotation is supported

Small patch to add an API function which can be called to set if
window manager rotation is supported.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Group API functions within their doxy group
Chris Michael [Fri, 9 Jun 2017 12:46:56 +0000 (08:46 -0400)]
ecore-drm2: Group API functions within their doxy group

NB: No functional changes

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-x: Minor formatting fix
Chris Michael [Fri, 9 Jun 2017 12:31:34 +0000 (08:31 -0400)]
ecore-x: Minor formatting fix

NB: No functional changes

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelm_fileselector_entry: this does not need focus
Marcel Hollerbach [Fri, 9 Jun 2017 14:54:23 +0000 (16:54 +0200)]
elm_fileselector_entry: this does not need focus

its composed by focusable widgets, no need to focus them by themself

7 years agoelm_fileselector: this is not focusable
Marcel Hollerbach [Fri, 9 Jun 2017 14:30:46 +0000 (16:30 +0200)]
elm_fileselector: this is not focusable

the widget is composed from focusable widgets the fileselector is not
focusable.

7 years agoeolian: prepare to defer all dependency parses
Daniel Kolesa [Fri, 9 Jun 2017 13:56:18 +0000 (15:56 +0200)]
eolian: prepare to defer all dependency parses

Dependencies are now going to be parsed strictly after the main
file, to allow proper dependency cycle behavior in all places. For
now there is correct parsing of deferred deps but they're not
queued yet.

7 years agoEfl.Ui.Image.Zoomable: make zoomable to work with edj file
Amitesh Singh [Fri, 9 Jun 2017 07:09:47 +0000 (16:09 +0900)]
Efl.Ui.Image.Zoomable: make zoomable to work with edj file

image.zoomable can load edj files now.

usage:
efl_file_set(zoomable, "../somefile.edj", "mygroupname");

test:
elm_test -> photocam
click "open" btn
select an edj file, it would show first group in selected edj file.

@feature

7 years agoelm_widget: add factory method to the widget
Marcel Hollerbach [Thu, 8 Jun 2017 21:52:37 +0000 (23:52 +0200)]
elm_widget: add factory method to the widget

with this function you can trap the creation of the mangers, and change
the behaviour as you need it. For example returning a custom manager.

7 years agomap: Make sure efl_gfx_map_reset triggers a render
Jean-Philippe Andre [Fri, 9 Jun 2017 06:08:23 +0000 (15:08 +0900)]
map: Make sure efl_gfx_map_reset triggers a render

Thanks again Jaehyun for reporting this!

7 years agoGenlist: Calculate the min size of content before item realize
Jeeyong Um [Fri, 9 Jun 2017 05:34:58 +0000 (14:34 +0900)]
Genlist: Calculate the min size of content before item realize

Summary:
Genlist item doesn't change its size when its content size is changed,
but its size is determined in realization.
Therefore, deferred calculations for content should be performed immediately
before swallowing it by genlist item.

Test Plan: make and run attached sample

Reviewers: jpeg, SanghyeonLee, cedric

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

7 years agoelm map: Fix broken link to openstreetmap.org
Jeeyong Um [Fri, 9 Jun 2017 05:19:06 +0000 (14:19 +0900)]
elm map: Fix broken link to openstreetmap.org

Generated link to openstreetmap.org is broken because of the comma in
the last of URL.

7 years agoelementary entry: update focus state when editable state is changed
Youngbok Shin [Fri, 9 Jun 2017 05:19:57 +0000 (14:19 +0900)]
elementary entry: update focus state when editable state is changed

Summary:
To recieve keyboard events, the entry_edje should have Evas focus.
But, if a non editable Entry widget takes focus, it can't recieve
keyboard events even if it becomes editable after taking focus.
So, elm_entry_editable_set() function should update Entry's focus state.
@fix

Test Plan:
The code of elementary_test - entry is modified to test this issue.
Please, check the issue with the following steps.

1. Run "elementary_test entry"
2. Click "Unfocus" button to make entry to "unfocused" state.
3. Click "Edit" button to make entry to non-editable mode.
4. Click "Focus" button to make entry to "focused" state.
5. Click "Edit" button to make entry to editable mode.
6. See a cursor is blinking in entry.
   => But, you can't edit text without this patch.

Reviewers: raster, herdsman, cedric, jpeg, woohyun

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

7 years agoelm-test: ui.image.zoomable: make anim example to work with zoom
Amitesh Singh [Fri, 9 Jun 2017 05:14:46 +0000 (14:14 +0900)]
elm-test: ui.image.zoomable: make anim example to work with zoom

mousewheel can be used to zoom in and zoom out.

7 years agomap: Fix efl.gfx.map render
Jean-Philippe Andre [Fri, 9 Jun 2017 04:46:33 +0000 (13:46 +0900)]
map: Fix efl.gfx.map render

Internally the call to map_reset was setting the count to 0
rendering the map data invalid and useless.

7 years agoexamples: Flesh out the evas-buffer-simple example
Bryce Harrington [Fri, 9 Jun 2017 03:09:54 +0000 (12:09 +0900)]
examples: Flesh out the evas-buffer-simple example

Summary:
This serves as an early example for new Evas programmers to introduce
the buffer engine as well as very basic canvas usage, so we're going
into a lot more detail for both of those than we'll do in subsequent
examples.

Reviewers: cedric

Subscribers: jpeg

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

7 years agoecore_evas: Document the X11 XShape input region APIs
Bryce Harrington [Fri, 9 Jun 2017 03:02:29 +0000 (12:02 +0900)]
ecore_evas: Document the X11 XShape input region APIs

Reviewers: cedric

Subscribers: jpeg

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

7 years agoelput: Fix compilation warning (GCC)
Jean-Philippe Andre [Thu, 8 Jun 2017 02:18:11 +0000 (11:18 +0900)]
elput: Fix compilation warning (GCC)

Use GCC sematic {} instead of {0} as the array members are structs,
thus {0} isn't valid either.

7 years agomap: add more checking on input and memory allocation
Thiep Ha [Thu, 8 Jun 2017 10:22:46 +0000 (19:22 +0900)]
map: add more checking on input and memory allocation

More checking on input parameter and memory allocation
when set number of map points.
Thanks jp.

7 years agoElementary: fix Elm.Layout Model Connect
Larry Jr [Wed, 7 Jun 2017 17:23:27 +0000 (14:23 -0300)]
Elementary: fix Elm.Layout Model Connect

Use "elm" has source to model_connect update
Disconnect part/property in model_connect

7 years agoEcore: fix Efl.Model.Item
Larry Jr [Wed, 7 Jun 2017 17:20:41 +0000 (14:20 -0300)]
Ecore: fix Efl.Model.Item

sent property_changed signal in property_set

7 years agoeina: fix implicit declaration of pthread_set_name_np in eina_debug.
Al Poole [Thu, 8 Jun 2017 20:36:23 +0000 (13:36 -0700)]
eina: fix implicit declaration of pthread_set_name_np in eina_debug.

Summary: Checks and includes necessary headers (FreeBSD et. al)

Reviewers: cedric

Subscribers: jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoeina: as we use string.h function in this inline function, we better include it.
Cedric BAIL [Thu, 8 Jun 2017 18:41:01 +0000 (11:41 -0700)]
eina: as we use string.h function in this inline function, we better include it.

Reported by @netstar, thanks.

7 years agoecore-evas-x: Remove blank line
Chris Michael [Thu, 8 Jun 2017 18:28:36 +0000 (14:28 -0400)]
ecore-evas-x: Remove blank line

NB: No functional changes

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoefl_debugd: only compile this on Linux.
Al Poole [Thu, 8 Jun 2017 17:51:37 +0000 (10:51 -0700)]
efl_debugd: only compile this on Linux.

Summary:
Well, the build is broken again on BSD and Windows.
efl_debugd is full of lots lovely Linuxisms. Just
don't compile.

This unbreaks the build for FreeBSD and others.

Reviewers: cedric, raster, jpeg

Reviewed By: jpeg

Subscribers: JackDanielZ, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoecore-drm2: Fix potential SIGFPE when adding output mode
Chris Michael [Thu, 8 Jun 2017 14:34:29 +0000 (10:34 -0400)]
ecore-drm2: Fix potential SIGFPE when adding output mode

If we receive bad crtc info from libdrm, then we could end up with a
SIGFPE here due to division by zero if info h/v total are not set.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Add API function to set pointer rotation
Chris Michael [Thu, 8 Jun 2017 13:23:17 +0000 (09:23 -0400)]
ecore-drm2: Add API function to set pointer rotation

This patch adds a new API function which can be used to swap x & y
pointer axis and invert them according to rotation angle. Mouse input
events occur according to canvas coordinates so this can be used when
a canvas is rotated.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelput: Add API function to swap dx & dy axis from pointer motion event
Chris Michael [Thu, 8 Jun 2017 13:21:16 +0000 (09:21 -0400)]
elput: Add API function to swap dx & dy axis from pointer motion event

Small patch which adds an API function that can be called to swap x
and y axis and invert them according to rotation angle.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelput: Minor formatting fixes
Chris Michael [Thu, 8 Jun 2017 13:15:56 +0000 (09:15 -0400)]
elput: Minor formatting fixes

NB: No functional changes

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelput: Minor formatting fix
Chris Michael [Thu, 8 Jun 2017 13:05:14 +0000 (09:05 -0400)]
elput: Minor formatting fix

NB: No functional changes

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelput: Get touch event slots using slot not seat_slot
Chris Michael [Thu, 8 Jun 2017 12:39:19 +0000 (08:39 -0400)]
elput: Get touch event slots using slot not seat_slot

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-evas-wayland: Fix potential null dereference
Chris Michael [Wed, 7 Jun 2017 17:37:30 +0000 (13:37 -0400)]
ecore-evas-wayland: Fix potential null dereference

Quick patch to fix a potential null derefence in render_flush_pre
callback.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas-gl-drm: Fix uninitialized variable
Chris Michael [Wed, 7 Jun 2017 17:34:52 +0000 (13:34 -0400)]
evas-gl-drm: Fix uninitialized variable

Small patch to fix an uninitialized variable when using
eglGetConfigAttrib()

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas-gl-drm: Be sure to initialize ncfg variable
Chris Michael [Wed, 7 Jun 2017 17:33:17 +0000 (13:33 -0400)]
evas-gl-drm: Be sure to initialize ncfg variable

This could lead to an uninitialized variable or use of ncfg variable
without a value.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agowidget: Remove unnecessary define
Jean-Philippe Andre [Thu, 8 Jun 2017 09:49:23 +0000 (18:49 +0900)]
widget: Remove unnecessary define

Looks like a copy & paste went wrong :)
Thanks @bu5hm4n

7 years agoedje - fix signal propagate crash
Carsten Haitzler (Rasterman) [Thu, 8 Jun 2017 08:25:08 +0000 (17:25 +0900)]
edje - fix signal propagate crash

fixes segv when using boxes/tables and sub groups with signal
propagation working in _cb_signal_repeat() when name is NULL (not
found/there)

@fix

7 years agoelm_test:ui.image.zoomable: Allow image click to enable/disable animation
Amitesh Singh [Thu, 8 Jun 2017 09:06:03 +0000 (18:06 +0900)]
elm_test:ui.image.zoomable: Allow image click to enable/disable animation

its better to have animation start/stop on image click rather
than clicking a button.

7 years agoEfl.Ui.Image.Zoomable: inherit elm.widget as class
Amitesh Singh [Thu, 8 Jun 2017 08:32:41 +0000 (17:32 +0900)]
Efl.Ui.Image.Zoomable: inherit elm.widget as class

this fixes a mistake done in cb1d53c835ef465
Thanks to jp for notifying it.

ref T5352

7 years agoEfl.Ui.Image.Zoomable: implement efl.play.get/set
Amitesh Singh [Wed, 7 Jun 2017 06:54:42 +0000 (15:54 +0900)]
Efl.Ui.Image.Zoomable: implement efl.play.get/set

ref T5352

7 years agoEfl.Ui.Image.Zoomable: implement efl.player.playable.get
Amitesh Singh [Wed, 7 Jun 2017 05:57:06 +0000 (14:57 +0900)]
Efl.Ui.Image.Zoomable: implement efl.player.playable.get

ref T5352

7 years agoedje: pass whole text to IMF in case of selection
Jihoon Kim [Thu, 8 Jun 2017 08:02:35 +0000 (17:02 +0900)]
edje: pass whole text to IMF in case of selection

Summary:
This patch partially reverts D2951.
_edje_entry_imf_retrieve_surrounding_cb() function has to pass
whole text nearby the entry's cursor. If IMF needs to ignore
selected text when the entry has selection, IMF can check
selected text by calling _edje_entry_imf_retrieve_selection_cb().
So, we don't need remove selected text before passing it to IMF.
@fix

Test Plan: N/A

Reviewers: woohyun, jihoon, subodh6129

Reviewed By: subodh6129

Subscribers: cedric, jpeg

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

7 years agoefl.gfx.map: support for map points as multiples of 4
Thiep Ha [Thu, 8 Jun 2017 06:32:09 +0000 (15:32 +0900)]
efl.gfx.map: support for map points as multiples of 4

This patch adds support for map with more than 4 points.
However, we only support points with multiples of 4.
This also adds efl_gfx_map_point_count_set/get APIs to
set number of points.

@feature

7 years agoevas_map: support map with number of points as multiples of 4
Thiep Ha [Thu, 8 Jun 2017 06:11:21 +0000 (15:11 +0900)]
evas_map: support map with number of points as multiples of 4

Currently, in evas map, we only support map with 4 points.
This patch adds support for map with number of points as
multiples of 4.

@feature

7 years agoedje: Fix warnings introduced in recent fix
Jean-Philippe Andre [Thu, 8 Jun 2017 07:04:33 +0000 (16:04 +0900)]
edje: Fix warnings introduced in recent fix

See b9b0177d5e0f2b3a03f77e04c64de534b2c786ac
See d3420cd35c692a808c0a626c8e54a0c85af3a4d4

7 years agoelm_panel: set hidden property when panel is close/open
Sungtaek Hong [Thu, 8 Jun 2017 07:00:20 +0000 (16:00 +0900)]
elm_panel: set hidden property when panel is close/open

Summary:
 - elm_panel has a property named hidden which stores
   open/close status.
 - This is updated when:
    1. bring_in animation is done(anim_stop_cb).
    2. mouse_up on panel.
    3. API is called. (elm_panel_toggle, elm_panel_hidden_set)
 - In case 3, API changes hidden, and starts bring_in animation
   which will call anim_stop_cb() which will update hidden again.
 - If bring_in animation is canceled (eg: sizing_eval),
   anim_stop_cb will be called and calculate hidden status
   which will not guarantee updated hidden state by APIs.

Test Plan:
   1. Call any APIs which will call elm_layout_sizing_eval(panel)
      right after calling elm_panel_toggle()/elm_panel_hidden_set().
   2. Delete content of panel during "toggled" cb.

Reviewers: jpeg, eunue, cedric

Subscribers: conr2d, cedric, jpeg

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

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
7 years agoevas - font dir fonts.alias - limit alias parse length
Carsten Haitzler (Rasterman) [Thu, 8 Jun 2017 05:48:08 +0000 (14:48 +0900)]
evas - font dir fonts.alias - limit alias parse length

a rouge fonts.alias file in a font dir/path could contain long strings
that buffers dont have space for, so limit length of string.

@fix

7 years agoelm spinner - handle more digits for format string + handle invalid fmt
Carsten Haitzler (Rasterman) [Thu, 8 Jun 2017 05:34:50 +0000 (14:34 +0900)]
elm spinner - handle more digits for format string + handle invalid fmt

handles format strings like %0.234567f even tho before it was just %2f
- single digit after . ... not that it's useful handling more...

@fix

7 years agoevas xpm loader - add more rgb.txt file locations...
Carsten Haitzler (Rasterman) [Thu, 8 Jun 2017 03:11:43 +0000 (12:11 +0900)]
evas xpm loader - add more rgb.txt file locations...

2 more. /etc/X11/rgb.txt /usr/share/vim/vim80/rgb.txt  ...what i do notice
is that this file seems to have vanished from modern systems... so we'll have
lots of un-fun loading old xpm's with colornames if we cant figure out what
color names map to what colors...

7 years agoedje_cc handle line too long for buffers
Carsten Haitzler (Rasterman) [Thu, 8 Jun 2017 03:01:38 +0000 (12:01 +0900)]
edje_cc handle line too long for buffers

if a line from the cpp processor is too long (more than 4k) then abort
compilation as something is wrong asnd our buffers can't handle it
anyway.

@fix

7 years agoelm_prefs_cc: handle line too long for buffers
Carsten Haitzler (Rasterman) [Thu, 8 Jun 2017 02:54:15 +0000 (11:54 +0900)]
elm_prefs_cc: handle line too long for buffers

if a line from the cpp processor is too long (more than 4k) then abort
compilation as something is wrong asnd our buffers can't handle it
anyway.

@fix

7 years agoevas-gl-drm: Fix potential memory leak
Chris Michael [Wed, 7 Jun 2017 16:38:12 +0000 (12:38 -0400)]
evas-gl-drm: Fix potential memory leak

If/When we exit _evas_outbuf_egl_setup function, we should be freeing
the allocated cfgs variable else we leak it.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>