platform/upstream/efl.git
6 years agodocs: Group our API landing page by namespace
Andy Williams [Fri, 22 Dec 2017 17:30:52 +0000 (17:30 +0000)]
docs: Group our API landing page by namespace

6 years agoecore: Reduce the number of lines in our error log
Andy Williams [Fri, 22 Dec 2017 14:48:28 +0000 (14:48 +0000)]
ecore: Reduce the number of lines in our error log

And align for readability

6 years agoeolian: prevent unnecessary hash table allocs
Daniel Kolesa [Fri, 22 Dec 2017 14:34:53 +0000 (15:34 +0100)]
eolian: prevent unnecessary hash table allocs

6 years agoeolian: remove the toplevel information
Daniel Kolesa [Fri, 22 Dec 2017 14:29:23 +0000 (15:29 +0100)]
eolian: remove the toplevel information

6 years agoeolian: perform partial class validation every time
Daniel Kolesa [Fri, 22 Dec 2017 14:26:36 +0000 (15:26 +0100)]
eolian: perform partial class validation every time

This makes sure that duplicate method/part/etc checks are done on
every database update, removing the need for clunky toplevel
checks and improving reliability. It also sacrifices some
performance but it shouldn't be too bad (if a class is already
validated, some checks are avoided to speed things up).

6 years agoeolian: deferred parsing of type deps
Daniel Kolesa [Fri, 22 Dec 2017 11:53:51 +0000 (12:53 +0100)]
eolian: deferred parsing of type deps

6 years agoeolian: move inherit type checking to validation
Daniel Kolesa [Fri, 22 Dec 2017 11:41:29 +0000 (12:41 +0100)]
eolian: move inherit type checking to validation

6 years agodocs: Update evas canvas eo files for grammar and readability
Andy Williams [Fri, 22 Dec 2017 13:45:48 +0000 (13:45 +0000)]
docs: Update evas canvas eo files for grammar and readability

Author: Nate Drake

6 years agoRemove all ocurrences of SPANK from our user facing errors.
Andy Williams [Fri, 22 Dec 2017 11:18:46 +0000 (11:18 +0000)]
Remove all ocurrences of SPANK from our user facing errors.

This has been bugging me for some time but now we are triggering new errors internally
this is appearing to end users for problems they did not cause.

Additionally I was able to improve a couple of the errors by copying the
explanation from code comments into the error message.

Shorter error logs now too :)

6 years agodocs: Update efl interface eo files for grammar and readability
Andy Williams [Fri, 22 Dec 2017 10:41:11 +0000 (10:41 +0000)]
docs: Update efl interface eo files for grammar and readability

Author: Nate Drake

6 years agodocs: Update edje eo files for grammar and readability
Andy Williams [Fri, 22 Dec 2017 10:30:32 +0000 (10:30 +0000)]
docs: Update edje eo files for grammar and readability

Author: Nate Drake

6 years agoEfl.Ui.List: fix compiler warning.
Amitesh Singh [Fri, 22 Dec 2017 04:43:30 +0000 (13:43 +0900)]
Efl.Ui.List: fix compiler warning.

6 years agoEfl.Gfx.Color: add color_code{}
Amitesh Singh [Thu, 21 Dec 2017 05:48:41 +0000 (14:48 +0900)]
Efl.Gfx.Color: add color_code{}

color_code allows user to pass/get the color hex string
(e.g. efl_gfx_color_code_set(o, "#FFAA22CC"))

Also make this interface as mixin class.

6 years agointerface: add Efl.Gfx.Color interface for color related APIs
Amitesh Singh [Wed, 20 Dec 2017 07:34:01 +0000 (16:34 +0900)]
interface: add Efl.Gfx.Color interface for color related APIs

This would eventually turn into mixin class later after adding
more color related helper functions.

6 years agoelm_code: Cancel selection if clicked outside of the editor area
Andy Williams [Thu, 21 Dec 2017 22:05:28 +0000 (22:05 +0000)]
elm_code: Cancel selection if clicked outside of the editor area

6 years agoeolian: unify test directories
Marcel Hollerbach [Thu, 21 Dec 2017 19:31:39 +0000 (20:31 +0100)]
eolian: unify test directories

6 years agoecore/efl loop - refactor idle stuff to be less convluted when
Carsten Haitzler (Rasterman) [Thu, 21 Dec 2017 10:31:24 +0000 (19:31 +0900)]
ecore/efl loop - refactor idle stuff to be less convluted when

less jumping around the codebase and no need for a message exists
method on the loop as we can find out internally, so only the process
left.

