platform/upstream/efl.git
6 years agoElementary: remove needless structs in Efl_Ui_List
Larry Jr [Wed, 31 Jan 2018 18:55:42 +0000 (16:55 -0200)]
Elementary: remove needless structs in Efl_Ui_List

6 years agoelementary: efl_ui_list change SegArray tree to Efl.Object
Larry Jr [Fri, 26 Jan 2018 18:53:42 +0000 (16:53 -0200)]
elementary: efl_ui_list change SegArray tree to Efl.Object

6 years agoelementary: efl_ui_list model_set update values fixed
Larry Jr [Mon, 22 Jan 2018 19:52:51 +0000 (17:52 -0200)]
elementary: efl_ui_list model_set update values fixed

6 years agoelementary: efl_ui_list_segarray fixed remove last block item
Larry Jr [Fri, 19 Jan 2018 17:31:40 +0000 (15:31 -0200)]
elementary: efl_ui_list_segarray fixed remove last block item

6 years agoelementary: efl_ui_list focus manager fix
Larry Jr [Fri, 19 Jan 2018 17:27:26 +0000 (15:27 -0200)]
elementary: efl_ui_list focus manager fix
fixed focus changed with keyboard
fixed scroll in focus
fixed focus in example

6 years agoecore_wl2: Take a library reference on surface create
Derek Foreman [Thu, 15 Feb 2018 17:06:03 +0000 (11:06 -0600)]
ecore_wl2: Take a library reference on surface create

Since surface handling is now done via modules, we need to ensure
the library can't be shutdown while a surface exists.  Otherwise,
we get a segfault trying to call a function we've unmapped.

Fixes a bug on shutdown for some wayland clients using software
rendering.

6 years agoefl_ui_focus_manager_sub: remove needless call
YeongJong Lee [Thu, 15 Feb 2018 13:53:46 +0000 (14:53 +0100)]
efl_ui_focus_manager_sub: remove needless call

Summary: focus manager is not assigned in constructor

Reviewers: bu5hm4n

Reviewed By: bu5hm4n

Subscribers: cedric

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

6 years agoelm_hover: remove focus_layer related code
YeongJong Lee [Thu, 15 Feb 2018 13:53:27 +0000 (14:53 +0100)]
elm_hover: remove focus_layer related code

Summary:
because elm_hover implements Efl.Ui.Focus.Layer, focus_layer related code
dosen't needed.

Test Plan: elementary_test - hover

Reviewers: bu5hm4n

Reviewed By: bu5hm4n

Subscribers: cedric, jpeg

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

6 years agoefl - fix build again after removal of install of public header
Carsten Haitzler (Rasterman) [Thu, 15 Feb 2018 09:49:53 +0000 (18:49 +0900)]
efl - fix build again after removal of install of public header

put elm_code_widget_legacy.eo.h back in the includes to install as it
is required by other public headers...

6 years agotest_ui_table: fix uninitialized variable warning
Mike Blumenkrantz [Wed, 14 Feb 2018 22:03:47 +0000 (17:03 -0500)]
test_ui_table: fix uninitialized variable warning

maybe right, maybe wrong, maybe compile warnings shouldn't be added
in reviewed patches

ref D5668

6 years agogl_drm: NULL check img
Derek Foreman [Wed, 14 Feb 2018 20:55:43 +0000 (14:55 -0600)]
gl_drm: NULL check img

If we set native surface on a new object we can get here with NULL
engine_info from the caller.  We should still create a native surface.

6 years agoelementary: fix legacy widget type name for backward compat
Youngbok Shin [Wed, 14 Feb 2018 20:04:24 +0000 (12:04 -0800)]
elementary: fix legacy widget type name for backward compat

Summary:
For example, the widget type of elm_button was "Elm_Button".
But, the object which is created by elm_button_add() will
return its widget type "Efl.Ui.Button_Legacy".
It is not legacy name. It should be fixed to return "Elm_Button".

I don't know when but eolian start to make class name with ".".
So, it should be converted to "_" for all widgets.

@fix

Test Plan:
All test cases are included in this patch.
Run "make check"

Reviewers: raster, cedric, jpeg, taxi2se

Reviewed By: cedric

Subscribers: taxi2se, woohyun

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoeina: improve documentation for eina_bezier.
Bryce Harrington [Wed, 14 Feb 2018 20:00:44 +0000 (12:00 -0800)]
eina: improve documentation for eina_bezier.

