platform/upstream/efl.git
7 years agoecore_evas_drm: Partially revert "Refuse to start a ticker for a manually rendered...
Derek Foreman [Tue, 11 Jul 2017 21:08:55 +0000 (16:08 -0500)]
ecore_evas_drm: Partially revert "Refuse to start a ticker for a manually rendered canvas"

BAILing here can break animators permanently, so best to just log the
issue and move on (and potentially allow the ticker to wake us from DPMS).

ref T5462

Partially reverts a795629e8c9d7a7f444f8ce655eb9e24dce51429

7 years agorelease: Update NEWS and bump version for 1.20.0-beta2 release
Stefan Schmidt [Tue, 11 Jul 2017 21:00:00 +0000 (23:00 +0200)]
release: Update NEWS and bump version for 1.20.0-beta2 release

7 years agotests: elm_cxx: add gitignore file for produced binary
Stefan Schmidt [Tue, 11 Jul 2017 20:55:28 +0000 (22:55 +0200)]
tests: elm_cxx: add gitignore file for produced binary

7 years agobuild: make sure we have the new fonts subdir in evas test for dist
Stefan Schmidt [Tue, 11 Jul 2017 19:58:15 +0000 (21:58 +0200)]
build: make sure we have the new fonts subdir in evas test for dist

This is one o the odds of the EXTRA_DIST2 workaround I did to avoid the
to long arguments error we started to get a while ago. Normally
autotools would handle this but as we copy the files in a hook we also
need to amke sure the folder is created.

7 years agoevas: update file path after move into fonts subdir
Stefan Schmidt [Tue, 11 Jul 2017 19:54:25 +0000 (21:54 +0200)]
evas: update file path after move into fonts subdir

The file have been moved into a fonts subdir in commit e8b35c779e7d7b.
Update the path here to get it included into the tarball to make sure
check passes during distcheck.

7 years agoecore: properly cleanup callbacks of future/promise.
Cedric BAIL [Tue, 11 Jul 2017 18:02:47 +0000 (11:02 -0700)]
ecore: properly cleanup callbacks of future/promise.

7 years agoelm: Fix fileselector button "hidden files"
Jean-Philippe Andre [Tue, 11 Jul 2017 09:58:51 +0000 (18:58 +0900)]
elm: Fix fileselector button "hidden files"

Fixes T5465

@fix

7 years agoecore_input: fix build without eeze
Romain Naour [Mon, 3 Jul 2017 21:26:16 +0000 (23:26 +0200)]
ecore_input: fix build without eeze

A dependency on HAVE_EEZE is missing in ecore_input_joystick_name_get():

lib/ecore_input/ecore_input_joystick.c: Dans la fonction « ecore_input_joystick_name_get »:
lib/ecore_input/ecore_input_joystick.c:632:4: erreur : unknown type name « Joystick_Info »
    Joystick_Info *ji;
    ^~~~~~~~~~~~~

Fixes T5665

Signed-off-by: Romain Naour <romain.naour@smile.fr>
7 years agoslider: Allow range limitations
Hosang Kim [Tue, 11 Jul 2017 07:25:44 +0000 (16:25 +0900)]
slider: Allow range limitations

Summary:
When user drags slider, slider value cannot be changed by API.
However the necessity of above behavior has emerged.
Because sometimes applications want limitation of slider value.

Test Plan: elementary_test -> slider -> Limited

Reviewers: woohyun, cedric, SanghyeonLee, singh.amitesh, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

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

7 years agoevas: Add a test case with a custom font
Jean-Philippe Andre [Tue, 11 Jul 2017 07:02:59 +0000 (16:02 +0900)]
evas: Add a test case with a custom font

The font is **ugly** and was created with birdfont. Its license
shall be anything EFL requires (public domain in the ttf file).

7 years agoevas font: append global font path when Evas initializes Fontconfig
Youngbok Shin [Tue, 11 Jul 2017 06:46:03 +0000 (15:46 +0900)]
evas font: append global font path when Evas initializes Fontconfig

Summary:
If there are appended font pathes before initializing Fontconfig,
Evas must care the font pathes after initializing Fontconfig.
@fix

Test Plan:
1. Call evas_font_path_global_append() with a private font path
   before adding any Evas Object.
2. Add a Evas Textblock object which uses a font from the private font path.
3. See the font is not loaded properly without the patch.

Reviewers: raster, cedric, herdsman, jpeg, woohyun

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

7 years agopopup: fix sizing eval logic when scrollable set TRUE
JinYong Park [Tue, 11 Jul 2017 06:36:06 +0000 (15:36 +0900)]
popup: fix sizing eval logic when scrollable set TRUE

