platform/upstream/efl.git
8 years agoeina: fix typos in doxygen
Jean Guyomarc'h [Sun, 6 Mar 2016 11:35:13 +0000 (12:35 +0100)]
eina: fix typos in doxygen

8 years agoecore: better resources use in the glib integration
Jean Guyomarc'h [Sat, 5 Mar 2016 00:00:58 +0000 (16:00 -0800)]
ecore: better resources use in the glib integration

Summary:
When glib support is enabled (HAVE_GLIB), _ecore_glib_init()
was always reserving resources. However, its counterpart may not
be called when:
- glib is not always integrated and
- when a user didn't explicitly required the integration.

Calling _ecore_glib_init() within the request code will cause the
resources to be reserved only when the integration with glib is
required and furthermore guarantees that resources always have a
chance to be released.

Reviewers: cedric, raster

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoEvas: fix camera node adding to scene
perepelits.m [Fri, 4 Mar 2016 23:58:29 +0000 (15:58 -0800)]
Evas: fix camera node adding to scene

Summary: While making new changes after rewieving D3710 we met this bug again, removing eo_unref is the best way to fix it because _eo_ref_replace from D3021 makes nothing special.

Reviewers: cedric, raster, Hermet

Subscribers: jpeg, artem.popov

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoevas: fix preload thread deadlock issue
jiin.moon [Fri, 4 Mar 2016 23:57:50 +0000 (15:57 -0800)]
evas: fix preload thread deadlock issue

Summary: Wrong condition makes deadlock issue.

Reviewers: jpeg, jypark

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoedje: return default description depends on RTL when description doesn't exist
Soohye Shin [Fri, 4 Mar 2016 23:53:53 +0000 (15:53 -0800)]
edje: return default description depends on RTL when description doesn't exist

Summary:
If not found edje part description, edje just set default description in spite of RTL status.
This adds to call function for getting the correct description as RTL status.

Reviewers: raster, Hermet, cedric

Subscribers: minkyu, sju27, cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoedje_embryo: add box attributes support to set_state_val()
Jee-Yong Um [Fri, 4 Mar 2016 23:53:08 +0000 (15:53 -0800)]
edje_embryo: add box attributes support to set_state_val()

Summary: Add box attributes support to set_state_val().

Reviewers: raster, cedric

Reviewed By: cedric

Subscribers: jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agotests: disable loading of the scim module as this can causes hangs of the tests
Stefan Schmidt [Fri, 4 Mar 2016 14:36:01 +0000 (15:36 +0100)]
tests: disable loading of the scim module as this can causes hangs of the tests

With scim installed we can run into hangs of the test suite when the ecore_imf
scim module tries to connect to the scim on the system. This has happened again
and again on different installations and made the test suite really fragile.

We would need to make sure that scim is configured on the host before we could
run this test. It might be a candidate for skipped tests where we check if the
env has all we need to run the test and if not skip it. We don not have all the
needed pieces in place for this so the best we can do to make the test runs less
fragile is disabling scim module loading for now.

8 years agoEo tests: Add tests for null (invalid) array callbacks.
Tom Hacohen [Fri, 4 Mar 2016 14:29:20 +0000 (14:29 +0000)]
Eo tests: Add tests for null (invalid) array callbacks.

8 years agoEo: unmark Eo_Class as deprecated.
Tom Hacohen [Fri, 4 Mar 2016 14:25:28 +0000 (14:25 +0000)]
Eo: unmark Eo_Class as deprecated.

It's not deprecated, it's actually a useful alias.

8 years agoEo: Remove more deprecated functions.
Tom Hacohen [Fri, 4 Mar 2016 14:24:20 +0000 (14:24 +0000)]
Eo: Remove more deprecated functions.

8 years agoEo: remove the long deprecated eo_data_get.
Tom Hacohen [Fri, 4 Mar 2016 14:23:02 +0000 (14:23 +0000)]
Eo: remove the long deprecated eo_data_get.

It has been deprecated for a while, and now it's time to actually stop
using it.

8 years agoEo tests: Test more cases with legacy events.
Tom Hacohen [Fri, 4 Mar 2016 14:21:08 +0000 (14:21 +0000)]
Eo tests: Test more cases with legacy events.

