Commit Graph

60449 Commits

Author SHA1 Message Date
Hermet Park b4f9f1b263 evas gl: Remove single-line pipe code of gl commands.
Summary:
GLPIPES is proved to use since it's been used for many years as the default.
On the other hand, single-line routine hans't, acutally it's not maintained properly.
Even this single-line routine doesn't compileable right moment.

This patch is one refactoring to clean up code that's not valuable to maintain.

Reviewers: #committers, raster, cedric, ManMower

Reviewed By: #committers, ManMower

Subscribers: ManMower, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7328
2018-12-06 12:06:16 -05:00
Youngbok Shin 33b8e5157a eina: add locale-independent eina_convert_strtod_c function
strtod's behavior is changed by system locale.
http://man7.org/linux/man-pages/man3/strtod.3.html
https://en.wikipedia.org/wiki/Decimal_separator

Because of this, strtod(0.5) returns 0.0 in some locales.
When a given value string is locale-independent, strtod has to be
replaced to eina_convert_strtod_c function.
Internally, it calls strtod_l function with "C" locale.

@feature

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Reviewed-by: Vincent Torri <vincent.torri@gmail.com>
Differential Revision: https://phab.enlightenment.org/D6644
2018-12-06 12:06:16 -05:00
Shinwoo Kim 5a68a63ab7 evas cache image: compare with cached image file
As cache2 knows cached image could be not matched even though
hash key is not different.

Please refer to the following comment of evas_cache2_image_open.

   /* image we found doesn't match what's on disk (stat info wise)
    * so dirty the active cache entry so we never find it again. this
    * also implicitly guarantees that we only have 1 active copy
    * of an image at a given key. we wither find it and keep re-reffing
    * it or we dirty it and get it out */

The hash key is created base on the image file address.
If the image file address to find does not equal cached image file address
then it means that the cached image is no longer valid.

This case could happen with the following step.

(1) Call evas_object_image_memfile_set with content data A
(2) Call evas_object_image_memfile_set with content data B
(3) Add timer with short time (ex: 0.01 sec)
(4) Delete A image, and add A image in timer callback
(5) Delete B image, and add B image in timer callback

Sometimes you could see image of A from the B image, because newly created
image at step 5 has same address of setp 1.

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D6870
2018-12-06 12:06:16 -05:00
Vitor Sousa 03cb1ebae5 ecore: fix bugs from composite models
Fix type error while getting boolean property from Efl.Model_Composite_Boolean.

Fix properties_get methods for all composite models.

Now properly call property.changed events when it is needed.

Use EINA_VALUE_TYPE_BOOL instead of EINA_VALUE_TYPE_UCHAR.

Remove some memory leaks.
2018-12-06 12:06:16 -05:00
Vitor Sousa 5ac5ca9af6 ecore: forward internal Efl.Model events to Efl.Model.Composite 2018-12-06 12:06:16 -05:00
Vitor Sousa edd15560c3 ecore: fix efl_model_container_private.h include guards 2018-12-06 12:06:16 -05:00
Lauro Moura d90bb5d28c csharp: Change to new class API.
Summary:
As discussed in T7204:

- Eo Interfaces/mixins -> C# Interfaces with concrete class
  implementations
- Eo Regular/Abstracts -> Proper C# classes
- Added some new generators and helper methods.
- Refactored the class generator, splitting into helper methods

Eo handles now are stored only in the "root" class in any given
inheritance tree (generally, Efl.Object), and accessible to each child.
Methods also are defined in a single place instead of repeatedly
generated in everyfile, reducing the size of the generated .dll from
30MB to around 4.5MB.

Mixins are generated as C# interfaces but any regular class it inherits
from is lost, as we can't have interfaces inheriting from regular
classes. This will be dealt with in a later commit.

Summary of API Changes:

- Merged Inherit/Concrete classes. (These suffixes disappear from
  regular classes).
- Interface still have implementations with 'Concrete' suffix for when
  they are returned from methods.
- Removed 'I' from interface names.
- Removed interfaces for regular/abstract Eo classes.
- Concrete classes for interfaces/mixins hold the event argument struct.
- Removed '_' from classes, enums, structs, etc, as indicated in C#
  naming conventions.
- Namespaces are now Camel.Cased.
- Renamed IWrapper's raw_handle/raw_klass to NativeHandle/NativeClass

Also renamed the test classes as after the namespace change, the
test namespace Test can conflict with the helper Test namespace.
(And use more meaningful names than Test.Testing...)

Also Fixes T7336 by removing a deprecated example and adding
efl_loop_timer_example to build system.

Fixes T7451 by hiding the class_get DllImports and renaming the IWrapper
fields. The native handlers are used in the manual binding.

Still need to work:

- As there are still some events names clashing (e.g. Efl.Ui.Bg with "resize"
  from Efl.Gfx.Entity and Efl.Gfx.Image), Events are currently declared on
  the interface and implemented "namespaced" in the classes,
  requiring the cast to the interface to access the event.
- The Mixin Conundrum. Mixin inheritance will be dealt in a future
  commit.

Depends on D7260