Summary:
Adds missing @param docs and fixes an incorrectly documented one.
Clarifies difference between 'length' and 'position', specifying the
latter is a number between 0.0 and 1.0.  Improves verbage here and there
for grammatical correctness and internal consistency.

Subscribers: cedric

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoeina: make doxygen @notes consistent in eina_hash
Bryce Harrington [Wed, 14 Feb 2018 20:00:06 +0000 (12:00 -0800)]
eina: make doxygen @notes consistent in eina_hash

Summary:
These routines all have slight permutations of the same basic note, but
are each formatted a bit differently.  Fix that and a few punctuation
irregularities.

Similarly for a couple @warnings, and escalate one @note to a @warning
since what it describes might be a security issue so deserves
highlighting.

Subscribers: cedric

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoeina: fix minor spelling mistake in eina-private.h doxygen
Bryce Harrington [Wed, 14 Feb 2018 19:59:48 +0000 (11:59 -0800)]
eina: fix minor spelling mistake in eina-private.h doxygen

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoeina: use matrix compose in place of equivalent code in matrix multiply
Bryce Harrington [Wed, 14 Feb 2018 19:56:02 +0000 (11:56 -0800)]
eina: use matrix compose in place of equivalent code in matrix multiply

Summary:
The eina_matrix3_compose and eina_matrix3_multiply API's are
mathematically identical (even though the implementations are
reversed... weird), except that the latter also includes a fastpath for
identity matrices.

Having two functionally equivalent APIs is redundant, so ideally one or
the other would be dropped.  But in order avoid API breakage, just have
one routine wrapper the other and eliminate the internal redundancy.

(Note that the parameter signatures of the two routines are different -
eina_matrix3_compose() takes the two input matrices first, and the
output matrix last, while eina_matrix3_multiply() takes the parameters
in the reverse order.  This inconsistency in the API style could result
in accidentally erroneous usage and would be an argument for deprecation
of one of the two APIs.)

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

Reviewed By: cedric

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoecore_file: modify check for wd in file monitor del
Yeshwanth Reddivari [Wed, 14 Feb 2018 19:53:51 +0000 (11:53 -0800)]
ecore_file: modify check for wd in file monitor del

Summary:
Make checks consistent in ecore_file_monitor_backend_del.
inotify_add_watch can return 0 as well on success.
So, even if wd is 0, inotify_rm_watch need to be invoked.

Reviewers: cedric, jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoeina: cleanup doxygen for eina_rectangle.
Bryce Harrington [Wed, 14 Feb 2018 19:49:55 +0000 (11:49 -0800)]
eina: cleanup doxygen for eina_rectangle.

Summary:
Some spelling/punctuation/grammar/formatting fixes to make the
rectangles doxygen more consistent.  Simplify wording in several places,
including removing redundant documentation of return values.  Reword the
rectangle cutting API's to be more clearly worded.  Make clearer mention
of parameters that get changed by the function call, and ones that
allocate memory.

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoevas/vg: reset the path data in destructor.
subhransu mohanty [Wed, 14 Feb 2018 19:31:41 +0000 (11:31 -0800)]
evas/vg: reset the path data in destructor.

Summary: As the gfx_path mixin class destructor is not called hence explicit call of reset.

Reviewers: jpeg, SanghyeonLee

Subscribers: cedric

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoefl: general distcheck fixes
Lauro Moura [Wed, 14 Feb 2018 19:30:05 +0000 (11:30 -0800)]
efl: general distcheck fixes

Summary:
- Added missing C++ header
- Added missing elementary header
- Removed generated header from elementary_SOURCES
  (Was added by raster in 42dfee37)
  Not sure of what would be the best place for it, though.
- Removed previously removed files from elementary examples Makefile.

Test Plan: Run 'make distcheck'

Reviewers: stefan, felipealmeida

Subscribers: cedric

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoefl.ui.layout: change signal name for icon/text
Sungtaek Hong [Wed, 14 Feb 2018 19:29:19 +0000 (11:29 -0800)]
efl.ui.layout: change signal name for icon/text

Summary:
when set/unset icon and text,
signal "elm,state,[part],visible/hidden" is emitted.
This is wrong because visible/hidden should be handled by
Efl.Gfx.visible, not Efl.Text nor Efl.Content.
This should be changed into elm,state,[part],set/unset"
All relating edc should be fixed.

Test Plan: run elementary_test->button, Efl.Ui.Button

Reviewers: jpeg, cedric, woohyun, Jaehyun_Cho

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
6 years agoefl_wl: Update native surface for dmabuf test too
Derek Foreman [Wed, 14 Feb 2018 20:40:31 +0000 (14:40 -0600)]
efl_wl: Update native surface for dmabuf test too