8 years agoEo legacy events: remove pointless string copies.
Tom Hacohen [Fri, 4 Mar 2016 14:17:55 +0000 (14:17 +0000)]
Eo legacy events: remove pointless string copies.

This was there because the old code modified the string. It is no
longer needed now that we just stringshare it.

8 years agoEo tests: Increase coverage for children iterator tests.
Tom Hacohen [Fri, 4 Mar 2016 14:16:30 +0000 (14:16 +0000)]
Eo tests: Increase coverage for children iterator tests.

8 years agoEo: Remove useless safety checks.
Tom Hacohen [Fri, 4 Mar 2016 14:05:57 +0000 (14:05 +0000)]
Eo: Remove useless safety checks.

Those can never happen, ever.

8 years agoEo tests: add more eo_data_get tests.
Tom Hacohen [Fri, 4 Mar 2016 14:03:41 +0000 (14:03 +0000)]
Eo tests: add more eo_data_get tests.

8 years agoEo: fix oversight for key_data
Daniel Zaoui [Fri, 4 Mar 2016 12:01:48 +0000 (14:01 +0200)]
Eo: fix oversight for key_data

8 years agoEo: set object as const for key_data_get
Daniel Zaoui [Fri, 4 Mar 2016 11:48:56 +0000 (13:48 +0200)]
Eo: set object as const for key_data_get

Due to Eo4 changes, const is now important for this function.

8 years agobuild: finally enable branch coverage in our lcov-check target
Stefan Schmidt [Fri, 4 Mar 2016 11:25:19 +0000 (12:25 +0100)]
build: finally enable branch coverage in our lcov-check target

This has been a long standing issue and I finally figured out the details to
get this working. Since we started with coverage there always have been some
problems to get branch coverage work (problems with older gcc versions, lcov
not taking them into account, etc)
The last detail that made me go nuts was that in my lcov version (1.10) there
is a bug which leads to geninfo not applying the config file and thus not
enabling the branch coverage like I defined in the config. I added the
--rc option to work around this case.

In my local run I get this now from lcov-check:
Overall coverage rate:
  lines......: 35.5% (65814 of 185169 lines)
  functions..: 44.6% (7661 of 17195 functions)
  branches...: 22.7% (31492 of 138942 branches)

So we have 22.7% branch coverage right now.

The vivid followers of my QA mails will also see the difference in numbers for
line and function coverage if one comapres my local results and the one on
Jenkins. This is another long standing issue and I need to figure out these
details next. :)

8 years agoeina: rely on GNU make to find file at their correct location.
Cedric Bail [Fri, 4 Mar 2016 05:09:29 +0000 (21:09 -0800)]
eina: rely on GNU make to find file at their correct location.

8 years agoEo: Fix typo of SUPER_TAG_SHIFT.
Jaehyun Cho [Fri, 4 Mar 2016 04:49:38 +0000 (13:49 +0900)]
Eo: Fix typo of SUPER_TAG_SHIFT.

This commit fixes commit fc88037977dcc39dfd6d817c522cce01f5bfa024

8 years agoeina: reintroduce additional support for eina sub directory compilation.
Cedric Bail [Thu, 3 Mar 2016 23:09:54 +0000 (15:09 -0800)]
eina: reintroduce additional support for eina sub directory compilation.

This is still experimental and quite hacky. Let me know if you face issue.
It should just work with make -C src/lib/eina normally...

8 years agoeina: split Makefile with files/headers in preparation for additional per sub directo...
Cedric Bail [Thu, 3 Mar 2016 23:02:03 +0000 (15:02 -0800)]
eina: split Makefile with files/headers in preparation for additional per sub directory compilation

8 years agoeolian-cxx: Fix Eolian C++ constructing methods with new eo_add
Vitor Sousa [Thu, 3 Mar 2016 18:10:13 +0000 (15:10 -0300)]
eolian-cxx: Fix Eolian C++ constructing methods with new eo_add

Also fix Eolian C++ examples using the new "eo_super".

8 years agoeolian-cxx: Partial fix for generation without eo_do
Felipe Magno de Almeida [Wed, 2 Mar 2016 14:32:16 +0000 (11:32 -0300)]
eolian-cxx: Partial fix for generation without eo_do

8 years agoeolian: new type system API
Daniel Kolesa [Thu, 3 Mar 2016 19:01:02 +0000 (19:01 +0000)]
eolian: new type system API