Summary:
When scrollable set TRUE,
scroller must be calculated its size except using item.
If content is removed, scroller doesn't calculate its size, so it has previous size.
So there is a empty space in this case.

@fix

Test Plan:
1. elementary_test -to popup
2. open "popup-center-title + list content + 2 button (with delete content)"
3. click "Delete" button
4. compare between scrollable set true and false

Reviewers: herb, singh.amitesh, jpeg, cedric, conr2d

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

7 years agoelm test: label slide - use better color as background for label.
Amitesh Singh [Tue, 11 Jul 2017 06:37:01 +0000 (15:37 +0900)]
elm test: label slide - use better color as background for label.

7 years agogenlist: fix multiple focus edje signal issue
Amitesh Singh [Tue, 11 Jul 2017 06:12:45 +0000 (15:12 +0900)]
genlist: fix multiple focus edje signal issue

We need focus edje signal when item is focused or the already
focused item realizes. its wrong to call focus signal on
_elm_genlist_item_state_update()

fixes T4969

7 years agoevas: Improve the documentation for evas_init() and evas_shutdown()
Bryce Harrington [Tue, 11 Jul 2017 02:35:25 +0000 (11:35 +0900)]
evas: Improve the documentation for evas_init() and evas_shutdown()

Summary:
Rephrase the documentation to read a bit more clearly, and restructure
the inclusions of stanzas from evas-buffer-simple.c to reflect the
recent updates to that example.

Reviewers: cedric

Subscribers: jpeg

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

7 years agoevas: Fix stray periods
Bryce Harrington [Tue, 11 Jul 2017 02:29:52 +0000 (11:29 +0900)]
evas: Fix stray periods

Summary: "to the Evas. @b buffer engine"

Reviewers: cedric

Subscribers: jpeg

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

7 years agogitignore: Ignore pc/efl-wl.pc
Bryce Harrington [Tue, 11 Jul 2017 02:29:40 +0000 (11:29 +0900)]
gitignore: Ignore pc/efl-wl.pc

Reviewers: zmike

Subscribers: cedric, jpeg

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

7 years agoexamples: Move introduction to Ecore-Evas to evas-transparent.c
Bryce Harrington [Tue, 11 Jul 2017 02:29:07 +0000 (11:29 +0900)]
examples: Move introduction to Ecore-Evas to evas-transparent.c

Summary:
The evas-transparent.c example is quite short, and so will allow for
more detailed explanation of setting up Ecore-Evas.  Then
evas-object-manipulation.c can focus more on the explanation of objects
in Ecore-Evas.

Reviewers: cedric

Subscribers: jpeg

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

7 years agoecore_evas_drm: Refuse to start a ticker for a manually rendered canvas
Derek Foreman [Mon, 10 Jul 2017 21:07:15 +0000 (16:07 -0500)]
ecore_evas_drm: Refuse to start a ticker for a manually rendered canvas

With atomic mode setting this has the hilarious side effect of waking
up the display from dpms.

Attempting to tick when manual render is set is likely a bug, so
log an ERR.

fix T5462

7 years agoecore_evas: Don't start backend ticking for manually rendered canvases
Derek Foreman [Mon, 10 Jul 2017 21:05:27 +0000 (16:05 -0500)]
ecore_evas: Don't start backend ticking for manually rendered canvases

Shortcut the code that starts up a back-end ticker if we're manually
rendered.

ref T5462

7 years agoefl_ui_focus_manager: fix leaking safed_order
Marcel Hollerbach [Mon, 10 Jul 2017 17:57:56 +0000 (19:57 +0200)]
efl_ui_focus_manager: fix leaking safed_order

7 years agoelementary: fix leaking manager objects
Marcel Hollerbach [Mon, 10 Jul 2017 14:22:32 +0000 (16:22 +0200)]
elementary: fix leaking manager objects

they are now automatically destroyed once the object is deleted.

7 years agoelput: Update modifers for caps lock
Chris Michael [Mon, 10 Jul 2017 18:27:27 +0000 (14:27 -0400)]
elput: Update modifers for caps lock

Small patch to fix issue of not setting caps_lock modifier. As we
lookup this modifier index when creating keyboard info, we should be
testing for it and setting seat->modifiers accordingly.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelput: Fix support for setting keyboard led(s)
Chris Michael [Mon, 10 Jul 2017 18:14:06 +0000 (14:14 -0400)]
elput: Fix support for setting keyboard led(s)