Should've added this to the last commit - though this change is purely
cosmetic as the test can never trigger direct scanout.

6 years agoefl_wl: Update native surface usage
Derek Foreman [Wed, 14 Feb 2018 20:35:19 +0000 (14:35 -0600)]
efl_wl: Update native surface usage

We should be zeroing out the dmabuf scanout stuff.

6 years agoefl-wl: check for existing keyboard enter before sending leave
Mike Blumenkrantz [Wed, 14 Feb 2018 20:05:55 +0000 (15:05 -0500)]
efl-wl: check for existing keyboard enter before sending leave

ref 4a32e2456eaca80cee0b1ce70cea00cb41e11979

6 years agoecore_wl2_surface_dmabuf: fix memory leak on surface destroy
Derek Foreman [Tue, 13 Feb 2018 23:31:41 +0000 (17:31 -0600)]
ecore_wl2_surface_dmabuf: fix memory leak on surface destroy

We need to free the surface private data on destroy.

6 years agoecore_wl2: Fix memory leak on shutdown
Derek Foreman [Tue, 13 Feb 2018 23:09:19 +0000 (17:09 -0600)]
ecore_wl2: Fix memory leak on shutdown

The output list wasn't properly cleaned up on shutdown/disconnect.

6 years agoefl_selection_manager: shut up shut up shut up ecore-x when running in wayland
Mike Blumenkrantz [Tue, 13 Feb 2018 22:28:40 +0000 (17:28 -0500)]
efl_selection_manager: shut up shut up shut up ecore-x when running in wayland

fix T6643

6 years agoefl_gesture_manager: free hash in destructor
Mike Blumenkrantz [Tue, 13 Feb 2018 22:23:44 +0000 (17:23 -0500)]
efl_gesture_manager: free hash in destructor

every canvas object has had this leak for some time:

==25217== 64 bytes in 1 blocks are definitely lost in loss record 1,669 of 3,515
==25217==    at 0x4C2FB6B: malloc (vg_replace_malloc.c:299)
==25217==    by 0x688D839: eina_hash_new (eina_hash.c:755)
==25217==    by 0x688D940: eina_hash_string_superfast_new (eina_hash.c:791)
==25217==    by 0x6265F8C: _efl_gesture_manager_efl_object_constructor (efl_gesture_manager.c:66)

6 years agoeolian: properly initialize warned (to avoid random parse failures)
Daniel Kolesa [Tue, 13 Feb 2018 20:48:46 +0000 (21:48 +0100)]
eolian: properly initialize warned (to avoid random parse failures)

6 years agoelua: add eina in environment variable library path
Romain Naour [Mon, 5 Feb 2018 14:07:15 +0000 (15:07 +0100)]
elua: add eina in environment variable library path

In-tree libeina.so library path is missing while running elua.

http://autobuild.buildroot.net/results/2bb/2bbe89694c206d764d51a5dd9c75bc4aa844e98d/build-end.log

@ref T6670

Cc: Daniel Kolesa <d.kolesa@samsung.com>
Signed-off-by: Daniel Kolesa <d.kolesa@osg.samsung.com>
6 years agoevas drm engines: Fix variable type for output
Chris Michael [Tue, 6 Feb 2018 15:58:58 +0000 (10:58 -0500)]
evas drm engines: Fix variable type for output

We already include the Ecore_Drm2 header for these engines, so there
is no need for the 'output' field to be a void pointer here.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
6 years agoecore-evas-drm: Use output viewport in ecore_evas_animator_tick calls
Chris Michael [Tue, 6 Feb 2018 14:12:39 +0000 (09:12 -0500)]
ecore-evas-drm: Use output viewport in ecore_evas_animator_tick calls

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
6 years agoecore-drm2: Add API functions to get/set output relative mode
Chris Michael [Tue, 6 Feb 2018 14:07:26 +0000 (09:07 -0500)]
ecore-drm2: Add API functions to get/set output relative mode

These API functions will be used inside Enlightenment in order to
determine the proper extended screen size based on outputs relative
position.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
6 years agoecore-evas-drm: Include Evas_Internal header
Chris Michael [Tue, 6 Feb 2018 13:49:46 +0000 (08:49 -0500)]
ecore-evas-drm: Include Evas_Internal header

We need to include this header so that we can use the new
efl_canvas_output functions