The Eolian type system API has been overhauled to properly separate declarations
(i.e. struct/enum/alias declarations) and usage. This should simplify writing
generators (as it makes it clear what is what) as well as make it easier to
maintain.

@feature

8 years agoeolian_cxx: Fix C++ compilation with new Eolian_Type_Type values
Vitor Sousa [Tue, 1 Mar 2016 18:20:06 +0000 (15:20 -0300)]
eolian_cxx: Fix C++ compilation with new Eolian_Type_Type values

8 years agoeolian: type documentation and other cleanups
Daniel Kolesa [Tue, 1 Mar 2016 15:59:46 +0000 (15:59 +0000)]
eolian: type documentation and other cleanups

8 years agoeolian: completely clean up the type system
Daniel Kolesa [Tue, 1 Mar 2016 15:37:57 +0000 (15:37 +0000)]
eolian: completely clean up the type system

8 years agoeolian: clean up some temporary hashes
Daniel Kolesa [Tue, 1 Mar 2016 15:13:12 +0000 (15:13 +0000)]
eolian: clean up some temporary hashes

8 years agoeolian: separate type_to_str for decls
Daniel Kolesa [Tue, 1 Mar 2016 14:55:10 +0000 (14:55 +0000)]
eolian: separate type_to_str for decls

8 years agoeolian: remove database_type_print (unused)
Daniel Kolesa [Tue, 1 Mar 2016 13:44:43 +0000 (13:44 +0000)]
eolian: remove database_type_print (unused)

8 years agoeolian: remove most of the old type APIs
Daniel Kolesa [Tue, 1 Mar 2016 13:40:24 +0000 (13:40 +0000)]
eolian: remove most of the old type APIs

8 years agoeolian: more old type api removals
Daniel Kolesa [Fri, 19 Feb 2016 17:26:27 +0000 (17:26 +0000)]
eolian: more old type api removals

8 years agoeolian: remove retrieval funcs for type-style enums/aliases/structs
Daniel Kolesa [Fri, 19 Feb 2016 17:20:08 +0000 (17:20 +0000)]
eolian: remove retrieval funcs for type-style enums/aliases/structs

8 years agoelua: update eolian bindings to new typedecl api
Daniel Kolesa [Fri, 19 Feb 2016 17:09:34 +0000 (17:09 +0000)]
elua: update eolian bindings to new typedecl api

8 years agoeolian: initial conversion of C gen and tests to new type APIs
Daniel Kolesa [Fri, 19 Feb 2016 13:18:36 +0000 (13:18 +0000)]
eolian: initial conversion of C gen and tests to new type APIs

8 years agoeolian: add api to deal with typedecl free funcs
Daniel Kolesa [Thu, 11 Feb 2016 15:34:26 +0000 (15:34 +0000)]
eolian: add api to deal with typedecl free funcs

8 years agoeolian: add some missing typedecl APIs
Daniel Kolesa [Thu, 11 Feb 2016 15:32:02 +0000 (15:32 +0000)]
eolian: add some missing typedecl APIs

8 years agoeolian: add matching APIs to get typedecls by file
Daniel Kolesa [Thu, 11 Feb 2016 15:21:12 +0000 (15:21 +0000)]
eolian: add matching APIs to get typedecls by file

8 years agoeolian: add wrappers for most of typedecl APIs
Daniel Kolesa [Tue, 26 Jan 2016 15:28:41 +0000 (15:28 +0000)]
eolian: add wrappers for most of typedecl APIs

8 years agoeolian: remove unneeded hashes
Daniel Kolesa [Wed, 16 Dec 2015 14:37:57 +0000 (14:37 +0000)]
eolian: remove unneeded hashes

8 years agoeolian: actually generate typedecls as necessary
Daniel Kolesa [Wed, 16 Dec 2015 14:36:00 +0000 (14:36 +0000)]
eolian: actually generate typedecls as necessary

8 years agoeolian: free the hashes (prevent leaks)
Daniel Kolesa [Tue, 15 Dec 2015 16:06:22 +0000 (16:06 +0000)]
eolian: free the hashes (prevent leaks)

8 years agoeolian: add typedecl delete func and init hashes correctly
Daniel Kolesa [Tue, 15 Dec 2015 16:01:02 +0000 (16:01 +0000)]
eolian: add typedecl delete func and init hashes correctly