Small patch to update keyboard led(s) when caps, numlock, etc are
pressed. This patch adds some fields to internal (non-API exposed)
structures inside our private header (of a BETA-API library) and thus
should still be ok during freeze.

Fixes T5655

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelput: Minor formatting fix
Chris Michael [Mon, 10 Jul 2017 17:13:59 +0000 (13:13 -0400)]
elput: Minor formatting fix

NB: No functional changes

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Formatting fixes
Chris Michael [Mon, 10 Jul 2017 17:10:01 +0000 (13:10 -0400)]
ecore-wl2: Formatting fixes

NB: No functional changes

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add event handlers even if no data device manager exists
Chris Michael [Mon, 10 Jul 2017 17:02:43 +0000 (13:02 -0400)]
ecore-wl2: Add event handlers even if no data device manager exists

If we have no data device manager present, we would still like to
receive events when input devices get added or removed so these
handlers should be setup before we return from this function.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Rename internal function
Chris Michael [Mon, 10 Jul 2017 17:02:02 +0000 (13:02 -0400)]
ecore-wl2: Rename internal function

As we are in the Ecore_Wl2 library, lets use a function name that
reflects this.

NB: No functional changes

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoEvas textblock: add null check in evas_textblock_cursor_free
Jaehyun Cho [Mon, 10 Jul 2017 11:53:34 +0000 (20:53 +0900)]
Evas textblock: add null check in evas_textblock_cursor_free

7 years agoexamples: Flesh out the evas-object-manipulation example
Bryce Harrington [Mon, 10 Jul 2017 08:02:20 +0000 (17:02 +0900)]
examples: Flesh out the evas-object-manipulation example

Summary:
This is one of the basic examples that introduces Ecore-Evas, so needs
to be more detailed in commentary than other examples.  It also points
out the use of the legacy API and directs the reader to the Eo example
where appropriate.

Reviewers: cedric

Subscribers: jpeg

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

7 years agoevas: Fix mouse event info in global events
Jean-Philippe Andre [Mon, 10 Jul 2017 05:21:13 +0000 (14:21 +0900)]
evas: Fix mouse event info in global events

When using the legacy API (and in fact also with the EO API) to
listen to mouse events (move, in, out...) on a window instead
of an actual evas object, some information was missing:
 - buttons (bitmask of pressed buttons)
 - prev.x/y (previous position)

This is because Evas had not handled the event yet at this
point, it was coming directly from ecore_evas with incomplete
information. This patch involves evas a little bit earlier, and
also fixes evas_events_legacy.c to have consistent values for
cur/prev canvas/ouput coordinates. See also 890a91785 and
484dae76e675318. Those commits were making the pointer coord
a seat-based property (instead of canvas-based) but the event
should already have those proper values before converting to
a legacy struct. This patch restores the meaning of the DUP
macros, as I observed 4 different coordinates from the app side
(instead of just 2: prev and cur).

Thanks to Andy for reporting the original issue on the ML!

7 years agoEfl.Ui.Image: fix crash on passing NULL file in file_set()
Amitesh Singh [Mon, 10 Jul 2017 06:25:24 +0000 (15:25 +0900)]
Efl.Ui.Image: fix crash on passing NULL file in file_set()

img was crashing on elm_image_file_set(image, NULL, NULL).

fixes T5697

7 years agoadd missing license line for libefl to COPYING
Carsten Haitzler (Rasterman) [Mon, 10 Jul 2017 02:30:35 +0000 (11:30 +0900)]
add missing license line for libefl to COPYING

LGPL will do - we never declared a license so take the most
restrictive one we have for this (LGPL).

7 years agodefault theme - add signals to pointer theme to fix glitch in x
Carsten Haitzler (Rasterman) [Sun, 9 Jul 2017 23:56:40 +0000 (08:56 +0900)]
default theme - add signals to pointer theme to fix glitch in x

in x11 the mouse pointer is separate to everything else on the screen,
and so when screensaver kicks in and we fade to/from black or we
suspend/resume and do the same... the mouse pointer stays annoyingly
visible and it just lookes like a bug. this allows that to be fixed by
allowing the pointer to be suspended or resumed... :)

@fix

7 years agoEcore_Evas win32 module: fix memory leak
Vincent Torri [Sun, 9 Jul 2017 09:08:08 +0000 (11:08 +0200)]
Ecore_Evas win32 module: fix memory leak

7 years agoAdd ecore_win32_cursor_show() API and ecore_evas_win32_cursor_(un)set() functions
Vincent Torri [Fri, 7 Jul 2017 14:54:34 +0000 (16:54 +0200)]
Add ecore_win32_cursor_show() API and ecore_evas_win32_cursor_(un)set() functions