Signed-off-by: Chris Michael <cp.michael@samsung.com>
6 years agoefl_ui_nstate: make "changed" callback is called properly
WooHyun Jung [Tue, 13 Feb 2018 13:50:14 +0000 (22:50 +0900)]
efl_ui_nstate: make "changed" callback is called properly

- "changed" callback is not called when theme_apply is called
- elm_check_state_set does not call "changed" callback to keep
  backward compatibility

6 years agoRevert "elm: do not call "changed" callback when setting style"
WooHyun Jung [Tue, 13 Feb 2018 10:20:19 +0000 (19:20 +0900)]
Revert "elm: do not call "changed" callback when setting style"

This reverts commit b1ee35e35ce3132566244abbbd3a804167ef9c00.

6 years agoRevert "Efl.Ui.Nstate: do not call "changed" callback"
WooHyun Jung [Tue, 13 Feb 2018 09:39:20 +0000 (18:39 +0900)]
Revert "Efl.Ui.Nstate: do not call "changed" callback"

This reverts commit fd8e9f9c4e8dbda6c379dc464f562f5b2c681d31.

6 years agoeolian: print all duplicate warnings before aborting build
Daniel Kolesa [Tue, 13 Feb 2018 09:14:49 +0000 (10:14 +0100)]
eolian: print all duplicate warnings before aborting build

Instead of aborting at the first warning, accumulate the warnings
and stop at the end of validation.

6 years agoelm focus ... set focus in focus in if focus is not already on something
Carsten Haitzler (Rasterman) [Tue, 13 Feb 2018 09:12:11 +0000 (18:12 +0900)]
elm focus ... set focus in focus in if focus is not already on something

let's actually set focus in focus_in on window (ecore evas) IF focus
is not set. this seems to make terminology still work...

6 years agoefl ui win - if job runs after destruction of evas so dont flush pending
Carsten Haitzler (Rasterman) [Tue, 13 Feb 2018 06:28:47 +0000 (15:28 +0900)]
efl ui win - if job runs after destruction of evas so dont flush pending

6 years agoelm - dont get top widget for non-ui objects
Carsten Haitzler (Rasterman) [Tue, 13 Feb 2018 06:21:49 +0000 (15:21 +0900)]
elm - dont get top widget for non-ui objects

6 years agoefl ui win - fix focus break for terminology (at least)
Carsten Haitzler (Rasterman) [Tue, 13 Feb 2018 04:46:38 +0000 (13:46 +0900)]
efl ui win - fix focus break for terminology (at least)

at least terminology was broken by this. perhaps other efl apps. if an
efl app has decided to manually play with focus itself, like set focus
to some obj then leav ie, this line breaks that and interferes with
the object focused whenever the window gets focus set. if there is a
focus manager at least this is a new thing and so let the focus
manager set focus, but dont set old evas focus.

this fixes the break added in 56beb861e83cbc830c82db7473e0a88461e2e213

6 years agoevas_vg: implement interpolate from Efl.Gfx.Path
Mike Blumenkrantz [Mon, 12 Feb 2018 22:14:34 +0000 (17:14 -0500)]
evas_vg: implement interpolate from Efl.Gfx.Path

6 years agointerfaces: merge all bounds_get methods into efl.gfx.path
Mike Blumenkrantz [Mon, 12 Feb 2018 21:58:57 +0000 (16:58 -0500)]
interfaces: merge all bounds_get methods into efl.gfx.path

ref 884fc35160152712decdf7fd43082ef3912c0856

6 years agoevas3d: use a type setter function with finalize instead of a custom constructor
Mike Blumenkrantz [Mon, 12 Feb 2018 19:29:20 +0000 (14:29 -0500)]
evas3d: use a type setter function with finalize instead of a custom constructor

resolves a conflict with the 'constructor' method name

6 years agoevas3d: add "unknown" node type for use with errors
Mike Blumenkrantz [Mon, 12 Feb 2018 19:28:45 +0000 (14:28 -0500)]
evas3d: add "unknown" node type for use with errors

6 years agointerfaces: remove Efl.Text.Properties
Mike Blumenkrantz [Mon, 12 Feb 2018 21:02:06 +0000 (16:02 -0500)]
interfaces: remove Efl.Text.Properties

this is provided in Efl.Text.Font

6 years agoefl_text_font: copy docs from efl_text_properties
Mike Blumenkrantz [Mon, 12 Feb 2018 20:34:01 +0000 (15:34 -0500)]
efl_text_font: copy docs from efl_text_properties

