summaryrefslogtreecommitdiff
path: root/src/lib (follow)
AgeCommit message (Collapse)Author
2019-08-09efreet - be more patient for efreet to start - up to 2 sec nowCarsten Haitzler (Rasterman)
seems people have issues with efreetd starting in 0.5 sec on some systems... even rpi's manage that, but lets be more patient and wait up to 2 sec
2019-08-09efl_ui/popup: apply user min size hints during group_calcMike Blumenkrantz
if these hints are set, they should be used Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9539
2019-08-09efl_ui/popup: optimize popup sizing calcs slightlyMike Blumenkrantz
ensure that scroll-based popups don't accidentally trigger a full recalc and (wrong) size change during group_calc by hitting the base popup size_set() implementation and setting the needs_calc flag or by using the base popup calc code when it should not be used this resolves a corner case sizing issue in the text_alert 2 popup case in elm_test which seems to have been present for a long time Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9538
2019-08-09elm/config: clear env var hash on shutdownMike Blumenkrantz
env vars should not be retained when this subsystem is not "active" fixes unit test running ref 9149767184bfa9b64102eaea89f6733351de71e9 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9537
2019-08-09eolian: add an envvar to warn about unimplemented beta funcsDaniel Kolesa
This changes the behavior of the existing env var to only check unimplemented functions in stable APIs by default. Beta checks can be enabled with an additional environment var, so use EOLIAN_CLASS_UNIMPLEMENTED_WARN for stable and EOLIAN_CLASS_UNIMPLEMENTED_BETA_WARN for extra beta checks.
2019-08-09edje: fix warning for returning wrong type.Cedric BAIL
Reviewers: zmike Reviewed By: zmike Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9530
2019-08-09evas/textblock: optmize textblock format parsing.subhransu mohanty
Summary: textblock format parsing creates/delets eina_TempStr for each token. Eina_TempStr is even worse than malloc/free because it also takes a lock/unlock along with malloc/free each time we create it. Just use a stack bufefr and create string in it if the string is too big then it will fall back to heap which is anyway we are doing right now. Tested this in Tizen List view the number of allocation reduced by 16000. Reviewers: Hermet, ali.alzyod, woohyun Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9534
2019-08-09edje: optimize color_class_recursive_find_helper() functionsubhransu mohanty
Summary: If the color_class is not overridden by the object level the hash will be empty but still we do the expensive call to _edje_hash_find_helper() find the color_class in an empty hash. by checking if the hash is empty and returning early we save lot of unnecessary hash computaion and lookup. Reviewers: Hermet Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9532
2019-08-09eina/hash: optimize eina_hash_find() when hash is empty.subhransu mohanty
Summary: Check if hash is empty before computing the hash key and look inside the hash to find data. Note: could have called the eina_hash_population() api but didn't because of extra function call. Reviewers: Hermet Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9531
2019-08-09efl_ui_textpath: clear up path data when it's destructed.Hermet Park
This fixes path data memory leak. @fix
2019-08-08evas/render: size and draw proxy render surface based on proxy clipperMike Blumenkrantz
if a proxy is not being proxied, it's optimal to create a surface for only the necessary dimensions and then only draw within those dimensions. when a proxy is clipped to a size smaller than the proxy object, the required size for the proxy render becomes smaller as the proxy has less visible area. this enables us to draw only the clipped region and thus gives a performance boost this can only be enabled if the clipper is marked as static Reviewed-by: Hermet Park <hermetpark@gmail.com> Differential Revision: https://phab.enlightenment.org/D8881
2019-08-08evas/render: clamp mask surface size to clipper sizeMike Blumenkrantz
there's no point in allocating a massive mask surface if it's going to be clipped to a smaller size, so instead just allocate the smaller size and position it where the clipped size would be this can only be enabled if the clipper is known to not be changing size, as performance would be impacted if the clipper was forcing a full mask redraw due to regular resizing Reviewed-by: Hermet Park <hermetpark@gmail.com> Differential Revision: https://phab.enlightenment.org/D8841
2019-08-08evas: add 'has_fixed_size' property for canvas objectsMike Blumenkrantz
this provides a hint for rendering that the object is not going to resize for as long as the flag is set and allows for some optimizations to be made during rendering based on this knowledge @feature Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8887
2019-08-08getenv - reduce continually calling getenv for the same vars do onceCarsten Haitzler (Rasterman)
do it once and remember the result from the first one. drops overhead for sure by a chunk i actually could see in perf reports like about 1-2% of cpu...
2019-08-08get rid of shadow variablesBoris Faure
Summary: gl: add some EINA_FALLTHROUGH Reviewers: #reviewers, zmike Reviewed By: zmike Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9525
2019-08-08ector: ++safety.Hermet Park
null handling just in corner case.
2019-08-08evas vg: ++safety.Hermet Park
Realloc internal composite buffer if its size is invalid.
2019-08-07eina log - we exceet 24 domains alrready out of the box, so increaseCarsten Haitzler (Rasterman)
this avoids more reallocs since we already use more than 24 domains... go up to 64.
2019-08-07cxx: Fix funcptr c_args declaration.Lauro Moura
Summary: The internal wrapper was generating the argument types directly instead of passing through the translation generator `grammar::c_type`. This caused the type in the `caller` callback to be different from the actual C type of the declared function pointer, like in `@out` parameters. Reviewers: tasn, felipealmeida Reviewed By: felipealmeida Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9524
2019-08-07efl_ui_focus_layer: we should cleanup on invalidateMarcel Hollerbach
Summary: otherwise there will be errors. Lets pray this did not break anything else. Depends on D9518 Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9521
2019-08-07Evas: migrate Evas_BiDi_Direction -> Efl_Text_Bidirectional_Type.Tom Hacohen
2019-08-07efl_ui_item: fix event emissionMarcel Hollerbach
with this commit events are emitted correctly, even if the container is already on the way to deletion. Additionally, the codepath that is triggered when the item is selected via clickable is now also going through the selected property. ref 7905 Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D9517
2019-08-07introduce efl_ui_multi_selectable and efl_ui_single_selectableMarcel Hollerbach
right now they are just thin wrappers from what have been in efl_ui_collection. This is just a first effort, the interfaces have to be equipped with more and better API, more events, and tests. ref T8057 Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D9515
2019-08-07efl_ui: use unified size hints api and be explicit about which hint is changedMike Blumenkrantz
unified widgets should use unified api internally and also be more explicit about which min size hint (restricted or user) is being set in order to improve readability of code when unified widgets also implement legacy wrappers, legacy api should be used for the legacy objects no functional changes Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9495
2019-08-07evas_text: backward compatibility for setting text sizeAli Alzyod
Summary: This is for backward compatibility for TIZEN Test cases for legacy Reviewers: woohyun Reviewed By: woohyun Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9519
2019-08-07emile - use newer lz4 api instead of deprecated oneCarsten Haitzler (Rasterman)
2019-08-07efl_ui_selectable: this should be betaMarcel Hollerbach
sorry, i forgot that ... :(
2019-08-06efl_ui_check: migrate from own property to Efl.Ui.SelectableMarcel Hollerbach
this is the basic work for getting radio group as a single_selection interface, which can be a part of mutli_selection. Which will come both later on. ref T8057 Differential Revision: https://phab.enlightenment.org/D9504
2019-08-06efl_input_clickable: int -> uintMarcel Hollerbach
Summary: the ids of the structs here are never negative ref T7976 Reviewers: zmike, segfaultxavi, cedric Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T7976 Differential Revision: https://phab.enlightenment.org/D9497
2019-08-06efl_ui_focus_manager_root_focus: perform focus switch delayedMarcel Hollerbach
Summary: Delaying the unregistering here ensures that there is not focus set call while a object is beeing registered in the focus manager. ref T8081 Reviewers: zmike, cedric Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T8081 Differential Revision: https://phab.enlightenment.org/D9513
2019-08-06efl_ui_collection: implement initial focus behaviourMarcel Hollerbach
Summary: the behaviour here is that the next item according to the direction is getting focused. This sounds easy but is quite complex given the fact that the items might be hidden. This is the first draft for this, to see how good it performes. Reviewers: zmike, stefan_schmidt, cedric Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9496
2019-08-06ecore_wl2: Move ecore_wl2_buffer_fit function to be internalChristopher Michael
The ecore_wl2_buffer_fit function is only used internally in EFL so move it out of the public API header. ref T8013
2019-08-06ecore_wl2: Move ecore_wl2_window_false_commit to be internalChristopher Michael
The ecore_wl2_window_false_commit function is only used internally inside efl so there is no need for it to be a public API. ref T8013
2019-08-06ecore_wl2: Move ecore_wl2_window_rotation_change functions to beChristopher Michael
internal These functions are not used in efl wayland clients nor are they used in Enlightenment. As such, there is no reason that they need to be public API so this commit moves them to be Internal and updates Ecore_Evas engine code to include the internal header. ref T8013
2019-08-06efl_input_hold: replace hold property name with input_holdYeongjong Lee
Sorry to touch stable eo classes. there is name conflict issue between class and property when binding language is generated from eo. for example in C#, compiler error occurs. ``` src/bindings/mono/efl_input_hold.eo.cs(166,17): error CS0542: `Efl.Input.Hold.Hold': member names cannot be the same as their enclosing type ``` This patch changes Efl.Input.Hold.GetHold/SetHold to Efl.Input.Hold.GetInputHold/SetInputHold and generates Efl.Input.Hold.InputHold property. Note that CAPI is not changed. ref T8093 Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Lauro Neto <lauromauro_> Differential Revision: https://phab.enlightenment.org/D9484
2019-08-06docs: Improve Efl.Input.Key docsLauro Moura
People without X11 background would have a hard time understanding the difference between key, key_name, key_code, etc. Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Reviewed-by: YeongJong Lee <yj34.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D9487
2019-08-06remove useless definition of the macro HAVE_MMAN_HVincent Torri
use HAVE_SYS_MMAN_H when including sys/mman.h and HAVE_MMAP when using mmap() Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9494
2019-08-06efl_ui/popup_backwall: implement efl.file file and key get methodsMike Blumenkrantz
these need to be proxied to the internal image object to return correct values Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9508
2019-08-06efl_ui: add popup headers to Efl_Ui.hMike Blumenkrantz
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9507
2019-08-06efl_ui/text: handle disabled textMike Blumenkrantz
no idea what's going on here with new styling but this makes it look like it should ref T6649 Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9502
2019-08-06efl_ui/clock: remove unused functionsMike Blumenkrantz
these were used for clock module functionality that has since been removed Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9501
2019-08-06efl_ui/clock: remove legacy api/widget use internallyMike Blumenkrantz
new widgets should use unified api internally Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9500
2019-08-06efl_ui/clock: remove module interfaceMike Blumenkrantz
this was overly complex and never actually used ref T7868 Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9499
2019-08-05csharp: fix ownership of value types in arrays and listsVitor Sousa
Summary: `eolian_mono` now considers the implicit ownership of value types in arrays and lists when generating ownership flags. Also, update manual bindings for arrays and lists to no longer free elements in the `Dispose` method when the container has ownership of the elements but C# itself does not have ownership of the container; the elements will be freed by whoever owns the container. Modifying and removing elements will still free them though. Re-enabled unit tests that required ownership of value type elements. Reviewers: felipealmeida, q66, vitor.sousa Reviewed By: felipealmeida Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9457
2019-08-05evas image - eina file - be paranoud about double closesCarsten Haitzler (Rasterman)
tracking some seemingly not so good asan hits on the eina file where we're accessing an eina file already closed... so be extra paranoid about it and set things to null after free/close...
2019-08-05introduce a new interface efl_ui_selectableMarcel Hollerbach
this is meant to be implemented by entities that *can* be selectabled (not to be confused with containers that can have selected contents)! ref T8057 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9503
2019-08-05efl_ui_selectable: split this upMarcel Hollerbach
i dont know why, but something got badly mixed up, the selection APIs for text and item ended up in the same interface, which seems ... weird ? This commit splits that up into container_selectable and text_selectable, there is no future plan on my list for text_selection. The rest of this series is working towards removing container_selectable, replacing it with a new interface. However, the interface will stay until list_view is replaced. The changes in the legacy code are removing the efl.ui.selection interface from it, item emission is not depending on the inherited interfaces, additionally, this interface does not provide any API, so this should not be an issue. ref T7766 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9498
2019-08-05efl_ui_action_connector: rename clickable_util to action_connectorWooHyun Jung
efl_ui_clickable_util was only for efl_input_clickable interface, but there can be more cases which want to connect object event to specific action interfaces (such as scrolling) in the future. For that extension, efl_ui_action_connector seems better. ref: T7847 Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9486
2019-08-05efl-mono: Add Model manual implementation to C# and MVVM factoriesLauro Moura
Summary: Depends on D9273, D9270 Test Plan: Run added testcases. Reviewers: cedric, bu5hm4n, zmike, SanghyeonLee, felipealmeida, segfaultxavi Reviewed By: cedric Subscribers: cedric Tags: #expertise_solutions, #efl_language_bindings Differential Revision: https://phab.enlightenment.org/D8080
2019-08-05ethumb - fix error free of static string as stringshareCarsten Haitzler (Rasterman)
in one case we try stringshare_del a static string, not stringshared, so fix by always making it a stringshare fix CID 1402614