This fixes double mouse cursor in elm entries on Windows (for example)

@feature
@fix

7 years agoelm_cnp: fix selections for wl windows and FAKE wins
Mike Blumenkrantz [Fri, 7 Jul 2017 20:26:50 +0000 (16:26 -0400)]
elm_cnp: fix selections for wl windows and FAKE wins

don't use hardcoded seat names and attempt to use wl protocol for
FAKE wins

7 years agoelm_cnp: use local cnp when elm_cnp owns the selection
Mike Blumenkrantz [Fri, 7 Jul 2017 20:26:50 +0000 (16:26 -0400)]
elm_cnp: use local cnp when elm_cnp owns the selection

no need to use protocol to send an app's own selection to itself

7 years agoelm_entry: don't use window_id to determine type of window
Mike Blumenkrantz [Fri, 7 Jul 2017 20:26:50 +0000 (16:26 -0400)]
elm_entry: don't use window_id to determine type of window

there's a real function for this...

ref a173efd0a9892daca66bde76f7e90c66f39b9d23

7 years agoelm_entry: don't update PRIMARY selection under wayland
Mike Blumenkrantz [Fri, 7 Jul 2017 20:26:50 +0000 (16:26 -0400)]
elm_entry: don't update PRIMARY selection under wayland

this doesn't exist yet, and elm_cnp forces PRIMARY updates to overwrite
CLIPBOARD which is not good

@fix

7 years agoelput: don't leak event pointers
Mike Blumenkrantz [Fri, 7 Jul 2017 20:26:50 +0000 (16:26 -0400)]
elput: don't leak event pointers

7 years agoelm_cnp: mark x11 selection as lost when selection is lost in event
Mike Blumenkrantz [Fri, 7 Jul 2017 20:26:50 +0000 (16:26 -0400)]
elm_cnp: mark x11 selection as lost when selection is lost in event

do not pretend that a widget maintains the selection when notified that
the selection has been lost

@fix

7 years agoelm_win: remove engine checks from window_id_get()
Mike Blumenkrantz [Fri, 7 Jul 2017 20:26:50 +0000 (16:26 -0400)]
elm_win: remove engine checks from window_id_get()

if these exist then just return the id

7 years agoelm_win: remove engine checks from wl_window_get
Mike Blumenkrantz [Fri, 7 Jul 2017 20:26:50 +0000 (16:26 -0400)]
elm_win: remove engine checks from wl_window_get

if there's a win, return it, otherwise this returns null anyway

7 years agoelm_win: manually create a wl2 window for FAKE wins under wayland
Mike Blumenkrantz [Fri, 7 Jul 2017 20:26:50 +0000 (16:26 -0400)]
elm_win: manually create a wl2 window for FAKE wins under wayland

this enables elm_cnp to function using protocol

7 years agoecore-wl2: create surfaces once compositor global is bound
Mike Blumenkrantz [Fri, 7 Jul 2017 20:26:50 +0000 (16:26 -0400)]
ecore-wl2: create surfaces once compositor global is bound

it's expected that surfaces are created when a window exists

@fix

7 years agoecore-wl2: don't leak display event pointers
Mike Blumenkrantz [Fri, 7 Jul 2017 20:26:50 +0000 (16:26 -0400)]
ecore-wl2: don't leak display event pointers

7 years agoecore-wl2: add display object refs for windows
Mike Blumenkrantz [Fri, 7 Jul 2017 20:26:50 +0000 (16:26 -0400)]
ecore-wl2: add display object refs for windows

ensure the display lifetime exceeds the window lifetime

@fix

7 years agoelm test: img zoomable - fix compiler warnings
Amitesh Singh [Fri, 7 Jul 2017 06:52:51 +0000 (15:52 +0900)]
elm test: img zoomable - fix compiler warnings

efl/src/bin/elementary/test_photocam.c:779:19: note: initialize the variable '_zoom' to silence this warning

7 years agowin: Avoid CRI message before finalized
Jean-Philippe Andre [Fri, 7 Jul 2017 06:34:02 +0000 (15:34 +0900)]
win: Avoid CRI message before finalized

Test case was Bg EO API in elm_test

7 years agopopup: fix wrong signal emit when remove all button
JinYong Park [Fri, 7 Jul 2017 05:11:55 +0000 (14:11 +0900)]
popup: fix wrong signal emit when remove all button