6 years agoefl_vg: use efl.object's name property instead of implementing a new one
Mike Blumenkrantz [Mon, 12 Feb 2018 20:04:15 +0000 (15:04 -0500)]
efl_vg: use efl.object's name property instead of implementing a new one

6 years agoector: rename ector_renderer "bounds_get" method to "boundary_get"
Mike Blumenkrantz [Mon, 12 Feb 2018 18:45:07 +0000 (13:45 -0500)]
ector: rename ector_renderer "bounds_get" method to "boundary_get"

this conflicted with a method from Efl.Gfx.Path

6 years agoector: fix property/method name conflict for "fill"
Mike Blumenkrantz [Mon, 12 Feb 2018 18:23:25 +0000 (13:23 -0500)]
ector: fix property/method name conflict for "fill"

Shape implements a property, sw/gl/cairo implements a method

rename method to op_fill

6 years agoeolian: convert all of cedric's tabs to spaces in .eo files
Mike Blumenkrantz [Mon, 12 Feb 2018 17:56:31 +0000 (12:56 -0500)]
eolian: convert all of cedric's tabs to spaces in .eo files

6 years agoeolian: stop build with EOLIAN_WARN_FUNC_DUPLICATES > 1
Daniel Kolesa [Mon, 12 Feb 2018 17:56:38 +0000 (18:56 +0100)]
eolian: stop build with EOLIAN_WARN_FUNC_DUPLICATES > 1

6 years agoecore_wl2: Send window hide in response to xdg popup done
Derek Foreman [Mon, 12 Feb 2018 17:27:11 +0000 (11:27 -0600)]
ecore_wl2: Send window hide in response to xdg popup done

Clients should be sent this event when the compositor sends popup done.

6 years agoefl_ui_win: move inital focus set to focus_in handler
Marcel Hollerbach [Sun, 11 Feb 2018 18:04:06 +0000 (18:04 +0000)]
efl_ui_win: move inital focus set to focus_in handler

it seems that focus changes to FOCUS=FALSE are causing autodel windows
to kill themself, so we only set the focus on the window if the window
manager calls focus in AND we dont have anything to focus and nothing is
focused yet.

6 years agoedje - entry - fix empty item handling
Carsten Haitzler (Rasterman) [Sun, 11 Feb 2018 10:20:46 +0000 (19:20 +0900)]
edje - entry - fix empty item handling

tjhis should fix empty items which might have a null item string...
deal with it

fixes T6668

@fix

6 years agoeina - tiler -= return true if rect alreadt there as its not a failure
Carsten Haitzler (Rasterman) [Sun, 11 Feb 2018 06:55:13 +0000 (15:55 +0900)]
eina - tiler -= return true if rect alreadt there as its not a failure

docs say return true on succesas, false on failure. adding a rect we
already added is not a failur. it's an optimization to a NOP. so fix.
this was brought up by and fixes T6669 ... but in the opposite way.

6 years agoelm - fix new em_config func prototypes in header to have real param decl
Carsten Haitzler (Rasterman) [Sun, 11 Feb 2018 05:53:28 +0000 (14:53 +0900)]
elm - fix new em_config func prototypes in header to have real param decl

6 years agoefl ui format - fix format checking to be correct
Carsten Haitzler (Rasterman) [Sat, 10 Feb 2018 07:26:15 +0000 (16:26 +0900)]
efl ui format - fix format checking to be correct

the format string checking was just ... wrong. it didnt' handle %%. it
didn't handle constant strings with no format in them... now it does.

fixes T6697

@fix

6 years agoelm progressbar - fix val set
Carsten Haitzler (Rasterman) [Sat, 10 Feb 2018 07:24:11 +0000 (16:24 +0900)]
elm progressbar - fix val set

set initial min and max to 0 and 1 respectively so val set works at
the start...

fixes T6697

@fix

6 years agoelm - make progress test code a little more solid and nice to read
Carsten Haitzler (Rasterman) [Sat, 10 Feb 2018 05:38:29 +0000 (14:38 +0900)]
elm - make progress test code a little more solid and nice to read

use sizeof the buffer rather than constant in snprint and 0.5 rather
than .50 which almost looks like a typo... :) also use correct escape
for % (%%%% so it becoems %% which is correct for a fmt string yto
produce %)

6 years agoelm: Fix double shutdowns of ecore_x and ecore_wl2
Derek Foreman [Fri, 9 Feb 2018 17:25:41 +0000 (11:25 -0600)]
elm: Fix double shutdowns of ecore_x and ecore_wl2

