summaryrefslogtreecommitdiff
path: root/src/lib (unfollow)
AgeCommit message (Collapse)Author
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
2019-08-05ecore drm legacy - fix dbus leaks of reply handleCarsten Haitzler (Rasterman)
fix CID 1402664
2019-08-05eolian: fix use after free in eolian_databaseDaniel Kolesa
'toscan' is actually a view to 'mpath' memory, so freeing it first would result in use-after-free. This is obviously only in the error branch so it usually does not happen, but fix anyway. CID1403022
2019-08-05eolian: fix false positive use-after-free in parserDaniel Kolesa
The catch here is that check_match results in a long jump under that condition. The static analyzer doesn't know this, so declare intent. CID1402703
2019-08-05eolian: silence return checking in lexerDaniel Kolesa
Coverity CID1396970.
2019-08-05eolian: refactor "dead" codeDaniel Kolesa
This has no functional change but should stop coverity from complaining. CID1382214
2019-08-05eolian: attempt to silence coverity overlapping assignment errorsDaniel Kolesa
While the previous code was I believe correct, coverity still complains about it. Split it into two statements also to declare intent. CID 1402603..1402724
2019-08-05elm theme - fix leak in error cse in elm theme mmap setCarsten Haitzler (Rasterman)
we don't free the eina file handle on error. coverity found it. fix fix CID 1402680
2019-08-05ethumb - make coverity happy by including null charCarsten Haitzler (Rasterman)
doesnt cost us much to memcpy the nul byte too to keep coverity happy. fix CID 1402690
2019-08-05efl_input_key: replace key property name with key_symYeongjong Lee
Summary: 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_key.eo.cs(272,26): error CS0542: `Efl.Input.Key.Key': member names cannot be the same as their enclosing type ``` This patch changes Efl.Input.Key.GetKey/SetKey method to Efl.Input.Key.GetKeySym/SetKeySym and generates Efl.Input.Key.KeySym property. Note that CAPI is not changed. ref T8093 Test Plan: meson setup -Dbindings=mono,cxx -Dmono-beta=true Reviewers: lauromoura, woohyun, zmike, segfaultxavi Reviewed By: segfaultxavi Subscribers: bu5hm4n, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8093 Differential Revision: https://phab.enlightenment.org/D9483 zmike note: this class was not released at the point of this patch, the class was only recently marked as stable
2019-08-05evil: add mprotect() and fix a bit mmap(). Elm_test is workingVincent Torri
Test Plan: compilation aand elm_test working Reviewers: raster, cedric, zmike Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9493
2019-08-05efl_ui_spin/button: move from elm_ to efl_ prefixed functionsMarcel Hollerbach
Summary: this moves a bunch of api calls from elm_ to efl_. Those calls that are called on the entry object are still elm, as well as access APIs, they will have to be moved once efl_ui_text is usable. Depends on D9475 Reviewers: segfaultxavi, cedric, zmike Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9488
2019-08-05ecore drm - legacy - fix coverity leak complaintCarsten Haitzler (Rasterman)
is real - in error case. fix it to make coverity happy. fix CID 1402696
2019-08-05ephysics - fix stringshare double delCarsten Haitzler (Rasterman)
fix CID 1402707
2019-08-05ector_software_rasterizer: Add default value for stroke's miter_limitJunsuChoi
Summary: Currently the default value of miter_limit is defined as 0. miter_limit should be specified to a value other than 0. becuase it is affected by width. See below for an explanation of this. https://www.freetype.org/freetype2/docs/reference/ft2-glyph_stroker.html#ft_stroker_linejoin There is no particular reason why the default value is 0x4. It only refers to the standard of web svg. https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-miterlimit Test Plan: setenv("ECTOR_BACKEND", "default", 1); elm_init(argc, argv); Evas_Object *win = elm_win_util_standard_add(NULL, "test"); evas_object_smart_callback_add(win, "delete,request", win_del, 0); elm_win_autodel_set(win, 1); Evas_Object *bg = elm_bg_add(win); elm_bg_color_set(bg, 255,255,255); evas_object_size_hint_align_set(bg, EVAS_HINT_FILL, EVAS_HINT_FILL); evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_show(bg); Evas *evas = evas_object_evas_get(win); Evas_Object *vg = evas_object_vg_add(evas); evas_object_show(vg); Evas_Object *container = evas_vg_container_add(vg); Evas_Object *shape = evas_vg_shape_add(container); //Default is EFL_GFX_JOIN_MITER evas_vg_shape_append_rect(shape, 0, 0, 100 , 100, 0, 0); evas_vg_shape_stroke_color_set(shape, 255, 0, 0, 255); evas_vg_shape_stroke_width_set(shape, 10); evas_vg_node_origin_set(shape, 50, 150); shape = evas_vg_shape_add(container); evas_vg_shape_append_rect(shape, 0, 0, 100 , 100, 0, 0); evas_vg_shape_stroke_join_set(shape, EFL_GFX_JOIN_BEVEL); evas_vg_shape_stroke_color_set(shape, 255, 0, 0, 255); evas_vg_shape_stroke_width_set(shape, 10); evas_vg_node_origin_set(shape, 200, 150); shape = evas_vg_shape_add(container); evas_vg_shape_append_rect(shape, 0, 0, 100 , 100, 0, 0); evas_vg_shape_stroke_join_set(shape, EFL_GFX_JOIN_ROUND); evas_vg_shape_stroke_color_set(shape, 255, 0, 0, 255); evas_vg_shape_stroke_width_set(shape, 10); evas_vg_node_origin_set(shape, 350, 150); evas_object_vg_root_node_set(vg, container); elm_object_content_set(bg, vg); elm_win_resize_object_add(win, bg); evas_object_resize(win, WIDTH, HEIGHT); evas_object_show(win); elm_run(); elm_shutdown(); Reviewers: smohanty, Hermet, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9492
2019-08-03efl_ui_spin: move the step implementation to spin_buttonMarcel Hollerbach
having efl_ui_spin implementing efl.ui.range_interactive does not make sense. Efl.Ui.Spin is a not interactive widget, so it should not implement that interface. ref T7897 Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D9475
2019-08-03efl_ui_spin_button: fix initial displaying of formatting stringMarcel Hollerbach
spin_button should also implement formatted_apply, the label has a different part name then spin. ref T8097 Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D9474
2019-08-03efl_ui_spin_button: stop calling only the parentMarcel Hollerbach
if the spin button is skipped the spin is called directly, the label will display the wrong value. Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D9473
2019-08-02elm toolbar - fix toolbar item separators and refactor aling/fill of itemCarsten Haitzler (Rasterman)
only set this is one place and thus get it consistent/right for separators vs other items. @fix
2019-08-02elm toolbar - fix packing options at start to avoid visual layout bugsCarsten Haitzler (Rasterman)
i spoetted open moving around and shrinking when it shouldnt - packging options (fill/align) not always set right. this fixes that. @fix
2019-08-02ecore evas x and e sync rendering - disable as it's unusedCarsten Haitzler (Rasterman)
this has been optional and unused by e for a very long time ot try sync front-buffered software rendering with the wm/compositor. we may as well remove the bloat that is here that is unused... it's been inactive for many years anyway.
2019-08-02efl_canvas_rectangle: rendering optmization.Hermet Park
There was a weird profiling result that rectangles drawing is much much slower than images. Checked reason, the computation rect clip area is the overload point. I don't think it's necesary but we can simplely improve the performance here by replacing native function. I tested this by drawing 400 number of rectangles, and this patch improved up abt 10 fps(sw), 20fps(gl). @TEST CODE MAX_SIZE = 400; for(int i=0; i< MAX_SIZE; i++) { Evas_Object *rect = evas_object_rectangle_add(layout); int x = rand() % WINDOW_WIDTH; int y = rand() % WINDOW_HEIGHT; evas_object_resize(rect, ELM_SCALE_SIZE(200), ELM_SCALE_SIZE(200)); evas_object_move(rect, x, y); evas_object_color_set(rect, (rand() % 256), (rand() % 256), (rand() % 256), 255); evas_object_show(rect); Elm_Transit *transit = elm_transit_add(); elm_transit_object_add(transit, rect); int dX = rand() % WINDOW_WIDTH; int dY = rand() % WINDOW_HEIGHT; elm_transit_effect_translation_add(transit, 0, 0, dX - x, dY - y); elm_transit_repeat_times_set(transit, -1); elm_transit_duration_set(transit, 1.0); elm_transit_go(transit); }
2019-08-02evas rectangle: code refactoring.Hermet Park
Just removed white spaces, fixed indentation. No logical changes.
2019-08-02efl_input_clickable: increase the time interval for repeated counterJaehyun Cho
Summary: The repeated counter in Efl.Input.Clickable_Clicked can be used to identify double click or triple click. Previously, the repeated counter in Efl.Input.Clickable_Clicked was calculated within the time interval 0.1 second. Now, the time interval for the repeated counter is increased to 0.25 second. It seems that 0.25 second is more appropriate to identify if the two consecutive clicks should be considered together. (e.g. considered as double click or triple click) Moreover, in ecore_event and edje, 0.25 second is already used as a time interval for double click. Test Plan: 1. Run Efl.Ui.Button in elementary_test 2. Do double click or triple click the buttons Reviewers: segfaultxavi, bu5hm4n, YOhoho Reviewed By: segfaultxavi, YOhoho Subscribers: YOhoho, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9485
2019-08-01efl_ui/tags: set entry to fill verticallyMike Blumenkrantz
forgot this in previous patch Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9479
2019-08-01efl_ui/tags: use user size hints for internal objectsMike Blumenkrantz
restricted min size hint should only be set by an object's own group_calc function. all other cases should use regular min size hint Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9477
2019-08-01efl_ui/flow.box: fix item calc with mixed weightsMike Blumenkrantz
if a box contains an entire row of items with weight(0), and the next row contains items with weights set, the item count must be correctly incremented so that the box uses the right items in its calculations @fix Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9480
2019-08-01efl_ui_position_manager: add event for updating the rangeMarcel Hollerbach
the new event can be used to message back the currently visible range from the position to the collection / collection_view. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9462
2019-08-01efl_ui_spin_button: rename circulate to wraparoundMarcel Hollerbach
ref T8097 Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D9461
2019-08-01efl_ui_spin_button: use the newly emitted event from range_interactiveMarcel Hollerbach
this event is not also in range_interactive, so better use this. ref T8097 Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D9459
2019-08-01efl_ui_range_interactive: add a new eventMarcel Hollerbach
the steady event from slider now moved here. A spec test suite and the corresponding implementations will follow. ref T7894 Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D9458
2019-08-01mono-docs: Add misc struct docsXavi Artigas
Summary: Structs have a convenience constructor which was missing parameter documentation. Struct fields need a <value> tag or there is a hole in the generated docs. The documentation for the type of the field has been used, when available. Test Plan: Build docs and look at generated pages for structs. Reviewers: lauromoura, vitor.sousa, felipealmeida Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9478