6 years agoecore/efl loop. remove internal ecore_timer legacy api usage for eflloop
Carsten Haitzler (Rasterman) [Thu, 21 Dec 2017 07:34:05 +0000 (16:34 +0900)]
ecore/efl loop. remove internal ecore_timer legacy api usage for eflloop

efl.loop was still using legacy ecore_timer_* calls inside. of course
this is a big no-no if we are to allow multiple loops, so clean this
up and convert them to efl.loop.timers.

6 years agoefl-mono: Fix using right description pointer in event registration
Felipe Magno de Almeida [Wed, 20 Dec 2017 21:45:07 +0000 (19:45 -0200)]
efl-mono: Fix using right description pointer in event registration

6 years agoefl-mono: Fix removal of .exe extension in Linux systems
Felipe Magno de Almeida [Wed, 20 Dec 2017 21:44:22 +0000 (19:44 -0200)]
efl-mono: Fix removal of .exe extension in Linux systems

6 years agoeolian-mono: Add documentation generation support
Lauro Moura [Thu, 7 Dec 2017 00:03:55 +0000 (21:03 -0300)]
eolian-mono: Add documentation generation support

This commit adds the "documentation" generator, which gets the
documentation_def attribute of the given item and generates xml comments
to be exported by MCS.

For items requiring some customization of the generated comments (e.g.
functions and its parameters), the helpers to generate the preamble
(summary), body (paragraphs) and epilogue (currently just the @since
tag) were added.

Currently we do not support converting Eolian references into xmldoc
references.

As we explicitly generate Get/Set methods for properties, for now the
generator tries to get the get/set specific documentation first. If it
is not present, fallback to the common docs.

Later this could be changed to generate the common one as paragraphs of
the Get/Set.

Also some generated code like the wrappers for calling C# methods
from C can be private. This will cleanup the introspection results
and warnings when generating documentation.

Due to this visibility change, the binbuf tests had to be changed
to add redirect calls to the native methods instead of directly
calling the DllImport'd methods.

6 years agoeina: only execute that code if HAVE_MALLOC_USABLE_SIZE is defined
Marcel Hollerbach [Wed, 20 Dec 2017 17:50:17 +0000 (18:50 +0100)]
eina: only execute that code if HAVE_MALLOC_USABLE_SIZE is defined

thats why we check that ...

6 years agoCanvas image: fix endless call to 'load_error_get'
Daniel Hirt [Wed, 20 Dec 2017 14:40:23 +0000 (16:40 +0200)]
Canvas image: fix endless call to 'load_error_get'

Fixes a bug introduce with c8c4572d7005d19cf50f8c53bb7408606cf3ee40.
My guess is that the true intention was to query the Efl.File mixin
first, and the check the specific load_error.

Basically a call to 'efl_file_load_error_get' on an
Efl.Canvas.Image triggered this.

6 years agodocs: Update ecore_con eo files for grammar and readability
Andy Williams [Wed, 20 Dec 2017 17:30:29 +0000 (17:30 +0000)]
docs: Update ecore_con eo files for grammar and readability

Author: Nate Drake

6 years agodocs: Output correct signature for class method first parameter
Andy Williams [Wed, 20 Dec 2017 15:00:18 +0000 (15:00 +0000)]
docs: Output correct signature for class method first parameter

6 years agodocs: Note class scope for method listings
Andy Williams [Wed, 20 Dec 2017 14:33:54 +0000 (14:33 +0000)]
docs: Note class scope for method listings

6 years agodocs: Correct sig for eolian lua calls
Andy Williams [Wed, 20 Dec 2017 14:31:56 +0000 (14:31 +0000)]
docs: Correct sig for eolian lua calls

6 years agoelm - scroll manager - fix up momentum animator code to use real consts
Carsten Haitzler (Rasterman) [Wed, 20 Dec 2017 12:49:18 +0000 (21:49 +0900)]
elm - scroll manager - fix up momentum animator code to use real consts

use real constnants and remove useless vasriables as well as fix up
formatting... so we don't get compilers complaining about non-const
values etc.

@fix

6 years agoecore_con: bug workaround SO_REUSEADDR and EADDRINUSE from bind (fix)
Carsten Haitzler (Rasterman) [Wed, 20 Dec 2017 12:10:53 +0000 (21:10 +0900)]
ecore_con: bug workaround SO_REUSEADDR and EADDRINUSE from bind (fix)

what i'm seeing is this with local unix sockets:

1. server process not cleanly shut down (kill -9 for example).
2. run server process again and bind fails due to EADDRINUSE
3. we ARE doing setsockopt() with SO_REUSEADDR set to 1 ...

this just makes no sense because setsockopt() SHOULD allow use to
re-use... the previous efreetd process for example is gone. no such
process, yet socket is not re-usable. this should just not happen due
to SO_REUSEADDR, but it does. this has nasty consequences like efreetd
maybe never running because of stale sockets. this should never have
happened, but it does. odd. so a hacky workaround:

1. try bind.
2. if bind fails with EADDRINUSE and its a socket path AND
pd->unlink_before_bind is NOT set... then try a connect to the socket.
3. if connect succeeds then fail as normal (close socket and error on
bind'ing)
   if connect fails then we have a stale socket, so unlink it
forcibly. create the socket again and try bind again.

hacky but... fixes the core issue.

@fix

6 years agoelm build for osx - try another dotting of i's and crossing of t's
Carsten Haitzler (Rasterman) [Wed, 20 Dec 2017 09:54:14 +0000 (18:54 +0900)]
elm build for osx - try another dotting of i's and crossing of t's

try this and fix T6448 ...

6 years agoeo: Update grammar and readability
Andy Williams [Wed, 20 Dec 2017 09:52:31 +0000 (09:52 +0000)]
eo: Update grammar and readability

6 years agoEo docs: update for grammar and readability
Andy Williams [Wed, 20 Dec 2017 09:41:41 +0000 (09:41 +0000)]
Eo docs: update for grammar and readability

6 years agoosx build - try again
Carsten Haitzler (Rasterman) [Wed, 20 Dec 2017 09:04:05 +0000 (18:04 +0900)]
osx build - try again

try fix T6448 again

6 years agotry and fix osx build with symbols missing...
Carsten Haitzler (Rasterman) [Wed, 20 Dec 2017 08:25:11 +0000 (17:25 +0900)]
try and fix osx build with symbols missing...

try and fix T6448 last comment. not sure if it does...

6 years agoremove all specific including of elm headers inside out src tree
Carsten Haitzler (Rasterman) [Wed, 20 Dec 2017 00:29:50 +0000 (09:29 +0900)]
remove all specific including of elm headers inside out src tree

... other than Elementary.h after d6e3ce3df422751cb1c4524f1ea0b16ce897410 etc.

6 years agoefl_ui_scroll : fix scroll bar size visibility issue in efl_ui_list
SangHyeon Lee [Wed, 20 Dec 2017 06:25:32 +0000 (15:25 +0900)]
efl_ui_scroll : fix scroll bar size visibility issue in efl_ui_list

Summary :
mostly, bar-related event callback will be registered after
scroll manager creation, so in scroll manager constructor,
visibility_update cannot update their visiblity properly.

6 years agoelm: Fix duplicate EO API
Jean-Philippe Andre [Wed, 20 Dec 2017 06:23:23 +0000 (15:23 +0900)]
elm: Fix duplicate EO API

elm_interface_scrollable is used by legacy but isn't public API.

6 years agoElementary: fix makefile ignore efl_ui_theme edc's change
JinYong Park [Wed, 20 Dec 2017 06:17:58 +0000 (15:17 +0900)]
Elementary: fix makefile ignore efl_ui_theme edc's change

Summary:
When edc files in "data/elementary/themes/edc/efl" is changed,
but Makefile doesn't make new "data/elementary/themes/default.edj".
So if you want to check edc changes, delete default.edj files and do make again.

@fix

Test Plan:
1. edit edc file in "data/elementary/themes/edc/efl"
2. do "make"
3. check "data/elementary/themes/default.edj" is changed

Reviewers: jpeg, woohyun, cedric

Reviewed By: jpeg

Subscribers: taxi2se

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

6 years agoelm: apply new scroll interface in efl_ui_list
SangHyeon Lee [Wed, 20 Dec 2017 03:30:29 +0000 (12:30 +0900)]
elm: apply new scroll interface in efl_ui_list

Summary: Apply new scroll inteface in efl_ui_list.

Test Plan: tested by examples

Reviewers: jpeg, eagleeye

Subscribers: cedric

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

6 years agoloop: Fix loop_get search priority
Jean-Philippe Andre [Wed, 20 Dec 2017 02:02:59 +0000 (11:02 +0900)]
loop: Fix loop_get search priority

According to comments by @k-s & @raster.

See 784a5b56a3c798e5a8 this was intended to be a fallback, not the first
lookup indeed. Since this is an error case, let's print an ERR message
at least.

6 years agoscroller: Fix compilation on Windows
Jean-Philippe Andre [Wed, 20 Dec 2017 02:06:13 +0000 (11:06 +0900)]
scroller: Fix compilation on Windows

Thanks @vtorri for the report.
Fixes T6528

6 years agoexamples: Add C# buttons/popup example.
Lauro Moura [Wed, 13 Dec 2017 04:51:48 +0000 (01:51 -0300)]
examples: Add C# buttons/popup example.

6 years agoeina: fixup EAPI definition.
Cedric BAIL [Tue, 19 Dec 2017 17:54:45 +0000 (09:54 -0800)]
eina: fixup EAPI definition.

6 years agoupdate po files
Carsten Haitzler (Rasterman) [Tue, 19 Dec 2017 16:24:23 +0000 (01:24 +0900)]
update po files

6 years agoefl build... let's not break building against efl...
Carsten Haitzler (Rasterman) [Tue, 19 Dec 2017 16:23:55 +0000 (01:23 +0900)]
efl build... let's not break building against efl...

yet again headers messed up and building against efl is broken!

6 years agoeina: fix random segfaults when displaying BT
Jean Guyomarc'h [Tue, 19 Dec 2017 15:33:18 +0000 (16:33 +0100)]
eina: fix random segfaults when displaying BT

Under some circumstances, eina crashes when attempting to display the
backtrace, because dladdr() may yield a dli_fname that is NULL. This is
especially annoying in realease, when the backtrace is shown by default
when CRI/ERR are thrown.

@fix

6 years agoevas/elm: fix visibility of some symbols
Jean Guyomarc'h [Tue, 19 Dec 2017 13:11:44 +0000 (14:11 +0100)]
evas/elm: fix visibility of some symbols

Public symbols were defined internal to Evas/Elementary on macOS, making
the link of external modules unfeasible.

- EAPI was messed up by an invalid inclusion of evas_text_utils.h, making
  some symbols private instead of public.
- A similar issue was present in evas_font_draw.c, where the symbols
  were directly imported without the proper definition of EAPI.
- Elementary.h did include some eo-generated headers, but for windows
  only. It should not been restricted to windows, as it allows to export
  symbols to external modules.

Fixes T6448.

6 years agoevas: include missing header
Jean Guyomarc'h [Tue, 19 Dec 2017 13:10:53 +0000 (14:10 +0100)]
evas: include missing header

This fixes a compilation warning telling a function was used without
prior declaration.

6 years agowin: Show windows created by efl_add with a job
Jean-Philippe Andre [Tue, 19 Dec 2017 11:37:25 +0000 (20:37 +0900)]
win: Show windows created by efl_add with a job

This fixes efl_add(WIN) on wayland, using an internal API.
Test scenario:
  ELM_DISPLAY=wl elementary_test -to "Part Shadow"

6 years agoEldbus: add test suite for eldbus (eldbus_pending_data*)
Mykola Solyanko [Tue, 19 Dec 2017 05:41:32 +0000 (14:41 +0900)]
Eldbus: add test suite for eldbus (eldbus_pending_data*)

Summary:
add tests for next API:
eldbus_pending_data_set()
eldbus_pending_data_get()
eldbus_pending_data_del()

Reviewers: cedric, NikaWhite, myoungwoon, raster, artem.popov

Subscribers: jpeg

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

6 years agoEldbus: add test suite for eldbus (eldbus_pending_cancel*)
Mykola Solyanko [Tue, 19 Dec 2017 05:41:22 +0000 (14:41 +0900)]
Eldbus: add test suite for eldbus (eldbus_pending_cancel*)

Summary:
add tests for next API:
eldbus_pending_cancel()
eldbus_pending_destination_get()
eldbus_pending_interface_get()
eldbus_pending_method_get()
eldbus_pending_path_get()

Reviewers: cedric, NikaWhite, myoungwoon, raster, artem.popov

Subscribers: jpeg

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

6 years agoexamples: Fix compilation (cxx bg & table)
Jean-Philippe Andre [Tue, 19 Dec 2017 05:35:06 +0000 (14:35 +0900)]
examples: Fix compilation (cxx bg & table)

See 25136ddf8ccbf384b21d89a7ce3939c1d4db00a6
See 0f16a0671008a324d8e1b523fb16ce7b5c1acd6c

Note: This only fixes compilation, not runtime!

6 years agoscroll: Fix a warning (and probably the logic too)
Jean-Philippe Andre [Tue, 19 Dec 2017 05:23:14 +0000 (14:23 +0900)]
scroll: Fix a warning (and probably the logic too)

6 years agoeolian_cxx: Fix cxx build after evt changes
Lauro Moura [Tue, 19 Dec 2017 05:18:25 +0000 (14:18 +0900)]
eolian_cxx: Fix cxx build after evt changes

Summary: Examples and libeolian_cxx api changes

Reviewers: jpeg, felipealmeida

Subscribers: cedric

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

6 years agoefl_ui_spin_button: remove needless focus_set
Yeongjong Lee [Tue, 19 Dec 2017 05:17:39 +0000 (14:17 +0900)]
efl_ui_spin_button: remove needless focus_set

Summary:
because _entry_show_cb callback call focus_set function,
efl_ui_focus_manager_focus_set is unnecessary.
also, this fixes focus error message.

Test Plan:
1. elementary_test -to Efl.Ui.Spin.Button
2. click the entry.

Reviewers: CHAN, Jaehyun_Cho, bu5hm4n

Reviewed By: CHAN

Subscribers: cedric, jpeg

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

6 years agointerface : change efl_pack_grid and efl_ui_grid to efl_pack_table and efl_ui_table
SangHyeon Lee [Tue, 19 Dec 2017 05:13:58 +0000 (14:13 +0900)]
interface : change efl_pack_grid and efl_ui_grid to efl_pack_table and efl_ui_table

Summary:
Change name of 'grid' to 'table' for matching on common ui naming
and avoiding confusion with 'gengrid' and 'grid view'.
grid will be introduced as grid image view after.

Test Plan:
checked make & make install
checked make check - there are errors but not related with these changes.
checked make examples - there are errors in cxx but not related with these changes.
checked make discheck - failed
test in elementary_test with Efl.Ui.Table and Table_static.

Reviewers: raster, cedric, jpeg, felipealmeida

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

6 years agoecore: Shutdown ecore after running tests
Jean-Philippe Andre [Tue, 19 Dec 2017 04:45:02 +0000 (13:45 +0900)]
ecore: Shutdown ecore after running tests

Those test cases should verify that the threads have exited cleanly, and
then we can shutdown ecore.

CK_FORK=no ecore_suite passes

6 years agoecore: Properly shutdown pollers
Jean-Philippe Andre [Tue, 19 Dec 2017 04:44:33 +0000 (13:44 +0900)]
ecore: Properly shutdown pollers

6 years agoecore: Fix up some test cases
Jean-Philippe Andre [Tue, 19 Dec 2017 03:21:29 +0000 (12:21 +0900)]
ecore: Fix up some test cases

- Add missing ecore_shutdown
- Reinstate supposedly silly test case (see previous commits, the main
  loop object can in fact die cleanly).
- Disable really silly test cases (inner main loops aren't meant to
  work)

6 years agoefl: Reset ecore event types on init
Jean-Philippe Andre [Tue, 19 Dec 2017 02:14:37 +0000 (11:14 +0900)]
efl: Reset ecore event types on init

This fixes cycles of init/shutdown/init where ecore event types would
become invalid, since they are now stored in a dynamic array rather than
a statically stored array.

The risk here is that if a module of EFL tends to init/shutdown in a
"normal" scenario then the event type array will grow in a leaking
manner. This could be fixed by resetting those event ID's only when the
loop actually exits (EFL_EVENT_DEL on the main loop). I'm not using
EFL_EVENT_DEL in this patch as this would add too many event callbacks
to the main loop object, which may result in slightly slower event calls
to it, affecting the overall performance.

6 years agoscroller: Introducing Efl.Ui.Scroller
Wonki Kim [Mon, 18 Dec 2017 12:08:25 +0000 (21:08 +0900)]
scroller: Introducing Efl.Ui.Scroller

Summary:
scrollable widgets had a interface_scrollable as a mixin so that the
widgets had a 'is-a' relation with interface_scrollabe.  however, new
scroller concept don't have 'is-a' relationship, but 'has-a'
relationship.  scrollable widgets should have a scroll manager inside
them, then scroll manager handles event from user and api
implementations.  and also we cut the features such as paging because
there will be aka 'elm_pager'.

we are expecting that the new concept make us to maintain the scroller
easier.  please excuse for many unorganized code and logics. : (

[contained commit]
scrollable: add efl_ui_scroller example
scrollable: refactoring for behavior in case of multiple scroller
scrollable: remove repetitive scrollbar code.
scrollable: combine calculating bounce distance code.
scroll_manager: mouse up function refactoring
scroll_manager: mouse move function refactoring
scroll_manager: warp animator wip
scroll_manager: fix denominator value when calculating flicking behavior.
Fix to disconnect bounce animator once animation is done
gather duplicated animator drop logics
gather duplicated conditions
Rearrange prototypes and append comment
Add manipulate functions for animators
scroll_manager: change member_add function.
scroll_manger: apply mirroring logic
scroll_manager: apply scrollbar
apply API to scroller widget
scroll_manager: apply scroll event callback
Change logics for all about scroll animating
efl_ui_pan: add efl_ui_pan
scrollable:  change content_min_limit to match_content
scroll theme: apply overlapped scrollbar
+ many others!

Reviewers: akanad, woohyun, cedric, jpeg

Subscribers: jenkins, cedric, jpeg

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

Note by @jpeg:
Unfortunately this patch comes in a massive single blob, after too many
rebase operations. It has now come to a point where I think the API is
nice and it works as I'd expect.
Now I only wonder how applicable this will be for Efl.Ui.List. As we can
see Photocam (legacy and unified API) could be transformed to use this
new API.

6 years agoeina: Add missing eina_internal.h
Jean-Philippe Andre [Tue, 19 Dec 2017 01:18:43 +0000 (10:18 +0900)]
eina: Add missing eina_internal.h

6 years agoeina: make __eina_promise_cancel_all an internal only function.
Cedric BAIL [Tue, 19 Dec 2017 00:17:04 +0000 (16:17 -0800)]
eina: make __eina_promise_cancel_all an internal only function.

6 years agoecore: make message_process and message_exists internal function.
Cedric BAIL [Tue, 19 Dec 2017 00:10:11 +0000 (16:10 -0800)]
ecore: make message_process and message_exists internal function.

6 years agoeolian: fix use-after-free in eo_parser
Daniel Kolesa [Mon, 18 Dec 2017 23:20:40 +0000 (00:20 +0100)]
eolian: fix use-after-free in eo_parser

Thanks @netstar for finding this.

Fixes T6523.

6 years agoefl_ui_image: apply load_size when API is called
Sungtaek Hong [Mon, 18 Dec 2017 08:33:49 +0000 (17:33 +0900)]
efl_ui_image: apply load_size when API is called

Summary:
when  efl_image_load_size_set() is called, image only sets
internal variable and not apply to the internal image.
elm_image_prescale_set() is also affected.

Test Plan: Run elementary_test->Image Prescale

Reviewers: jpeg, eunue, woohyun

Subscribers: cedric

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

6 years agoefl_ui_bg_widget: replace internal image to efl_ui_image
Sungtaek Hong [Tue, 12 Dec 2017 11:05:55 +0000 (20:05 +0900)]
efl_ui_bg_widget: replace internal image to efl_ui_image

6 years agoefl_ui_bg: add Efl.Ui.Bg interface
Sungtaek Hong [Mon, 18 Dec 2017 04:55:25 +0000 (13:55 +0900)]
efl_ui_bg: add Efl.Ui.Bg interface

Summary:
- Previous class efl_ui_bg moved to efl_ui_bg_widget.
- Scale_type moved to efl_image from efl_ui_image.
- Previous enum Efl_Ui_Image_Scale_Type moved to Efl_Image_Scale_Type.

Test Plan:
Run elementary_test
1.Image Scale Type
2.Efl.Ui.Bg
3.Efl.Ui.Win
4.Part Background

Reviewers: jpeg, woohyun, cedric

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

6 years agoecore: Avoid access to invalid eo id
Jean-Philippe Andre [Mon, 18 Dec 2017 10:04:56 +0000 (19:04 +0900)]
ecore: Avoid access to invalid eo id

Not a fan of the solution, as I think some of the logic handling those
futures is a bit broken. I'm not 100% sure about this patch. But this
improves make check with CK_FORK=no in elm_suite.

6 years agoecore: Simplify code
Jean-Philippe Andre [Mon, 18 Dec 2017 04:35:32 +0000 (13:35 +0900)]
ecore: Simplify code

6 years agoecore_con: Make sure the proxy helper is valid
Jean-Philippe Andre [Mon, 18 Dec 2017 03:25:59 +0000 (12:25 +0900)]
ecore_con: Make sure the proxy helper is valid

If the http proxy helper gets deleted at shutdown rather than because
the process actually exited, the object pointer becomes invalid. This
patch tries to avoid a situation where the object is not valid.

6 years agoecore_con: Properly shutdown and unregister log domain
Jean-Philippe Andre [Mon, 18 Dec 2017 03:04:05 +0000 (12:04 +0900)]
ecore_con: Properly shutdown and unregister log domain

I believe the comment saying we should not unregister the log domain is
invalid as we try to flush the pending ecore events.

6 years agoecore_con: Always get the loop on init
Jean-Philippe Andre [Mon, 18 Dec 2017 03:02:45 +0000 (12:02 +0900)]
ecore_con: Always get the loop on init

In case of init/shutdown/init cycles, the loop EO ID has changed, so it
must be fetched again.

6 years agoecore_con: Avoid safety errors when closing http
Jean-Philippe Andre [Mon, 18 Dec 2017 02:59:57 +0000 (11:59 +0900)]
ecore_con: Avoid safety errors when closing http

When setting EOS on the dialoer, it's possible that it will also get
automatically closed (by a callback). This results in safety check error
messages, while everything is fine (at least I believe it is).

6 years agoloop: Try harder to find the main loop
Jean-Philippe Andre [Mon, 18 Dec 2017 02:58:43 +0000 (11:58 +0900)]
loop: Try harder to find the main loop

If the object has no parent or anything else goes a bit wrong,
efl_loop_get() may fail to return the loop object. It's a bit ridiculous
when we're in the main loop as we know which loop object was requested.

This avoids returning NULL.

6 years agoecore: Avoid double free with promises
Jean-Philippe Andre [Fri, 15 Dec 2017 10:09:02 +0000 (19:09 +0900)]
ecore: Avoid double free with promises

6 years agoecore: Fix legacy message handlers destruction
Jean-Philippe Andre [Fri, 15 Dec 2017 10:08:59 +0000 (19:08 +0900)]
ecore: Fix legacy message handlers destruction

6 years agoeo/eina: Add HACK to avoid calls to EO after shutdown
Jean-Philippe Andre [Fri, 15 Dec 2017 08:44:28 +0000 (17:44 +0900)]
eo/eina: Add HACK to avoid calls to EO after shutdown

Efl.Future is an EO object which means even cancelling Efl.Future
objects requires EO. So this should be done before shutting down EO,
otherwise everything fails badly.

I believe Efl.Future is going to disappear soon, but the problem will
remain: if any promise/future uses EO or anything else outside of Eina
(so, basically anything) then it needs to be canceled before shutting
down the above layers. This is the same situation as with ecore events,
for which we've introduced ecore_event_type_flush.

Ping @cedric

6 years agoecore: Fix clean shutdown
Jean-Philippe Andre [Fri, 15 Dec 2017 08:42:08 +0000 (17:42 +0900)]
ecore: Fix clean shutdown

There is no good reason to not shutdown a library properly. The loop
object can easily be deleted safely, if it is properly initialized. The
del event happens before destruction so it is too early to set the
singleton variable to NULL. Do that as late as possible and all calls to
efl_loop_main_get() will work as expected.

The issue with fd's was simply that they were not initialized to -1
(timer_fd), as some #ifdef statements have disappeared.

6 years agoecore: Fix warning with enum
Jean-Philippe Andre [Fri, 15 Dec 2017 08:20:20 +0000 (17:20 +0900)]
ecore: Fix warning with enum

6 years agoentry: Add autofill hint 16/166416/2
Jihoon Kim [Wed, 10 Jan 2018 05:58:48 +0000 (14:58 +0900)]
entry: Add autofill hint

Change-Id: If722f8c2953b56e3d0ef2c2f24afca3c5d588847
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
6 years ago[evas_sw_backend] 1. evas sw tbm backend implement 97/166397/2
Joogab Yun [Thu, 28 Dec 2017 07:06:11 +0000 (16:06 +0900)]
[evas_sw_backend] 1. evas sw tbm backend implement
                  2. wayland_tbm_client_init / deinit in ecore_evas

Change-Id: Ia605be8f0cac12b1873d82392d894b89f88543b1

6 years agophotocam: fix late calculation when object is resized or moved 99/166299/2
WooHyun Jung [Tue, 9 Jan 2018 08:21:46 +0000 (17:21 +0900)]
photocam: fix late calculation when object is resized or moved

This commit is merged from Tizen 2.4

@tizen_fix

Change-Id: Icb86010cfcf5a152cdbb1e0bcca14babb993b924

6 years agogenlist: apply tizen_only in upstream genlist 02/165802/3
SangHyeon Lee [Thu, 4 Jan 2018 05:53:07 +0000 (14:53 +0900)]
genlist: apply tizen_only in upstream genlist

Change-Id: I287e68c10097f65c8f55fb1bef14feb97f03b5a2
Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
6 years agoedje_recc: set edje_recc's own absolue path 88/166288/2
WooHyun Jung [Mon, 4 Jul 2016 00:53:23 +0000 (09:53 +0900)]
edje_recc: set edje_recc's own absolue path

Change-Id: I129f2005d01449171d918e4aeea38ee8fa17cdea

6 years agoedje/elementary: apply Tizen's color_class features 70/166170/2
Youngbok Shin [Mon, 8 Jan 2018 11:02:32 +0000 (20:02 +0900)]
edje/elementary: apply Tizen's color_class features

It includes the following features.
- Apply a color class to a Textblock's style.
- Add/Apply color class parent which propagates its color class to the children.

@tizen_feature

Change-Id: I7f29f0bb58ee6607e81b938677d4518c8ff19234

6 years agoecore_wl2: maintain a device list for each window 68/166168/5
JengHyun Kang [Mon, 8 Jan 2018 10:52:47 +0000 (19:52 +0900)]
ecore_wl2: maintain a device list for each window

Change-Id: I6eeacaffae799d41cf0e9fa556290e116624ee84

6 years agoecore_wl2: move keygrab's structrures private to public 73/166173/4
JengHyun Kang [Mon, 8 Jan 2018 11:32:34 +0000 (20:32 +0900)]
ecore_wl2: move keygrab's structrures private to public

Change-Id: I12c87bc2b9f1a09056a58acb8a4f38ca8eb1fb50

6 years agoecore_imf: Change @since in transaction event callback 06/166206/1
Jihoon Kim [Tue, 9 Jan 2018 01:23:15 +0000 (10:23 +0900)]
ecore_imf: Change @since in transaction event callback

Change-Id: I4e83b8bce7328ddab29507ebf3441a9f8b73f8d8
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
6 years agoecore_imf: Add transaction start and end event callback 97/166197/2
Jihoon Kim [Mon, 8 Jan 2018 23:13:47 +0000 (08:13 +0900)]
ecore_imf: Add transaction start and end event callback

Change-Id: I091b4e291b821ee5b6cc180d98024e251d4bcd03
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
6 years agoecore_wl2: add keygrab list set/get 83/166183/2
Hosang Kim [Mon, 8 Jan 2018 13:05:44 +0000 (22:05 +0900)]
ecore_wl2: add keygrab list set/get

Change-Id: I2ff900dcb2f37d406246ef5b781660670da50f48

6 years agoecore_wl2: enable cplusplus define 95/166095/2
Wonsik, Jung [Mon, 8 Jan 2018 00:44:11 +0000 (09:44 +0900)]
ecore_wl2: enable cplusplus define

enable cplusplus define

Change-Id: I55289d7794996efd25c43430f6612998c515ff82

6 years ago efl_ui_win: disable pointer window in wayland backend.
Jiyoun Park [Sat, 6 Jan 2018 06:41:56 +0000 (15:41 +0900)]
   efl_ui_win: disable pointer window in wayland backend.

   Currently, if efl_ui_win create two windows, device info was changed
   during the evas event creation.
   to get the binary which touch work well, we disable pointer window feature temporarily.
   this patch should be reverted.

6 years agoedje: rename PLUGIN macro to EDJE_TIZEN_PLUGIN
Youngbok Shin [Mon, 8 Jan 2018 04:56:48 +0000 (13:56 +0900)]
edje: rename PLUGIN macro to EDJE_TIZEN_PLUGIN

The PLUGIN can be used in other libraries.

@tizen_fix

Change-Id: I99691dc15a6723213c8ec0e173e2b334b46c992d

6 years ago efl_ui_win: emit the edje signal for non basic window
Jiyoun Park [Fri, 5 Jan 2018 03:33:23 +0000 (12:33 +0900)]
   efl_ui_win: emit the edje signal for non basic window

   wayland server cannot decide the client size if client window is not basic window.
   so client shoud set the size, but elm theme set the content's fixed value to (1,1).
   non basic window need to set the content's fixed value to (0, 0).

6 years ago ecore_wl2_surface: fix zero size buffer creation
Jiyoun Park [Fri, 5 Jan 2018 03:24:45 +0000 (12:24 +0900)]
   ecore_wl2_surface: fix zero size buffer creation

   opensource changed the shm surface code not to create shm buffer at init time.
   Becuase of this client can request to the server using the zerosize buffer,
   tizen buffer driver cannot allow zerosize.

6 years ago efl_ui_win:Use win_no_border config temporarily.
Jiyoun Park [Thu, 4 Jan 2018 07:07:09 +0000 (16:07 +0900)]
   efl_ui_win:Use win_no_border config temporarily.

   opensource efl_ui_win use elm/border/base/default.
   in tizen, we need to change theme related with title.

6 years agoReuse ecore_imf_context when theme is changed 37/159637/3
Jihoon Kim [Sat, 31 Jan 2015 12:17:16 +0000 (21:17 +0900)]
Reuse ecore_imf_context when theme is changed

Change-Id: Ie0374f9e3839a5da1527a0eab381f4d4dc632c9c

6 years agoedje: don't run legacy calculation for Textblock parts
Youngbok Shin [Wed, 3 Jan 2018 13:32:20 +0000 (22:32 +0900)]
edje: don't run legacy calculation for Textblock parts

Tizen will ignore legacy calculation logics for Textblock parts.

@tizen_fix

Change-Id: I886fc39a2385f1153e76f124497b2fa579f65bab

6 years agoedje: add missing initialization code for Tizen only feature - valign 43/165743/1
Youngbok Shin [Wed, 3 Jan 2018 13:25:39 +0000 (22:25 +0900)]
edje: add missing initialization code for Tizen only feature - valign

@tizen_fix

Change-Id: Ibada49e943b076963594c510bfe13d5a44aa541b