This is now done elsewhere.  wayland clients were ERRing on shutdown.

ref 9cf61c2f6d215e3adfa1567154a229eb49116769

6 years agowayland_imf: Clear hide timer when deleting context
Derek Foreman [Fri, 9 Feb 2018 17:11:24 +0000 (11:11 -0600)]
wayland_imf: Clear hide timer when deleting context

Otherwise the callback can fire after the module is unloaded leading to some
very entertaining to debug crashes at shutdown.

6 years agoElm Progressbar test: Add in examples of efl regressions to progressbar.
Stephen Houston [Fri, 9 Feb 2018 16:21:55 +0000 (10:21 -0600)]
Elm Progressbar test: Add in examples of efl regressions to progressbar.

6 years agoecore_wl2: Destroy offscreen event handler in surface destroy
Derek Foreman [Fri, 9 Feb 2018 15:49:52 +0000 (09:49 -0600)]
ecore_wl2: Destroy offscreen event handler in surface destroy

Or we can get the event after destroying the surface and crash.

6 years agoefl_mono: Distcheck fixes
Lauro Moura [Thu, 1 Feb 2018 18:38:48 +0000 (15:38 -0300)]
efl_mono: Distcheck fixes

- Export required sources
- Avoid generated sources being passed as static ones

6 years agoeina_mono: Avoid calling eina_init directly from the modules.
Lauro Moura [Tue, 6 Feb 2018 19:10:36 +0000 (16:10 -0300)]
eina_mono: Avoid calling eina_init directly from the modules.

They must be initialized from the eina.Config.Init() method.

6 years agoci: make sure we fail the build and pass on the non zero exit code
Stefan Schmidt [Thu, 8 Feb 2018 09:45:24 +0000 (10:45 +0100)]
ci: make sure we fail the build and pass on the non zero exit code

So far we just kept going on when one of the make targets failed with
the next one.

6 years agoefl_part: call Efl.Text of each class' part
Sungtaek Hong [Thu, 8 Feb 2018 09:37:51 +0000 (11:37 +0200)]
efl_part: call Efl.Text of each class' part

Summary:
Macro ELM_PART_TEXT_DEFAULT_IMPLEMENT calls
super class' Efl.Text interface, rather than this class.

Reviewers: jpeg, woohyun, Jaehyun_Cho, herdsman

Subscribers: cedric, id213sin

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

6 years agoefl_part: use efl_ui_widget's default_part_get
Sungtaek Hong [Thu, 8 Feb 2018 05:53:59 +0000 (14:53 +0900)]
efl_part: use efl_ui_widget's default_part_get

Summary:
efl_part macros are using each widget's internally defined
default_part_get() functions to get default part name.
This might potentially cause errors when future widgets
inherits the widget but not overriding Efl.Text.text and
Efl.Content.content.

Reviewers: jpeg, cedric, woohyun, Jaehyun_Cho

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

6 years agoector: Updated the ector_buffer_pixels_set() api with stride info
subhransu mohanty [Thu, 8 Feb 2018 05:27:15 +0000 (14:27 +0900)]
ector: Updated the ector_buffer_pixels_set() api with stride info

Reviewers: jypark, jpeg

Subscribers: cedric

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

6 years agoelm: remove ecore-x init from quicklaunch post-fork
Mike Blumenkrantz [Wed, 7 Feb 2018 18:32:08 +0000 (13:32 -0500)]
elm: remove ecore-x init from quicklaunch post-fork

this is invalid for basically every possible case. allow components
to naturally call this function as needed

@fix

6 years agoelm: call ecore_app_args_set() after quicklaunch fork
Mike Blumenkrantz [Wed, 7 Feb 2018 18:30:37 +0000 (13:30 -0500)]
elm: call ecore_app_args_set() after quicklaunch fork

ensure that apps get expected behavior when calling args_get()

@fix

6 years agoecore-imf: do ecore-x init during ctx creation instead of module init
Mike Blumenkrantz [Wed, 7 Feb 2018 17:09:35 +0000 (12:09 -0500)]
ecore-imf: do ecore-x init during ctx creation instead of module init

this avoids a number of issues with efl under wayland, msot notably the
automatic triggering of xwayland during every app startup

@fix

6 years agoelm: move ecore-x and ecore-wl2 connection init to selection manager
Mike Blumenkrantz [Wed, 7 Feb 2018 17:03:41 +0000 (12:03 -0500)]
elm: move ecore-x and ecore-wl2 connection init to selection manager