Reviewers: segfaultxavi, vitor.sousa, felipealmeida, Jaehyun_Cho

Reviewed By: vitor.sousa

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7451, T7336

Differential Revision: https://phab.enlightenment.org/D7262
2018-12-06 12:06:16 -05:00
Christopher Michael 3813b15879 elementary: Support using no frame object
Summary:
Creation of the frame object can lead to significant delays in window
creation time on limited-power devices (watches, mobile, tv, etc).
This patch allows setting an environment variable and config value in
order to completely skip frame object creation.

This shaves about 50ms from startup on an i7 8600k, so should be more
substantial a saves on limited-power devices.

Reviewers: kimcinoo, ManMower

Reviewed By: ManMower

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7305
2018-12-06 12:06:15 -05:00
Daniel Kolesa 416c71332d eolian_aux: add initial eolian_aux APIs
eolian_aux is a set of auxiliary APIs for eolian that build on top
of the existing eolian APIs but do not belong in the main library.
2018-12-06 12:06:15 -05:00
Carsten Haitzler 01ed58d52d evas - cpu - fix sve check when neon is disabled... 2018-12-06 15:32:17 +00:00
Carsten Haitzler 66309bab3d update po files 2018-12-06 15:32:17 +00:00
Marcel Hollerbach 1dabc4970a ci: disable testing on ubuntu and debian
it appears that there is a bug in meson (which is fixed upstream).
For now this disables the tests, it can be reverted later once 0.49 is
released.

This fixes the cron job for 2 jobs.

Differential Revision: https://phab.enlightenment.org/D7410
2018-12-06 15:49:33 +01:00
Marcel Hollerbach 2197b8eb24 meson: remove DATADIR as it is not used
and further more, on windows this causes un-understandable compiler
errors.

Differential Revision: https://phab.enlightenment.org/D7417
2018-12-06 15:49:17 +01:00
Marcel Hollerbach 5b98ebab4a meson: abstract edje_cc exec lines
the array is calling the shell etc. this makes cross building easier.

Differential Revision: https://phab.enlightenment.org/D7413
2018-12-06 15:13:34 +01:00
Alastair Poole 29c388a35b efl: fix misspelt focused in API and documents.
Fix spelling in elm_code API and other documents too where this occurs.
Differential Revision: https://phab.enlightenment.org/D7299
2018-12-06 15:11:17 +01:00
Daniel Kolesa 36a5b5bf13 canvas: disable an eolian-style api reference
This references a file that is not being installed, so the eo
file will fail to parse when used as a system-wide .eo file.

Introduced in 05682eed7d.

Fixes T7495.
2018-12-06 11:45:06 +01:00
Cedric BAIL 67993500da ecore_con: handle timeout of the attempt to connect.
This has been the fix that prevent random ecore_con DNS tests to fail for me. This should also in case
of failure make the timeout of the ecore_con itself be honored which wasn't anymore.

@fix

Differential Revision: https://phab.enlightenment.org/D7402
2018-12-06 09:29:29 +01:00
Cedric BAIL 913ea32a7a ecore_con: wait for thread to finish at the same time as canceled to avoid race condition.
Differential Revision: https://phab.enlightenment.org/D7401
2018-12-06 09:29:28 +01:00
Cedric BAIL d4cb52815d ecore_con: properly track each handler separately and destroy each only once.
Differential Revision: https://phab.enlightenment.org/D7400
2018-12-06 09:29:28 +01:00
Cedric BAIL 355859373e ecore_con: reinit ecore_con after complete shutdown so that suite ecore_con_shutdown doesn't complain.
Differential Revision: https://phab.enlightenment.org/D7399
2018-12-06 09:29:28 +01:00
Cedric BAIL 6967f0a797 ecore_con: fix multi shutdown excessive warning by initializing ecore independently.
Differential Revision: https://phab.enlightenment.org/D7398
2018-12-06 09:29:28 +01:00
Cedric BAIL b6346d0bb3 ecore_con: enforce connection state to not let a hanging connection continue.
It is expected that when the connection state is forcefully set, that all
hanging connection should be stopped instead of them continuing and later
resetting the state to having a connection.

Differential Revision: https://phab.enlightenment.org/D7397
2018-12-06 09:29:28 +01:00
Cedric BAIL 4485cf64a0 ecore_con: refactor TCP Dialer to always wait for thread to finish.
This is a better way to avoid race execution by the async end callback
that could happen at some later random point in time. The thread are
cancelled right away, so event if their is a "wait" time set, it should
never actually matter and be always instantaneous.

Differential Revision: https://phab.enlightenment.org/D7396
2018-12-06 09:29:28 +01:00
Hermet Park a8244ee642 doc: remove since_tizen.
This tag must be valid for only tizen world.
2018-12-06 14:41:51 +09:00
Daniel Zaoui 8ef82132f9 Tests: adapt some tests for Exactness
Home directory cannot be used for the tests as the shots will always be
different between machines.
A test directory is created to solve this issue.
2018-12-05 23:58:17 +02:00
Bowon Ryu ede6c1316b efl_ui_tab_bar: fix error about double free
Summary:
tab is the parent of the icon.
so deleting the tab causes deleting the icon automatically.
in this case, it can cause double-freed problem once icon has deleted.