8 years agoeolian: rename typedef to typedecl to clear name confusion
Daniel Kolesa [Mon, 14 Dec 2015 15:52:30 +0000 (15:52 +0000)]
eolian: rename typedef to typedecl to clear name confusion

8 years agoeolian: add a structure + hashes representing type decls
Daniel Kolesa [Mon, 14 Dec 2015 15:48:29 +0000 (15:48 +0000)]
eolian: add a structure + hashes representing type decls

8 years agoeolian: always define the first enum value for consistency
Daniel Kolesa [Thu, 10 Dec 2015 13:09:28 +0000 (13:09 +0000)]
eolian: always define the first enum value for consistency

8 years agoeolian: add typedef enumeration for type definitions
Daniel Kolesa [Thu, 10 Dec 2015 13:08:34 +0000 (13:08 +0000)]
eolian: add typedef enumeration for type definitions

8 years agoecore-input: Fix spelling errors in comments
Derek Foreman [Thu, 3 Mar 2016 16:24:37 +0000 (11:24 -0500)]
ecore-input: Fix spelling errors in comments

This small patch just fixes up some spelling errors in comments. No
functional changes.

Reviewers: zmike, devilhorns

Reviewed By: devilhorns

Subscribers: cedric, jpeg

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

8 years agoFix more wrong migration to Eo4.
Tom Hacohen [Thu, 3 Mar 2016 12:58:24 +0000 (12:58 +0000)]
Fix more wrong migration to Eo4.

The if wasn't using {} so one of the statements was out of the scope
of the condition.
There was some misindented code.

8 years agoEdje calc: Fix wrong migration to Eo4.
Tom Hacohen [Thu, 3 Mar 2016 12:23:04 +0000 (12:23 +0000)]
Edje calc: Fix wrong migration to Eo4.

The if wasn't using {} so one of the statements was executed
unconditionally.

8 years agoEo examples: remove another reference to the eo examples.
Tom Hacohen [Thu, 3 Mar 2016 11:50:25 +0000 (11:50 +0000)]
Eo examples: remove another reference to the eo examples.

Thanks to _ami_ for reporting.

8 years agoDoc: Fix compilation after massive eo_do patch
Jean-Philippe Andre [Thu, 3 Mar 2016 11:21:17 +0000 (20:21 +0900)]
Doc: Fix compilation after massive eo_do patch

8 years agoEo: Migrate to the new syntax (Eo4) and adjust the EFL
Tom Hacohen [Thu, 3 Mar 2016 10:05:38 +0000 (10:05 +0000)]
Eo: Migrate to the new syntax (Eo4) and adjust the EFL

This is a merge commit for all of the relevant changes.

The syntax is described in: https://phab.enlightenment.org/w/eo/

Summary:
eo_do(obj, a_set(1)) -> a_set(obj, 1)
eo_do_super(obj, CLASS, a_set(1)) -> a_set(eo_super(obj, CLASS), 1)

eo_do_*_ret() set of functions are no longer needed.

This is the first step, the next step would be to also fix up eo_add()
which currently still uses the old syntax and is not 100% portable.

8 years agoManually fix extra eo_do calls that were added after I migrated
Tom Hacohen [Thu, 3 Mar 2016 10:00:26 +0000 (10:00 +0000)]
Manually fix extra eo_do calls that were added after I migrated

8 years agoExamples: Remove eo examples.
Tom Hacohen [Wed, 2 Mar 2016 16:11:35 +0000 (16:11 +0000)]
Examples: Remove eo examples.

Those were always bad, inaccurate and outdated, and are not really needed
because you should be using Eolian, and not Eo directly.

8 years agoFix migration script mistakes and compilation warnings.
Tom Hacohen [Wed, 2 Mar 2016 14:42:46 +0000 (14:42 +0000)]
Fix migration script mistakes and compilation warnings.

Mostly unused vars following the removal of eo_do_ret().
However, there are some cases where the migration script got some things
wrong, and I had to manually fix them.

8 years agoEo tests: Update tests according to the new syntax
Tom Hacohen [Tue, 1 Mar 2016 19:06:05 +0000 (19:06 +0000)]
Eo tests: Update tests according to the new syntax