this seems to be the only place where the related components are
explicitly used

neither of these components have fork-safe connections, so there is no
benefit to calling them during quicklaunch init

6 years agoelm: print error if setsid() fails during quicklaunch fork
Mike Blumenkrantz [Wed, 7 Feb 2018 17:03:00 +0000 (12:03 -0500)]
elm: print error if setsid() fails during quicklaunch fork

6 years agoeio: remove broken pid-based monitor reset copied from ecore-file
Mike Blumenkrantz [Wed, 7 Feb 2018 16:55:40 +0000 (11:55 -0500)]
eio: remove broken pid-based monitor reset copied from ecore-file

this has no technical basis for existing and should be handled by
individual monitor backends

@fix

6 years agoecore: fix event flushing to not erase+leak events
Mike Blumenkrantz [Wed, 7 Feb 2018 16:50:57 +0000 (11:50 -0500)]
ecore: fix event flushing to not erase+leak events

stealing the message data here prevents events which aren't being flushed from
ever being usable again and is unnecessary since the free callback will be
automatically called during the destructor

ref 5dd52fd09b7d79c70b3134423a87aa6400a2d994

6 years agoEvas: remove depth usage in GDI and DirectDraw engines
Vincent Torri [Wed, 7 Feb 2018 13:10:24 +0000 (22:10 +0900)]
Evas: remove depth usage in GDI and DirectDraw engines

Test Plan: compilation and elementary_test

Reviewers: raster

Reviewed By: raster

Subscribers: cedric, raster

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

6 years agoelm_part_helper: Fix to use registered default text part
Jaehyun Cho [Wed, 7 Feb 2018 11:51:04 +0000 (20:51 +0900)]
elm_part_helper: Fix to use registered default text part

6 years agoEfl.Ui.Nstate: do not call "changed" callback
Shinwoo Kim [Wed, 7 Feb 2018 07:18:53 +0000 (16:18 +0900)]
Efl.Ui.Nstate: do not call "changed" callback

Before solving following problem in Efl.Ui.Check

https://phab.enlightenment.org/T6673

The changed callback is called with opposite value,
if application is using Efl.Ui.Check with state pointer.

The reason is that the changed callback is called in
efl_ui_nstate_activate, and the value refered by state pointer
is changed only after the efl_ui_nstate_activate is called.