Summary:
In visuals_set function,
check action_area is NULL, and signal emit action_area,visible/hidden
So, before call visuals_set, action_area should be deleted.

Test Plan: Actually, action area has not min size, so it couldn't be observed.

Reviewers: herb, singh.amitesh, jpeg, cedric, conr2d

Reviewed By: jpeg

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

7 years agoelm test: fake events - use efl_content_set instead
Amitesh Singh [Fri, 7 Jul 2017 06:39:37 +0000 (15:39 +0900)]
elm test: fake events - use efl_content_set instead

7 years agoelm test: bg - use efl_content_set instead
Amitesh Singh [Fri, 7 Jul 2017 06:24:15 +0000 (15:24 +0900)]
elm test: bg - use efl_content_set instead

there is no efl_packed on window. it won't work.

7 years agoelm test: img zoomable - change anim code sample to use eo apis only
Amitesh Singh [Fri, 7 Jul 2017 05:54:35 +0000 (14:54 +0900)]
elm test: img zoomable - change anim code sample to use eo apis only

This sample was added to show the img anim usage.
lets make this sample to use eo apis only.

7 years agoEvas and Eolian : Freed string buffer
Uma Devika [Fri, 7 Jul 2017 02:48:25 +0000 (11:48 +0900)]
Evas and Eolian : Freed string buffer

Summary:
Summary : String buffer returned by eina_strbuf_new() is not freed in some cases

@Fix

Signed-off-by: Uma Devika <u.bodapati@samsung.com>
Reviewers: cedric, tasn, jpeg, raster, singh.amitesh

Subscribers: tanwar.umesh07, yashu21985, cedric, jpeg

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

7 years agoeina_file: fix unmap of unmapped region when Eina_File has copied data and not a...
Al Poole [Fri, 7 Jul 2017 02:19:31 +0000 (11:19 +0900)]
eina_file: fix unmap of unmapped region when Eina_File has copied data and not a map;

Summary:
This was causing problems on non-Linux architectures as eina_file_real_close unmapped not mapped data. Added a "copied" flag to Eina_File which is set on eina_file_virtualize (on copied data), and tested for when eina_file_real_close does the unmap. I'm surprised Linux allowed this. Certainly all of the BSDs crashed with the previous behaviour.

@fix T5479

Test Plan: Example inlcude Rage and Enlightenment Thumb on BSD systems which use eina_file_virtualize with emotion to obtain album artwork.

Reviewers: raster, cedric, jpeg

Reviewed By: jpeg

Maniphest Tasks: T5479

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

7 years agoevas,edje,elm: Mark all legacy objects as such
Jean-Philippe Andre [Thu, 6 Jul 2017 07:47:41 +0000 (16:47 +0900)]
evas,edje,elm: Mark all legacy objects as such

7 years agoeina - fix eina_file_virtualize to copy data to an aligned addr
Carsten Haitzler (Rasterman) [Fri, 7 Jul 2017 03:08:01 +0000 (12:08 +0900)]
eina - fix eina_file_virtualize to copy data to an aligned addr

so we copy data to an UNALINED memory address (just after whatever
string we packed on the end of the eina file struct header). this is
bad. especially for non-intel architectures. this forces a 16 byte
alignment which should cover us.

@fix

7 years agoTheme: Follow gadget naming conventions.
Stephen 'Okra' Houston [Thu, 6 Jul 2017 17:19:12 +0000 (12:19 -0500)]
Theme: Follow gadget naming conventions.

7 years agoelm_code: Fix number parsing to include legal separators
Andy Williams [Thu, 6 Jul 2017 16:19:14 +0000 (17:19 +0100)]
elm_code: Fix number parsing to include legal separators

This also allows rust to use underscore!
@fix

7 years agoelm_code: Fix rust syntax to include types
Andy Williams [Thu, 6 Jul 2017 16:18:47 +0000 (17:18 +0100)]
elm_code: Fix rust syntax to include types

7 years agoefl.ui.image: fix the old align behaviour in img.
Amitesh Singh [Thu, 6 Jul 2017 07:14:06 +0000 (16:14 +0900)]
efl.ui.image: fix the old align behaviour in img.

After ab23a5309490d726fe, evas_object_size_hint_align_set()
has stopped working on elm img and that patch was perfectly right
to do so but we don't change the old behaviour.
This patch is an effort to make evas_object_size_hint_align_set()
to work with elm img again.
make sure not to mix both eo apis and legacy apis.

Thanks to dave for reporting and jpeg to show the right fix.

fixes T4635