These tests don't use eolian, but are plain Eo, so they need manual
updating.

8 years agoAutomatic migration to Eo4.
Tom Hacohen [Tue, 1 Mar 2016 18:06:28 +0000 (18:06 +0000)]
Automatic migration to Eo4.

I just ran my script (email to follow) to migrate all of the EFL
automatically. This commit is *only* the automatic conversion, so it can
be easily reverted and re-run.

8 years agoSome automatic migration and some manual adjustments to calc and text.
Tom Hacohen [Tue, 1 Mar 2016 18:02:49 +0000 (18:02 +0000)]
Some automatic migration and some manual adjustments to calc and text.

These file needed some manual adjustments in addition to the automatic
migration, that's why these are separate from the previous and next
commits, so I can easily know there are additional changes to these, and
it wasn't just the script.

8 years agoManually semi-migrate files in preparation for the script
Tom Hacohen [Tue, 1 Mar 2016 14:47:40 +0000 (14:47 +0000)]
Manually semi-migrate files in preparation for the script

The migration scripts breaks with some weird cases, here I manually
migrated some parts, and just removed the eo_do from others without
actually migrating (so I could deal with that later).

8 years agoEo: Migrate to the new syntax (Eo 4).
Tom Hacohen [Mon, 9 Nov 2015 11:45:04 +0000 (11:45 +0000)]
Eo: Migrate to the new syntax (Eo 4).

The syntax is described in: https://phab.enlightenment.org/w/eo/

Summary:
eo_do(obj, a_set(1)) -> a_set(obj, 1)
eo_do_super(obj, CLASS, a_set(1)) -> a_set(eo_super(obj, CLASS), 1)

eo_do_*_ret() set of functions are no longer needed.

This is the first step, the next step would be to also fix up eo_add()
which currently still uses the old syntax and is not 100% portable.

@feature

8 years agoeolian generator: @class methods take const object
Daniel Kolesa [Wed, 2 Mar 2016 14:35:02 +0000 (14:35 +0000)]
eolian generator: @class methods take const object

8 years agoeolian: fix generation tests
Daniel Kolesa [Wed, 2 Mar 2016 13:50:19 +0000 (13:50 +0000)]
eolian: fix generation tests

8 years agoeolian: generate correct const first param on methods where applicable
Daniel Kolesa [Wed, 2 Mar 2016 13:11:14 +0000 (13:11 +0000)]
eolian: generate correct const first param on methods where applicable

8 years agoeolian generator: use new call syntax
Daniel Kolesa [Tue, 1 Mar 2016 14:13:16 +0000 (14:13 +0000)]
eolian generator: use new call syntax

8 years agoeolian generator: add obj as first param to header method prototypes
Daniel Kolesa [Tue, 1 Mar 2016 11:38:17 +0000 (11:38 +0000)]
eolian generator: add obj as first param to header method prototypes

8 years agoecore_cocoa: add function attributes
Jean Guyomarc'h [Fri, 22 Jan 2016 20:08:40 +0000 (21:08 +0100)]
ecore_cocoa: add function attributes

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoautotools: fix code coverage on OSX
Jean Guyomarc'h [Fri, 22 Jan 2016 20:06:35 +0000 (21:06 +0100)]
autotools: fix code coverage on OSX

OSX uses clang as a default compiler instead of gcc.
Gcov does not exist for clang, but clang has an alternative which
requires additional compilier and linker flags.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_cocoa: add missing documentation
Jean Guyomarc'h [Wed, 6 Jan 2016 22:10:29 +0000 (23:10 +0100)]
ecore_cocoa: add missing documentation

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_cocoa: move Ecore_Cocoa_Cursor.h in Ecore_Cocoa.h
Jean Guyomarc'h [Wed, 6 Jan 2016 22:04:33 +0000 (23:04 +0100)]
ecore_cocoa: move Ecore_Cocoa_Cursor.h in Ecore_Cocoa.h

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_cocoa: full documentation of Ecore_Cocoa.h
Jean Guyomarc'h [Wed, 6 Jan 2016 21:54:46 +0000 (22:54 +0100)]
ecore_cocoa: full documentation of Ecore_Cocoa.h

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_cocoa: remove Ecore_Cocoa_Event_Window
Jean Guyomarc'h [Wed, 6 Jan 2016 21:13:42 +0000 (22:13 +0100)]
ecore_cocoa: remove Ecore_Cocoa_Event_Window

