summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-07-18Eina vpath: remove support of ~username vpath on Windowsdevs/bu5hm4n/buildtestVincent Torri
On Windows, one must be in kernel mode to obtain informations of other users Differential Revision: https://phab.enlightenment.org/D9339
2019-07-17elementary: add a test for Efl.Ui.View interface.Cedric BAIL
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9308
2019-07-17elementary: simplify example by using Efl.Model_Provider.Cedric BAIL
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9307
2019-07-17elementary: fix potential race condition by using Eina_Future attached to ↵Cedric BAIL
the object. I get some random segfault in elementary test suite pointing to this code. Most likely we do not properly destroy the timer during destruction. Could be because we initiate a delay while destruction is going on or something like that. Anyway, it is easier and more robust to get it fixed by linking the lifetime of the timeout to the lifetime of the widget as future allow us to do easily. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9298
2019-07-17ecore: remove efl_loop_{un,}register from .eo.Cedric BAIL
We have to keep this as an API, but binding do not need to see it at this point. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9297
2019-07-17eo: use efl_provider_{un,}register infrastructure instead of Efl_Loop one.Cedric BAIL
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9296
2019-07-17elementary: add a test for Efl.Model_provider.Cedric BAIL
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9295
2019-07-17ecore: rely on efl_provider_{un,}register to do the job of ↵Cedric BAIL
efl_loop_{un,}register. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9294
2019-07-17elementary: first search on ourself instead of our parent for all providers.Cedric BAIL
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9293
2019-07-17eo: add ability to register provider on the Eo object directly.Cedric BAIL
This should reduce the need for custom implementation of efl_object_provider_bind. It also enable the ability to register provider from user code on any Efl_Object. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9292
2019-07-17elementary: Efl.Ui.Layout now rely on model change event to track the model.Cedric BAIL
This means that this will work nicely with model provider too. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9291
2019-07-17efl: add a Efl.Model_Provider that every widget will look up for in their ↵Cedric BAIL
parent tree. This is done to simplify code as you only need to set the model on the provider and all the widget that are using it as a provider will automatically be updated. The child will find a provider during at the time the first property binding is set on the widget by checking if the parent have an Efl.Model_Provider set. It is not necessary to set a model to have a valid lookup on a Efl.Model_Provider. To disable a widget lookup, you can just force set a model on it (even NULL) and it will disable the lookup. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9290
2019-07-17elementary: Efl.Ui.Image now rely on event to update model binding.Cedric BAIL
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9289
2019-07-17efl: implement notification for when the model is changed on a widget.Cedric BAIL
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9288
2019-07-17eolian: remove support for old free() syntaxDaniel Kolesa
Now freefuncs can only be specified on type declarations but not on types themselves. Also remove transitiveness of freefuncs.
2019-07-17efl_ui/table: emit EFL_PACK_EVENT_LAYOUT_UPDATED on layout updatesMike Blumenkrantz
this should be emitted. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9343
2019-07-17elm/scrollable: avoid unnecessary edje recalcsMike Blumenkrantz
in this case we just want to trigger pending edje calcs and not force new ones. this avoids doing a full edje recalc constantly when scrolling @fix Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9335
2019-07-17efl/scroll manager: stop clearing animators on every wheel eventMike Blumenkrantz
if scrolling is supposed to continue then just reuse the existing animator callback and avoid emitting a scroll,start/stop event pair for every new input event Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9340
2019-07-17efl_ui/box: optimize position_set operations with boxesMike Blumenkrantz
if a box is moved and no other changes are made to the box or its children, e.g., if the box is scrolled, then there is no need to loop over the box's items repeatedly in order to accurately calculate all the item geometries and positions. instead, simply apply an offset from the last box calc position to each child item and handle the position changes more transparently this yields roughly a 12% perf improvement to the 'efl.ui.scroller simple' test and brings rendering up to nearly 60fps Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9342
2019-07-17efl_ui/box: avoid exploding stack with lots of subobjectsMike Blumenkrantz
using alloca like this without any limits is dangerous, so switch to malloc here in such cases Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9341
2019-07-17elm_test: add comparable "simple" scroller testsMike Blumenkrantz
this should be roughly identical and can be more directly compared in terms of performance (which is not good in either case) Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9334
2019-07-17efl_ui_win: optimize shutdownMarcel Hollerbach
in case we are having a scroller with a lot of elements on it, we are spending a lot of time in stuff like recalculating clips, even if they will never be used again. With this freeze here, we are saving 9s shutdown time in item_container. Which brings the overall closing time from 10s down to 1s, which is a win IMO. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9325
2019-07-17efl_ui_widget: relax the amount of event subscriptionsMarcel Hollerbach
there is a very basic problem in eo events. We are having one central array of event subscription, if for example a widget is now listening to changes in its parent, then we are 100% asking for trouble. As an example: - A scroller with 100 buttons in it. - Every button will have a subscription to the FOCUS_MANAGER_CHANGED event If you now scroll, the position is updated in the scroller, therefore the position in scroller is updated. This has the result that the whole list of 100 event subscriptions is walked, which is obviously bad, however, this solution here is way easier than fixing eo (i am not even sure there is a nice solution to it). Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9324
2019-07-17efl_ui_widget: performance optimize deletionMarcel Hollerbach
when a logic parent does not have any widgets left, the parent needs to be reevaluated. However, this only has to happen when there is a change in state (eg. from 0 -> N or from N -> 0). Every other call can be safed. This commit introduces this checking, and safes up performance. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9323
2019-07-17eolian: allow binbufs to be ownedDaniel Kolesa
2019-07-17eolian: add builtin binbuf and event typesDaniel Kolesa
Binbuf is like strbuf and allows not using the Eina opaque wrapper now, which will remove some ptr(). And event translates to Efl.Event because otherwise there would be no way to get rid of void_ptr.
2019-07-17vg_common_svg: Gradient stop color use premultiplied color.JunsuChoi
Summary: The parsed color is straight color. evas use premultiplied color. Test Plan: Sample SVG <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"> <defs> <linearGradient id="linearGradient1" x1="0" y1="0" x2="0.2" y2="0.2" spreadMethod="reflect"> <stop style="stop-color:#ff0000;stop-opacity:1;" offset="0"/> <stop style="stop-color:#0000ff;stop-opacity:1;" offset="1"/> </linearGradient> <radialGradient id="radialGradient222" r="0.2" cx="0.3" cy="0.3" spreadMethod="reflect"> <stop style="stop-color:#ffFF00;stop-opacity:0.1;" offset="0"/> <stop style="stop-color:#00FFff;stop-opacity:1;" offset="1"/> </radialGradient> <radialGradient id="radialGradient333" r="0.2" cx="0.3" cy="0.3" spreadMethod="reflect"> <stop style="stop-color:#00FF00;stop-opacity:0.1;" offset="0"/> <stop style="stop-color:#FF00ff;stop-opacity:1;" offset="1"/> </radialGradient> </defs> <rect x="0" y="0" width="100" height="100" fill="url(#linearGradient1)"/> <rect x="50" y="50" width="50" height="50" fill="url(#radialGradient222)"/> <rect x="0" y="0" width="50" height="50" fill="url(#radialGradient333)"/> </svg> Reviewers: Hermet, kimcinoo, smohanty Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9338
2019-07-16tests/elm: add test for elm_bubble "clicked" smart callbackMike Blumenkrantz
Summary: also verify general layout loading Depends on D9330 Reviewers: bu5hm4n Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9331
2019-07-16tests/elm: break out event callback functionMike Blumenkrantz
Summary: now we have a function we can reuse which verifies that it is called exactly one time Reviewers: bu5hm4n Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9330
2019-07-16efl_ui_slider: fix focus interactionMarcel Hollerbach
Summary: when we move the slider up or down, we might be at the minimum or maximu, if this is the case. Then we must not eat the key event, otherwise focus is stuck on this widget. Depends on D9328 Reviewers: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9329
2019-07-16efl_ui_text: fix focus breakingMarcel Hollerbach
Summary: text should not be focusable by default. Only focusable if it is editable. This fixes mysterical focus disappearing in tests using efl.ui.text. Depends on D9327 Reviewers: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9328
2019-07-16efl_ui_slider: change the semantical meaning of step propertyMarcel Hollerbach
Summary: before the step property was used as a relative value. The value that was added in the end was (max-min)*step. Which is quite confusing given the fact that the other APIs in in efl_ui_range_display are also taking values absolut. Other implementations also do so. fix T4834 Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T4834 Differential Revision: https://phab.enlightenment.org/D9327
2019-07-16tests/actionslider: add more actionslider unit testsMike Blumenkrantz
verify actionslider callbacks and various basic functionalities Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9322
2019-07-16tests/elm: improve click_part() further to guess part locationsMike Blumenkrantz
non-swallow parts exist "somewhere" on a given layout, and it may be the case that they are not actually positioned and just take up the whole layout space. for these parts, if they have a direction in their name, we can try to vaguely guess where the part might be in order to (ideally) click it Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9321
2019-07-16tests/elm: improve click_part() to handle non-swallow partsMike Blumenkrantz
swallow parts have content, other parts do not Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9320
2019-07-16elm_actionslider: fix internal state when programmatically changing valueMike Blumenkrantz
this value is supposed to always match the current widget state and signal emission breaks if the states are not consistent @fix Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9319
2019-07-16elm_actionslider: fix signal emission for left selectionMike Blumenkrantz
this is supposed to be a comparison, not a filter ref a65cb62853c344bcdc34af589a4199488f9025e8 Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9318
2019-07-16efl_ui_widget_part: implement some expected methodsMike Blumenkrantz
checking part type and part geometry is pretty common, so these base implementations can fill in gaps in existing functionality Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9317
2019-07-16docs: Enhance Efl.Ui.Clickable_Util documentationXavi Artigas
2019-07-16Evil: remove getpwuid() from Evil.Vincent Torri
Summary: getpwuid() is used only in eina_test_vpath() and is called when getpwent() is available, which is not the case on Windows Test Plan: compilation Reviewers: raster, cedric, zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9326
2019-07-15Revert "Revert "efl: prevent usage of some Eina.* stub types in stable APIs""Vitor Sousa
EFL# support for slice and rw_slice was added in a previous commit. So now it is safe to undo the reversion of this commit. This reverts commit 25ef604467b083d1f5ff2c7f9a1a82e660e04443.
2019-07-15tests/ecore_wl2: Check for valid xdg_runtime_dirChristopher Michael
Seems these tests need XDG_RUNTIME_DIR to be set, and it does not get set in Travis builds, so add a small check here so that Travis builds don't fail ... thanks Marcel ;) ref T8016
2019-07-15tests/ecore_wl2: Add start of Ecore_Wl2 Window testsChristopher Michael
ref T8016
2019-07-15tests/ecore_wl2: Add test for ecore_wl2_display_inputs_getChristopher Michael
ref T8016
2019-07-15tests/ecore_wl2: Add test for ecore_wl2_display_registry_get functionChristopher Michael
ref T8016
2019-07-15tests/ecore_wl2: Add test for ecore_wl2_display_screen_size_get functionChristopher Michael
ref T8016
2019-07-15tests/ecore_wl2: Add test for ecore_wl2_display_globals_get functionChristopher Michael
ref T8016
2019-07-15tests/ecore_wl2: Add printf for compositor detectionChristopher Michael
ref T8016
2019-07-15tests/ecore_wl2: Add ecore_wl2_display_dmabuf_get testChristopher Michael
ref T8016
2019-07-15tests/ecore_wl2: Add ecore_wl2_display_shm_get testChristopher Michael
ref T8016