7 years agoRevert "elm test: image align - use image align api instead"
Amitesh Singh [Thu, 6 Jul 2017 06:49:27 +0000 (15:49 +0900)]
Revert "elm test: image align - use image align api instead"

This reverts commit 5a0db7cc679c5d2d6888b457f7d13a36ebd0a100.

Reverting this since ab23a5309490d breaks the old working behaviour
on image align. subsequent patch in efl.ui.image brings back the old
behaviour.

refer T4635

7 years agoelm test: image align - use image align api instead
Amitesh Singh [Thu, 6 Jul 2017 05:40:03 +0000 (14:40 +0900)]
elm test: image align - use image align api instead

refer T4635

7 years agoRevert "elm test: image - use table to align image swallowed in layout"
Amitesh Singh [Thu, 6 Jul 2017 05:26:58 +0000 (14:26 +0900)]
Revert "elm test: image - use table to align image swallowed in layout"

This reverts commit a4e37b61f9a402d07aacb7855a3487515ab1c10b.

7 years agoelm: Don't alias in efl_part()
Jean-Philippe Andre [Wed, 5 Jul 2017 11:30:21 +0000 (20:30 +0900)]
elm: Don't alias in efl_part()

Inside efl_part() we don't know whether we are dealing with a text
or content API, so we can't actually guess the proper alias.

The legacy API should have already dealt with aliasing at this point.
The EO API should not use those aliases.

7 years agoelm: Forbid calls to efl_part(obj, NULL)
Jean-Philippe Andre [Wed, 5 Jul 2017 11:12:14 +0000 (20:12 +0900)]
elm: Forbid calls to efl_part(obj, NULL)

This in theory should only affect the EO API usage. In EO
we don't want efl_part() to be used for NULL part. In other
words, there is no "default" part in EO objects. Instead, those
functions like text_set or content_set should simply be
implemented by the object themselves.

The legacy API on the other hand will make sure that the
"part" argument is set to a non-NULL value before reaching
this point.

7 years agoelm: Remove EOLIAN tags in some files
Jean-Philippe Andre [Wed, 5 Jul 2017 11:06:24 +0000 (20:06 +0900)]
elm: Remove EOLIAN tags in some files

Some functions were marked as EOLIAN when in fact they were
used by the ELM_PART override APIs.

7 years agoElm layout: only allow legacy for using NULL text parts
Daniel Hirt [Tue, 4 Jul 2017 09:54:44 +0000 (12:54 +0300)]
Elm layout: only allow legacy for using NULL text parts

This is a follow-up to a4b79fdbe16e1495c187dc4f9da99924cf51e539.

efl_part no longer supports NULL parts.
NULL text parts are now aliased in legacy code beforehand.

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
7 years agoedje: Fix some API issues (missing const)
Jean-Philippe Andre [Wed, 5 Jul 2017 10:44:30 +0000 (19:44 +0900)]
edje: Fix some API issues (missing const)

7 years agowin: Try to fix some resizing issues with main menus
Jean-Philippe Andre [Tue, 4 Jul 2017 09:18:07 +0000 (18:18 +0900)]
win: Try to fix some resizing issues with main menus

Omg this was a pain... The code is complete spaghetti and the
fact that the main menu is now in the framespace doesn't help
either. With this patch and the previous one (about ecore_evas_x)
Edi should be able to open correctly at the proper size and with
a visible menu.

This patch introduces a lot of changes so it'll need testing
before we accept it fully.

Fixes T5482

7 years agoecore_evas_x: Track changes in framespace size
Jean-Philippe Andre [Tue, 4 Jul 2017 09:11:32 +0000 (18:11 +0900)]
ecore_evas_x: Track changes in framespace size

If the framespace size has changed and by accident (or in fact, by
design) the evas size + framespace size is equal to the size sent
by the X server, ecore_evas_x was skipping the resize event. This
patch adds a tracking of the framespace size so that we redraw the
canvas if it changed.

This will fix issues with the main menu (since it's in the framespace,
23 pixels tall with the default theme & scale).

Note that all this is partly because the ecore evas size is the size
without the framespace, so weird calculations are made during resize...

Ref T5482

7 years agowin: Fix some sizing issues with main menu
Jean-Philippe Andre [Fri, 30 Jun 2017 08:26:16 +0000 (17:26 +0900)]
win: Fix some sizing issues with main menu

This should fix issues when the main menu is wider than the
window content. This assumes that the menu is horizontal and
aligned with the client content.

The theme should probably handle this case better but right
now I am lost in the spaghetti resizes happening between
edje, elm, evas and X...