static void
_activate(Evas_Object *obj)
{
   EFL_UI_CHECK_DATA_GET(obj, sd);

   efl_ui_nstate_activate(obj);
   if (sd->statep) *sd->statep = efl_ui_nstate_value_get(obj);

6 years ago elm_genlist: fix rebase build error related with on_focus_update to Focus.Object
Jiyoun Park [Wed, 4 Apr 2018 04:43:12 +0000 (13:43 +0900)]
   elm_genlist: fix rebase build error related with on_focus_update to Focus.Object

   widget: Move on_focus_update to Focus.Object

   Following @taxi2se's recommendation. This is indeed a focus method, and
   Widget already inherits from Focus.Object.

   Ping @bu5hm4n who probably wants to adapt this further.

   Ref T5363

6 years ago efl_spec: fix build error related with dmabuf of ecore_wl2
Jiyoun Park [Wed, 4 Apr 2018 01:41:22 +0000 (10:41 +0900)]
   efl_spec: fix build error related with dmabuf of ecore_wl2

6 years ago ecore_wl2_tbmsurface: modify tbmsurface based on ecore_wl2_surface change of opens...
Jiyoun Park [Wed, 4 Apr 2018 01:39:05 +0000 (10:39 +0900)]
   ecore_wl2_tbmsurface: modify tbmsurface based on ecore_wl2_surface change of opensource

6 years agoecore-drm2: Ensure output changed event is sent for removed outputs
Chris Michael [Tue, 6 Feb 2018 18:01:25 +0000 (13:01 -0500)]
ecore-drm2: Ensure output changed event is sent for removed outputs

If an output gets disconnected, we would still like to be notified of
that. In the _outputs_update function, we mark an output as
disconnected by setting output->connected and output->enabled to
FALSE. With this line in place (in the output_event_send function) we
would never get notified if an output was disconnected.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
6 years agodisable async mode (use sync mode) for ibus when keymap changes
Carsten Haitzler (Rasterman) [Tue, 6 Feb 2018 16:10:42 +0000 (01:10 +0900)]
disable async mode (use sync mode) for ibus when keymap changes

so scenario:

1. use ibus
2. have at least english input and japanese input (or korean etc.)
3. have 2 kbd layouts (english and greek).
4. enable "use system keyboard layout" in ibus advanced settings
5. switch to english input mode
6. switch to greek key layout
7. type and get english, not greek input as you should

@fix for both terminology and elm/efl entry/ytext input.

6 years agoelm: do not call "changed" callback when setting style
Shinwoo Kim [Tue, 6 Feb 2018 13:38:14 +0000 (22:38 +0900)]
elm: do not call "changed" callback when setting style

6 years agoefl.ui.progressbar: add checks for min & max value
Amitesh Singh [Tue, 6 Feb 2018 13:33:58 +0000 (22:33 +0900)]
efl.ui.progressbar: add checks for min & max value

this improves the validity check for min & max values
provided from user side.

6 years agoefl_ui: Disable includes that don't compile
Jean-Philippe Andre [Tue, 6 Feb 2018 12:23:45 +0000 (21:23 +0900)]
efl_ui: Disable includes that don't compile

Efl.Ui.Text:
The EO file contains a lot of references to legacy Elm types, which are
defined in elm_general. They should be checked and moved over to
efl_ui.eot if necessary.

Efl.Ui.Multibuttonentry:
This class was originally supposed to be based on a Model Item but as of
now the API is still uncertain, so MBE itself hasn't been worked on
more. Disable this from EO-only apps until its API is fixed.

Ref T6666

6 years agoeina_tiler: fix typo of rect comparing
Shinwoo Kim [Mon, 5 Feb 2018 11:02:06 +0000 (20:02 +0900)]
eina_tiler: fix typo of rect comparing

6 years agoeio: make inotify monitors fork-safe
Mike Blumenkrantz [Fri, 2 Feb 2018 21:59:56 +0000 (16:59 -0500)]
eio: make inotify monitors fork-safe

@fix

6 years agoeeze: simplify watch code and make it fork-safe
Mike Blumenkrantz [Fri, 2 Feb 2018 21:59:56 +0000 (16:59 -0500)]
eeze: simplify watch code and make it fork-safe

avoid reads from parent process's udev fds

6 years agoecore-file: make monitoring truly fork-safe
Mike Blumenkrantz [Fri, 2 Feb 2018 21:59:56 +0000 (16:59 -0500)]
ecore-file: make monitoring truly fork-safe

add a fork reset callback and attempt to preserve existing monitors
during reset

@fix

6 years agoelm: call ecore_event_init() during init
Mike Blumenkrantz [Fri, 2 Feb 2018 21:59:56 +0000 (16:59 -0500)]
elm: call ecore_event_init() during init

events from this component are used internally in elm, don't rely on
other components to do it

@fix

6 years agoecore: make dbus-using modules fork-safe
Mike Blumenkrantz [Fri, 2 Feb 2018 21:59:56 +0000 (16:59 -0500)]
ecore: make dbus-using modules fork-safe

reset dbus connections to ensure continued functionality

6 years agoeldbus: make connections fork-safe
Mike Blumenkrantz [Fri, 2 Feb 2018 21:59:56 +0000 (16:59 -0500)]
eldbus: make connections fork-safe

after a fork, any existing connection objects can no longer be used,
but it's up to the user to destroy them. internally, this prevents
existing connections from ever being returned as valid connections
and creates new ones after a fork

also destroy fd handlers for connections to ensure that no data is
accidentally clobbered before the connections are cleaned up

6 years agoefreet: reset ipc connection after fork
Mike Blumenkrantz [Fri, 2 Feb 2018 21:59:56 +0000 (16:59 -0500)]
efreet: reset ipc connection after fork

ensure that existing connection is not reused

6 years agoeldbus: do not require error return when adding/removing signal matches
Mike Blumenkrantz [Fri, 2 Feb 2018 21:59:56 +0000 (16:59 -0500)]
eldbus: do not require error return when adding/removing signal matches

this forces the functions to be synchronous and blocks (potentially forever)

6 years agoquicklaunch: use XDG_RUNTIME_DIR instead of hardcoded /tmp
Mike Blumenkrantz [Fri, 2 Feb 2018 21:59:56 +0000 (16:59 -0500)]
quicklaunch: use XDG_RUNTIME_DIR instead of hardcoded /tmp

6 years agoefl-wl: add function for passing ecore-exe flags to launched exes
Mike Blumenkrantz [Fri, 2 Feb 2018 21:59:56 +0000 (16:59 -0500)]
efl-wl: add function for passing ecore-exe flags to launched exes

@feature