Test Plan: elementary_test -to efl.ui.tab_pager

Reviewers: cedric, Jaehyun_Cho, jpeg

Reviewed By: Jaehyun_Cho

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7407
2018-12-05 20:28:24 +09:00
Jihoon Kim f15c1f1417 ecore_imf: Fix document about ecore_imf_context_input_panel_position_set()
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
2018-12-05 20:01:28 +09:00
Youngbok Shin 443f63c619 eina: fix a build failure caused by missing 'locale_t' from OSX
In OSX, locale_t is included in xlocale.h
@fix
Differential Revision: https://phab.enlightenment.org/D7395
2018-12-05 11:17:53 +01:00
Marcel Hollerbach 6c8cebf403 Revert "Revert "eina: add locale-independent eina_convert_strtod_c function""
This reverts commit ddd2638758.
2018-12-05 11:17:53 +01:00
Jaehyun Cho df216a4f1d efl_ui_win: enable bg color set although alpha is set
Summary:
This patch sets background transparent if window supports alpha.
If alpha window does not emit signal to show background rectangle,
then the background color set by _efl_ui_win_part_color_set cannot
be applied because the background rectangle remains hidden.

This patch fixes the side effect of D6569.

Test Plan: Run Efl.Ui.Win (Bg part) in elementary_test.

Reviewers: zmike, devilhorns, woohyun

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7302
2018-12-05 10:35:30 +09:00
Lauro Moura a31792e09e eolian_cxx: Add documentation field to property_def
Test Plan: run eolian_cxx suite

Reviewers: vitor.sousa, felipealmeida

Reviewed By: vitor.sousa

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7414
2018-12-04 16:21:37 -02:00
Yeongjong Lee 93aefcce14 examples: update gitignore
Test Plan:
make examples
git state

Reviewers: Jaehyun_Cho, Hermet, segfaultxavi

Reviewed By: segfaultxavi

Subscribers: segfaultxavi, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7406
2018-12-04 10:16:33 +01:00
Carsten Haitzler f0092e8e0d elm config - fix warnings about unused vars and params 2018-12-04 08:45:02 +00:00
Carsten Haitzler e3fb243feb elm teest - focus - fix unused param warn 2018-12-04 08:43:02 +00:00
Carsten Haitzler 89524e376c elm tests - focus - fix unused param warn 2018-12-04 08:42:19 +00:00
Carsten Haitzler 2060786ab9 elm tests - gengrid - fix unused param warn 2018-12-04 08:41:24 +00:00
Carsten Haitzler e1e5a9f259 elm test - button - remove unused local var warn 2018-12-04 08:40:35 +00:00
Carsten Haitzler 42a3ad53d2 elm main - fix unused param in cb warn 2018-12-04 08:40:02 +00:00
Carsten Haitzler 3e5b50a1e4 elm toolbar - fix unused param warn 2018-12-04 08:39:25 +00:00
Carsten Haitzler bb9cec6d9e elm colorselector - fix unused param warn 2018-12-04 08:38:44 +00:00
Carsten Haitzler cc3a5252f1 efl ui focus manager - fix unused param warn 2018-12-04 08:37:59 +00:00
Carsten Haitzler 5634ce9e9f benchmarks - focus tree - fix unused param warn 2018-12-04 08:37:01 +00:00
Carsten Haitzler 0e7a24c1b8 efl ui focus manager - remove unused local vars warn 2018-12-04 08:36:00 +00:00
Carsten Haitzler 8ee0d7674b elm glview - fix unused param warn 2018-12-04 08:34:40 +00:00
Carsten Haitzler 03f9cfb0b2 eldbus model - remove unused vars warn 2018-12-04 08:33:46 +00:00
Carsten Haitzler 0ebc6c6a8c eldbus model - fix signed compare warn 2018-12-04 08:33:28 +00:00
Carsten Haitzler 20efb01aed efl model loop - fix unused param (add EINA_UNUSED) - warn 2018-12-04 08:30:09 +00:00
Carsten Haitzler ee7a97d898 eina iterator tests - use same unisnged ints to store - warn
use unsigned ints to we have no more wantings about signed compares
2018-12-04 08:24:02 +00:00
Carsten Haitzler 44d010bc39 eina - iterator - remove unused variable - warn 2018-12-04 08:21:49 +00:00
Marcel Hollerbach 80bdbc8b54 elm_scroller: update behaviour to match legacy behaviour more closely
This implements scrolling the scroller when the scroller is not in the
maximum position of the requested relation, but there is no more focus
object in that relation.

Summing up, the scroller is scrolled manually, when the focus object is
not fitting in the viewport, and the object is beeing out of the
viewport in the requested direction. Or the scroller is not at its max
position in the requested direction, and there is no more focusable
object in this requested direction.

ref T6804

Differential Revision: https://phab.enlightenment.org/D7382
2018-12-04 08:45:49 +01:00