I am not very happy with this patch, and I think border.edc
needs some love in order to make it more robust and simpler
to read.

Ref T5482

7 years agoevas: Fix a crash in textblock
Jean-Philippe Andre [Wed, 5 Jul 2017 08:39:55 +0000 (17:39 +0900)]
evas: Fix a crash in textblock

I could not reproduce it but the case should not happen,
so I'm adding a safety check rather than a silent return.

The private data should be NULL only after evas_object_free()
or before construction...

Fixes T5656

7 years agoevas: Add internal type documentation (event grabber)
Jean-Philippe Andre [Wed, 5 Jul 2017 08:23:45 +0000 (17:23 +0900)]
evas: Add internal type documentation (event grabber)

7 years agoelm test: image - use table to align image swallowed in layout
Amitesh Singh [Wed, 5 Jul 2017 07:01:23 +0000 (16:01 +0900)]
elm test: image - use table to align image swallowed in layout

refer T4635

7 years agoRevert "build: fix examples dist based on various configure flags"
Mike Blumenkrantz [Tue, 4 Jul 2017 15:49:43 +0000 (11:49 -0400)]
Revert "build: fix examples dist based on various configure flags"

This reverts commit ded5b1e764fdc97403bd829b02106ae8b9af10a4.

this broke build in some cases

7 years agoRevert "build: enable examples build by default"
Mike Blumenkrantz [Tue, 4 Jul 2017 15:49:37 +0000 (11:49 -0400)]
Revert "build: enable examples build by default"

This reverts commit b58629bbbef3d811700b016eb9fa97e2af71e1a1.

not needed

7 years agoecore-x - add ecore x dpms force api
Carsten Haitzler (Rasterman) [Tue, 4 Jul 2017 05:49:37 +0000 (14:49 +0900)]
ecore-x - add ecore x dpms force api

add api that allows us to force dpms on or off. needed to fix e
support for non-suspend new systems that don't do S3 ...

@feature

7 years agoedje: support legacy Textblock calculation logic for 1.18 edje file
Youngbok Shin [Tue, 4 Jul 2017 04:53:59 +0000 (13:53 +0900)]
edje: support legacy Textblock calculation logic for 1.18 edje file

Summary:
From EFL 1.19, Edje Textblock calculation logic was fixed according to
Edje documents. But, it broke old edje files which ignored text.min
option for minimum width. Even if the old edje files were wrong,
we need to support them as discussed from T5548.

Also, this patch will change default efl_version to 1.18 from 1.19.
So, without efl_version property, edje file will run on the legacy logic.

Fixes T5548

Test Plan: Turn on/off presentation mode in Enlightenment.

Reviewers: herdsman, cedric, jpeg, zmike, raster

Subscribers: stefan_schmidt

Maniphest Tasks: T5548

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

Adjusted by @jpeg

7 years agolayout: Fix default content part
Jean-Philippe Andre [Tue, 4 Jul 2017 02:37:37 +0000 (11:37 +0900)]
layout: Fix default content part

This fixes call to:
  elm_layout_content_set(ly, NULL, obj);

This only affect this legacy API, not the EO interface.

Thanks Dave for the report!

Ref 59081043a892f6db74a1d557c7422c7a543c909d

7 years agoEmotion: freed allocated string.
Uma Devika [Mon, 3 Jul 2017 10:44:48 +0000 (19:44 +0900)]
Emotion: freed allocated string.

Summary:
GStreamer API gst_caps_to_string returns allocated memory which needs to be freed with g_free() after use.

@fix

Signed-off-by: Uma Devika <u.bodapati@samsung.com>
Reviewers: cedric, tasn, singh.amitesh, raster, jpeg

Subscribers: tanwar.umesh07, yashu21985, cedric, jpeg

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

7 years agoelm_code: Add rust syntax
Andy Williams [Mon, 3 Jul 2017 21:17:07 +0000 (22:17 +0100)]
elm_code: Add rust syntax

7 years agobuild: enable examples build by default
Mike Blumenkrantz [Mon, 3 Jul 2017 19:01:59 +0000 (15:01 -0400)]
build: enable examples build by default

the previous method of forcing this to be enabled for dist builds caused
breaks when the original configure disabled examples, as the little-known
DISTCHECK_CONFIGURE_FLAGS variable would need to also be set to disable
examples even though the user would think they were disabled based on configure
output

7 years agobuild: fix examples dist based on various configure flags
Mike Blumenkrantz [Mon, 3 Jul 2017 19:01:59 +0000 (15:01 -0400)]
build: fix examples dist based on various configure flags