Create specific structures for each event:
- Ecore_Cocoa_Event_Window_Focused
- Ecore_Cocoa_Event_Window_Unfocused
- Ecore_Cocoa_Event_Window_Destroy

They are currently hold the same data, but this will allow not to break
the event protocol when future extensions will be needed.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_cocoa: rename width and height parameters
Jean Guyomarc'h [Wed, 6 Jan 2016 21:01:41 +0000 (22:01 +0100)]
ecore_cocoa: rename width and height parameters

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_cocoa: better naming of events
Jean Guyomarc'h [Wed, 6 Jan 2016 20:56:09 +0000 (21:56 +0100)]
ecore_cocoa: better naming of events

Lost and got focused have been renamed FOCUSED and UNFOCUSED to mirror
the focus API in Elementary.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_cocoa: replace Ecore_Cocoa_Window_Id by Ecore_Cocoa_Object
Jean Guyomarc'h [Wed, 6 Jan 2016 20:38:10 +0000 (21:38 +0100)]
ecore_cocoa: replace Ecore_Cocoa_Window_Id by Ecore_Cocoa_Object

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_cocoa: unify API with Ecore_Evas
Jean Guyomarc'h [Tue, 5 Jan 2016 23:16:16 +0000 (00:16 +0100)]
ecore_cocoa: unify API with Ecore_Evas

- Sizes are signed integers
- Width is named w
- Height is named h

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_cocoa: introduce Ecore_Cocoa_Object
Jean Guyomarc'h [Tue, 5 Jan 2016 23:03:57 +0000 (00:03 +0100)]
ecore_cocoa: introduce Ecore_Cocoa_Object

This type is used as a bridge between objective-c objects (which are
ALWAYS pointed to) and the C interface.
Ecore_Cocoa_Object* is a less ugly substitute for void*.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_cocoa: use Eina_Bool instead of int
Jean Guyomarc'h [Tue, 5 Jan 2016 23:00:56 +0000 (00:00 +0100)]
ecore_cocoa: use Eina_Bool instead of int

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_cocoa: implement and const-correct window size step getter
Jean Guyomarc'h [Tue, 5 Jan 2016 22:58:04 +0000 (23:58 +0100)]
ecore_cocoa: implement and const-correct window size step getter

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_cocoa: implement and const-correct window size max getter
Jean Guyomarc'h [Tue, 5 Jan 2016 22:54:57 +0000 (23:54 +0100)]
ecore_cocoa: implement and const-correct window size max getter

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_cocoa: implement and const-correct window min size getter
Jean Guyomarc'h [Tue, 5 Jan 2016 22:50:52 +0000 (23:50 +0100)]
ecore_cocoa: implement and const-correct window min size getter

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_cocoa: implement and const-correct window size getter
Jean Guyomarc'h [Tue, 5 Jan 2016 22:47:30 +0000 (23:47 +0100)]
ecore_cocoa: implement and const-correct window size getter

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_cocoa: implement and const-correct window geometry getter
Jean Guyomarc'h [Tue, 5 Jan 2016 22:45:50 +0000 (23:45 +0100)]
ecore_cocoa: implement and const-correct window geometry getter

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agotests cxx: remove superfluous output to stdout
Stefan Schmidt [Wed, 2 Mar 2016 14:32:09 +0000 (15:32 +0100)]
tests cxx: remove superfluous output to stdout

These outputs are not giving any more information besides what we already get:

Ecore C++ headers compilePASS: tests/ecore_cxx/cxx_compile_test

(Ignoring the problem with the newline) The test name tells it all and we are
just filling the log.

8 years agobuild: fix problems with coverage check build where some files are not found
Stefan Schmidt [Wed, 2 Mar 2016 12:14:00 +0000 (13:14 +0100)]
build: fix problems with coverage check build where some files are not found

Switch to use a lcov config file which geninfo_auto_base and remove hard coding
the base dir  to src/lib. geninfo_auto_base is designed for a use case like
ours where we have several base dirs (lib, bin, tests, ...) and it detects them
automatically. This fixes failures in a coverage run where the file is simply
looked for in the wrong directory.