this would previously break if:
* cxx bindings were disabled
* elua was disabled
* base configure disabled examples and dist build disabled examples
* base configure disabled examples and dist build enabled examples

it still breaks if:
* base configure disables examples and dist build enables examples

7 years agobuild: add efl_wl .x files to EXTRA_DIST2
Mike Blumenkrantz [Mon, 3 Jul 2017 19:01:59 +0000 (15:01 -0400)]
build: add efl_wl .x files to EXTRA_DIST2

7 years agorelease: Update NEWS and bump version for 1.20.0-beta1 release
Stefan Schmidt [Mon, 3 Jul 2017 13:57:19 +0000 (15:57 +0200)]
release: Update NEWS and bump version for 1.20.0-beta1 release

7 years agoelm_spinner: Entry hide when inc/dec button pressed.
Woochan Lee [Mon, 3 Jul 2017 07:57:06 +0000 (16:57 +0900)]
elm_spinner: Entry hide when inc/dec button pressed.

Summary:
The entry cursor does not disappear when the user pressed(long press value change case) inc/dec button.

@fix

Test Plan: elementary_test -> spinner.

Reviewers: cedric, jpeg, woohyun

Subscribers: cedric, jpeg

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

7 years agodrm: Fix compilation warnings
Jean-Philippe Andre [Mon, 3 Jul 2017 07:23:12 +0000 (16:23 +0900)]
drm: Fix compilation warnings

7 years agoeina file: Fix rare crash in line iteration
Jean-Philippe Andre [Mon, 3 Jul 2017 07:22:01 +0000 (16:22 +0900)]
eina file: Fix rare crash in line iteration

I'm not sure about the rest of this code, so it's possible that
the index is increased even if it shouldn't. But I've observed
a crash at this line, apparently when reaching the end pointer.

7 years agoFilter: check nullity before accessing structure member
Daniel Zaoui [Sun, 2 Jul 2017 12:52:41 +0000 (15:52 +0300)]
Filter: check nullity before accessing structure member

@fix

7 years agoevas: add @since for map_coords_get()
Mike Blumenkrantz [Fri, 30 Jun 2017 20:51:43 +0000 (16:51 -0400)]
evas: add @since for map_coords_get()

ref eaeaf8831c139880a5e179cdbab8873320a62476

7 years agoevas: expose evas_map_coords_get.
Cedric BAIL [Wed, 28 Jun 2017 21:42:28 +0000 (14:42 -0700)]
evas: expose evas_map_coords_get.

7 years agoefl-wl: add .pc file
Mike Blumenkrantz [Fri, 30 Jun 2017 20:03:03 +0000 (16:03 -0400)]
efl-wl: add .pc file

7 years agoAdd a new test for elm_image align inside a swallow
Dave Andreoli [Fri, 30 Jun 2017 20:15:37 +0000 (22:15 +0200)]
Add a new test for elm_image align inside a swallow

This is broken since 1.18, more info on T4635

7 years agosoftware_generic: Improve dmabuf validity tests
Derek Foreman [Fri, 30 Jun 2017 19:54:12 +0000 (14:54 -0500)]
software_generic: Improve dmabuf validity tests

Now that upper layers set load errors this can be less gruesome.

Also, add some checks that were in E here where they belong.

7 years agogl_drm: Improve dmabuf validity test
Derek Foreman [Fri, 30 Jun 2017 19:52:54 +0000 (14:52 -0500)]
gl_drm: Improve dmabuf validity test

Now that higher layers are setting load errors this can be less gruesome.

7 years agoevas image: Set load error on native image set failure
Derek Foreman [Fri, 30 Jun 2017 19:10:50 +0000 (14:10 -0500)]
evas image: Set load error on native image set failure

evas_object_image_native_surface_set() has no return, so without
setting load error we can't tell if it failed.

fix T5418

7 years agotheme: use FLOOR rounding for digital clock themes
Mike Blumenkrantz [Fri, 30 Jun 2017 18:59:21 +0000 (14:59 -0400)]
theme: use FLOOR rounding for digital clock themes

the default rounding method allows for a value of 60 when setting the
seconds on a clock

fix T5639

7 years agoefl_wl: a multiseat wayland compositor in an evas smart object
Mike Blumenkrantz [Fri, 30 Jun 2017 18:59:21 +0000 (14:59 -0400)]
efl_wl: a multiseat wayland compositor in an evas smart object

build when wayland support is enabled and provide two test/demo cases

beta api

@feature

Reviewed-By: Cedric BAIL <cedric@osg.samsung.com>