8 years agobuild: enhance generated html output from coverage report
Stefan Schmidt [Wed, 2 Mar 2016 09:02:37 +0000 (10:02 +0100)]
build: enhance generated html output from coverage report

We do not handle branch coverage so remove that part of the output. On the
other hand at a legend to allow people to understand the color meanings.

8 years agoEvas filters: Fix meaning of data 'execute' flag
Jean-Philippe Andre [Wed, 2 Mar 2016 03:01:15 +0000 (12:01 +0900)]
Evas filters: Fix meaning of data 'execute' flag

The doc said it would behave like "value = data" but actually
the data part was executed directly. This should fix that.

8 years agoEvas filters: Mark object as changed on data_set
Jean-Philippe Andre [Wed, 2 Mar 2016 02:37:36 +0000 (11:37 +0900)]
Evas filters: Mark object as changed on data_set

This fixes the new test case.

8 years agoEvas filter: Add new test case for state and data set
Jean-Philippe Andre [Mon, 29 Feb 2016 10:07:50 +0000 (19:07 +0900)]
Evas filter: Add new test case for state and data set

8 years agoEdje calc: Simplify code readability with eo_do
Jean-Philippe Andre [Mon, 29 Feb 2016 09:41:28 +0000 (18:41 +0900)]
Edje calc: Simplify code readability with eo_do

This removes an absolutely crazy use of eo_do where all calls
to the efl_gfx_filter functions where factorized in an unreadable
manner. Hopefully eo_do will disappear soon.

8 years agoEvas filters: Use fail_if instead of fail in test case
Jean-Philippe Andre [Mon, 29 Feb 2016 09:17:46 +0000 (18:17 +0900)]
Evas filters: Use fail_if instead of fail in test case

This will give more accurate information in case of failure.

8 years agoEvas text: Add legacy filter APIs
Jean-Philippe Andre [Mon, 29 Feb 2016 06:47:36 +0000 (15:47 +0900)]
Evas text: Add legacy filter APIs

Those should now be considered stable, even if their internals
may change. Also, these APIs are in Tizen so adding these will
help merging Tizen EFL and upstream.

8 years agoEvas filters: Fix bad stringshare usage
Jean-Philippe Andre [Mon, 29 Feb 2016 08:04:13 +0000 (17:04 +0900)]
Evas filters: Fix bad stringshare usage

Make sure the filter uses properly initialized state names and
don't call stringshare_del on a static string.

8 years agoEfl.Gfx.Filter: Rework APIs and mark as stable
Jean-Philippe Andre [Mon, 29 Feb 2016 06:23:18 +0000 (15:23 +0900)]
Efl.Gfx.Filter: Rework APIs and mark as stable

- Remove @beta flags,
- Update @since to match stabilization,
- Change methods to properties with keys,
- Use eo_prefix and add filter_ prefix to all properties since
  they use very generic names,

The filter API stays under Efl.Gfx since there are other kinds of
filters, and this one is the particular "graphical filter" or
"effect" API.

The EO API mostly not change from an application point of view,
except for "source_get" which now returns a string directly. Also,
state and data can now be queried.

8 years agoefl - fix threadqueue spinlock destruction on openbsd - doesn't like it
Carsten Haitzler (Rasterman) [Wed, 2 Mar 2016 01:33:40 +0000 (10:33 +0900)]
efl - fix threadqueue spinlock destruction on openbsd - doesn't like it

so the spinlock on the threadqueue block pool it taken on shutdownn,
while the block pool is freed up then its is destroyed, but openbsd
very much doesnt like this and returns an error, so release the lock
before destroying it.

@fix

8 years agoedje entry: fix gcc warnings about possibly uninitialized variables
Carsten Haitzler (Rasterman) [Tue, 1 Mar 2016 04:19:08 +0000 (13:19 +0900)]
edje entry: fix gcc warnings about possibly uninitialized variables

this fixes warnings from gcc specifically:

lib/edje/edje_entry.c: In function ‘_edje_entry_imf_cursor_info_set’:
lib/edje/edje_entry.c:4104:4: warning: ‘dir’ may be used uninitialized
in this function [-Wmaybe-uninitialized]
    ecore_imf_context_bidi_direction_set(en->imf_context,
(Ecore_IMF_BiDi_Direction)dir);
    ^
    lib/edje/edje_entry.c:4099:24: note: ‘dir’ was declared here
        Evas_BiDi_Direction dir;
                                ^
                                lib/edje/edje_entry.c:4103:4: warning:
‘ch’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    ecore_imf_context_cursor_location_set(en->imf_context, cx, cy, cw,
ch);
    ^
    lib/edje/edje_entry.c:4098:27: note: ‘ch’ was declared here
        Evas_Coord cx, cy, cw, ch;
                                   ^
                                   lib/edje/edje_entry.c:4103:4:
warning: ‘cw’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
    ecore_imf_context_cursor_location_set(en->imf_context, cx, cy, cw,
ch);
    ^
    lib/edje/edje_entry.c:4098:23: note: ‘cw’ was declared here
        Evas_Coord cx, cy, cw, ch;
                               ^
                               lib/edje/edje_entry.c:4103:4: warning:
‘cy’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    ecore_imf_context_cursor_location_set(en->imf_context, cx, cy, cw,
ch);
    ^
    lib/edje/edje_entry.c:4098:19: note: ‘cy’ was declared here
        Evas_Coord cx, cy, cw, ch;
                           ^
                           lib/edje/edje_entry.c:4103:4: warning:
‘cx’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    ecore_imf_context_cursor_location_set(en->imf_context, cx, cy, cw,
ch);
    ^
    lib/edje/edje_entry.c:4098:15: note: ‘cx’ was declared here
        Evas_Coord cx, cy, cw, ch;
                       ^
                       lib/edje/edje_entry.c: In function
‘_edje_part_move_cb’:
lib/edje/edje_entry.c:4104:4: warning: ‘dir’ may be used uninitialized
in this function [-Wmaybe-uninitialized]
    ecore_imf_context_bidi_direction_set(en->imf_context,
(Ecore_IMF_BiDi_Direction)dir);
    ^
    lib/edje/edje_entry.c:4099:24: note: ‘dir’ was declared here
        Evas_BiDi_Direction dir;
                                ^
                                lib/edje/edje_entry.c:4103:4: warning:
‘ch’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    ecore_imf_context_cursor_location_set(en->imf_context, cx, cy, cw,
ch);
    ^
    lib/edje/edje_entry.c:4098:27: note: ‘ch’ was declared here
        Evas_Coord cx, cy, cw, ch;
                                   ^
                                   lib/edje/edje_entry.c:4103:4:
warning: ‘cw’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
    ecore_imf_context_cursor_location_set(en->imf_context, cx, cy, cw,
ch);
    ^
    lib/edje/edje_entry.c:4098:23: note: ‘cw’ was declared here
        Evas_Coord cx, cy, cw, ch;
                               ^
                               lib/edje/edje_entry.c:4103:4: warning:
‘cy’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    ecore_imf_context_cursor_location_set(en->imf_context, cx, cy, cw,
ch);
    ^
    lib/edje/edje_entry.c:4098:19: note: ‘cy’ was declared here
        Evas_Coord cx, cy, cw, ch;
                           ^
                           lib/edje/edje_entry.c:4103:4: warning:
‘cx’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    ecore_imf_context_cursor_location_set(en->imf_context, cx, cy, cw,
ch);
    ^
    lib/edje/edje_entry.c:4098:15: note: ‘cx’ was declared here
        Evas_Coord cx, cy, cw, ch;
                       ^

and the likes...

8 years agoedje epp - fix gcc warning about possible unused var usage
Carsten Haitzler (Rasterman) [Tue, 1 Mar 2016 04:15:41 +0000 (13:15 +0900)]
edje epp - fix gcc warning about possible unused var usage

gcc now is complaining about out ancient cpp code possibly using
newlines as undefined. this should keep this warning quiet - there
isnt a real performance issue here.

bin/edje/epp/cpplib.c: In function ‘cpp_get_token’:
bin/edje/epp/cpplib.c:4602:15: warning: ‘newlines’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
       else if (newlines > 0)

@fix

8 years agoevas render2 - move empty region data into const land so it is in RO mem
Carsten Haitzler (Rasterman) [Tue, 1 Mar 2016 04:13:33 +0000 (13:13 +0900)]
evas render2 - move empty region data into const land so it is in RO mem

this should ensure these constants are in read-only memory if
possible iof they are marked as const as well as static