summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-07-10efl_ui_textpath: remove unnecessary set.Hermet Park
Textpath positioning is completed manually, this is duplicated request, remove it.
2019-07-09Updating spanish translationmaxerba
2019-07-09evas_object_textblock: update documentation, setting color partAli Alzyod
Summary: Now Textblock has the ability to parse color names same as hex value strings. Reviewers: segfaultxavi, woohyun, bowonryu Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9250
2019-07-09docs: Update Efl.Ui.Box documentationXavi Artigas
It has had a big uppercase FIXME text for 2 years.
2019-07-09efl_ui_pan: emit the viewport change when the position changesMarcel Hollerbach
otherwise the viewport changes are not propagated correctly. This is needed in order to have the new item_container bug free. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9249
2019-07-09edje - double make sure edje messages are zero'd due to a segv i sawCarsten Haitzler (Rasterman)
i saw a segv on freeing em->msg as it was a junk ptr... i dont know for sure it msg was properly initted but as em is recycled from trash be sure and zero it when digging out of trash because em->msg was not a valid ptr (and i wasnt using valgrind at the time to know for sure and cant find this with valgrind now). @fix
2019-07-09tests/efl_ui: add event test for sliderMike Blumenkrantz
this verifies event emission for slider like in legacy tests Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9246
2019-07-09tests/evas: add file for evas event unit tests, add frozen mouse-up testMike Blumenkrantz
this adds an explicit test verifying that if an object is frozen before a mouse-up event is passed through it, the callback for mouse-up will not be called for that object Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9239
2019-07-09Introduce efl_ui_scroll_util files.Marcel Hollerbach
Summary: this brings API that connects the theme to the object. This reduces the amount of code that you need to write in order to develop a widget that can be scrollable. For now efl_ui_grid and efl_ui_scroller are replaced with it. efl_ui_list / efl_ui_list_view are not handeled with this, as they will be replaced with newer widgets. Right now this is only avaiable in the C API. However, wrapping this into a mixin should be easy. Reviewers: zmike, segfaultxavi Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9245
2019-07-09elm - cursor - clear cursor job late to avoid crashCarsten Haitzler (Rasterman)
during cursor free a move cb seems to add another job again after it wss already deleted during the free process, so just clear the job really late instead. valgrind found this one @fix
2019-07-09efl-mono: Treat Warnings as ErrorsXavi Artigas
Now that there are 0 documentation warnings, let's make sure we stay this way.
2019-07-09efl_ui_clickable: fix not to be clicked if pointer is processedJaehyun Cho
If pointer is processed by a container in its POINTER_MOVE event callback, then clickable calls efl_ui_clickable_button_state_reset not to be clicked by efl_ui_clickable_unpress. e.g. Efl.Ui.Active_View.View_Manager_Scroll sets pointer processed in POINTER_MOVE event callback not to click button during scrolling. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9204
2019-07-09cxx: fix some compilation warnings in C++ examplesVitor Sousa
Summary: Fix some warnings in the C++ examples for elementary. These examples are build by default in the normal meson compilation. Only accidental warnings were fixed, explicit warnings using the `#warning` preprocessor directive were maintained. Test Plan: Compile with C++ binding. Reviewers: lauromoura, felipealmeida, segfaultxavi Reviewed By: segfaultxavi Subscribers: bu5hm4n, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9244
2019-07-09csharp: update and disable tests that use deprecated eolian type notationsVitor Sousa
Summary: Avoid the usage of deprecated Eolian type notations like `ptr()` in C# unit tests. In places where an alternative type could be used, tests were changed to use a valid type, e.g. containers that stored `ptr(int)` were changed to store `string`. Tests for types that require a pointer notation were commented out and disabled. They can be re-enabled when a new notation to the type is defined. Depends on D9238 Test Plan: `meson test` Reviewers: lauromoura, felipealmeida, q66, segfaultxavi Reviewed By: lauromoura Subscribers: cedric, #reviewers, bu5hm4n, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9247
2019-07-09eolian_mono: fix non-beta build and support for slice/rw_slice keywordsVitor Sousa
Summary: Add support for `slice` and `rw_slice` keywords in eolian_mono. Now it generates the proper manual binding type for these native types. Make unit tests use these keywords instead of native names. Remove some unnecessary `@beta` tags from eolian types in unit tests so now tests correctly compile without the `mono-beta` compilation flag. Also make tests that use `Eina.Binbuf` "beta only". In a future update, the external type `Eina.Binbuf` will be marked as beta, so we shield the binding in anticipation. Test Plan: `meson -Dbindings=mono -Dmono-beta=true` and `meson -Dbindings=mono -Dmono-beta=false` Reviewers: lauromoura, felipealmeida, q66, segfaultxavi, bu5hm4n Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9238
2019-07-09csharp: fix build warning related with an unused field in an unit testVitor Sousa
Test Plan: `meson test` Reviewers: lauromoura, felipealmeida, segfaultxavi Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9240
2019-07-09efl_canvas_vg: prevent dangling pointers.Hermet Park
2019-07-09Ector.Renderer: Prevent too many unref.JunsuChoi
Summary: pd-> surface will try efl_xref whenever surface_set is called. desturctor is called from a subclass, ref and unref do not match. So, Add this condition temporarily. Test Plan: N/A Reviewers: Hermet, smohanty, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9235
2019-07-09vg_common_json: Always set the alpha color of the container.JunsuChoi
Summary: Fixes the problem that alpha color is not set when alpha will be 255. Test Plan: N/A Reviewers: Hermet, smohanty, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9216
2019-07-09efl_gfx_shape: Stroke color use a premultiplied color.JunsuChoi
Summary: R, G, and B must not be higher than alpha. Test Plan: //test code Ecore_Evas *ee = ecore_evas_new(NULL, 0, 0, 600, 600, NULL); ecore_evas_show(ee); Evas *evas = ecore_evas_get(ee); Evas_Object *vg,*bg; bg = evas_object_rectangle_add(evas); evas_object_color_set(bg, 0, 0, 255, 255); evas_object_focus_set(bg, 1); evas_object_show(bg); int w, h; ecore_evas_geometry_get(ee, NULL, NULL, &w, &h); evas_object_resize(bg, w, h); vg = evas_object_vg_add(evas); evas_object_focus_set(vg, 1); evas_object_show(vg); evas_object_resize(vg, w, h); Efl_VG *shape, *container; container = evas_vg_container_add(vg); shape = evas_vg_shape_add(container); evas_vg_shape_append_rect(shape, 0, 0, 200 , 200, 10, 10); evas_vg_shape_stroke_color_set(shape, 255, 255, 255, 10); evas_vg_shape_stroke_width_set(shape, 20); evas_vg_node_origin_set(shape, 200, 200); evas_object_vg_root_node_set(vg, container); ecore_main_loop_begin(); ecore_evas_shutdown(); Reviewers: Hermet, smohanty, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9217
2019-07-09evas_render: add restacked mapped obj to redraws rectShinwoo Kim
Summary: We are adding A object area to the redraws rect when object stack is changed from (1) to (2) if A object is not mapped. (1) ┌────────┐ │Object A│┐ └────────┘│ └────────┘ (2) ┌────────┐ │┌────────┐ └│Object B│ └────────┘ But if A object is mapped, then we are adding only part of A object area. (part of A) ┌───────┐ │┌──────┘ └┘ So the result of stack change is (1) not (2). This patch set is adding restacked mapped object to the restack_objects array, after changing the stack of mapped object to add correct redraws rect. Test Plan: {F3727281} {F3727280} {F3727279} (1) Build and Run attached example on software_x11 engine (2) Mouse down on upper image - the image starts to use map. (3) Then mouse up - upper image should go under the below image. But, the changed result is NOT rendered. Reviewers: Hermet, jsuya, zmike Reviewed By: zmike Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9183
2019-07-08Updating french translationmaxerba
2019-07-08efl_ui_spin_button: add test suiteMarcel Hollerbach
this adds a testsuite to emulate and check the usage of buttons in the spin button widget. This also verifies that the correct events are emitted. (For now, the testcases from spin are also copied over, since they inherit from each other) Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9232
2019-07-08efl_ui_spin_button: fix event calling in spin_buttonMarcel Hollerbach
before the spin event for changing the value was called twice if you changed the value by the entry. Additionally, the changed,delay event is not emitted when the value was changed via the arrow buttons. This corrects this, additionally, this enables the delay timer when focus is gone, this is expected and should be supported by the API. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9231
2019-07-08efl_ui_spin_button: make theme consistentMarcel Hollerbach
this reduces the amount of code needed in the widget itself, additionally, the theme now follows a scheme. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9230
2019-07-08efl_ui_spin_button: cleanup internal dataMarcel Hollerbach
there is no reason to store those two times in the internal data, as they do not change at all. Additionally, saving the direction in the internal data has also no reason, since it is *always* used in the call after the setting, so this makes this a parameter. Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D9229
2019-07-08efl_ui_spin_button: this can also be done with the focus callbackMarcel Hollerbach
this makes the code more readable, and reduces the amount of events we are subscribing to. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9227
2019-07-08efl_ui_spin_button: change entry to button before changing valueMarcel Hollerbach
doing this in pressed is kind of weird, if you are on a touchscreen, missclick, and move the finger away, the entry is already transformed, which is weird, this fixes that. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9226
2019-07-08efl_ui_spin_button: this function is 1:1 like this in efl_ui_spinMarcel Hollerbach
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D9225
2019-07-08efl_ui_spin_button: replace timers with autorepeat of buttonMarcel Hollerbach
this was just reimplementing existing behaviour. This can be done more easily Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9224
2019-07-08efl_ui_spec_suite: introduce two new test suitesMarcel Hollerbach
this checks that the expected errors are in place, and the state does not get changed when there is an errornous call. ref T7895 ref T7894
2019-07-08efl_ui_*: get range users onto the same semanticsMarcel Hollerbach
this commits introduces unified behaviour for the users of the range interfaces. This includes: - The same errors for limit_set errors - The same errors for value setting outside the range Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9241
2019-07-08efl_ui_spin: add tests for basic spin featuresMarcel Hollerbach
this tests for the correct event emission. And checks the wheel interaction. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9221
2019-07-08docs: Fill last missing docs from EO filesXavi Artigas
Some docs have been filled with placeholder text ("TBD") or with preliminary text (marked with //TODO). Having 0 doc warning we can now enable Warnings as Errors in mono, and in Eolian later on.
2019-07-08Revert "efl: prevent usage of some Eina.* stub types in stable APIs"Vitor Sousa
C# does not support `slice` and `rw_slice` yet. Reverting until proper support lands. This reverts commit ec7bc0eddd7abc77d28605b0a6f0aea2e246a0ee.
2019-07-08csharp: fix some build warnings related with incorrect and missing documentationVitor Sousa
Summary: Some parameter names, tag names and cref identifiers in the documentation were incorrect and causing warnings during compilation. There were also warnings related with missing documentation in publicly visible elements in the manual binding. This commit fixes these incorrections and adds documentation to the manual binding in order to solve these compilation warnings. Warnings related with missing documentation in `.eo` files are still present. Test Plan: Just compile with mono binding. Reviewers: lauromoura, felipealmeida, segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9243
2019-07-08efl: prevent usage of some Eina.* stub types in stable APIsDaniel Kolesa
2019-07-08eolian: fix leak in eolian_state_file_path_parseMike Blumenkrantz
Summary: this fixes a trivial leak where a string is leaked at the end of the function. it is not significant, but it still appears in leak detections. Reviewers: q66 Reviewed By: q66 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9124
2019-07-08eolian_cxx: update eolian_cxx to recognize slice and rw_sliceVitor Sousa
Summary: Update eolian_cxx to recognize the new keywords `slice` and `rw_slice`, so it can generate the corresponding types `Eina_Slice` and `Eina_Rw_Slice`. Reviewers: lauromoura, felipealmeida, q66 Reviewed By: q66 Subscribers: cedric, bu5hm4n, #reviewers, segfaultxavi, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9237
2019-07-08eolian_cxx: update tests to no longer use forbidden eolian notationsVitor Sousa
Summary: Update eolian_cxx tests in order to remove forbidden eolian notations. For tests with containers that support non-pointer types, change `ptr(int)` to `int`. For tests with containers that only support pointer types, change `ptr(int)` to `string`. Remove tests for features that are no longer meaningful with eolian new restrictions. Add a FIXME note to eina::range_array when used with eina::string_view. Reviewers: lauromoura, felipealmeida, q66 Reviewed By: q66 Subscribers: cedric, #reviewers, #committers, bu5hm4n, segfaultxavi Tags: #efl Differential Revision: https://phab.enlightenment.org/D9236
2019-07-08eolian: remove API to get freefunc of typeDaniel Kolesa
This is not supported anymore. For now, the syntax is kept around because of broken C++ tests, but afterwards it will also be removed.
2019-07-08eolian: remove builtin freefuncsDaniel Kolesa
For now this does not alter API behavior, so freefuncs are still transitive to aliases etc., this will get removed later.
2019-07-08eolian_gen: remove reliance on builtin freefuncsDaniel Kolesa
2019-07-08elua: add error api into eolian bindingsDaniel Kolesa
2019-07-08eolian_gen: introduce C generation support for error typesDaniel Kolesa
ref T6890
2019-07-05elementary: rename Activew_View to Spotlight.Cedric BAIL
View is something that is expected in the context of MVVM, so using it somewhere else is going to lead to some confusion. Spotlight does descrive the objective of all of this widget in actually a more explicit way as they all give the spotlight to one sub widget at a time. I have also renamed the View_Manager to be just Manager as the View there wasn't useful.
2019-07-05docfx: Remove collapsible sectionsXavi Artigas
They didn't render correctly in all cases.
2019-07-05csharp: Fix Future callback lifetimeLauro Moura
Assigning a method directly to a field expecting a delegate creates a delegate on the fly. This delegate can be collected normally as any collectable object. In dotnet the GC is more aggressive, causing this delegate to be collected and C trying to call an invalid function. To avoid this, we create a static delegate that will be passed to C. Its lifetime will be tied to the static method it wraps.
2019-07-05csharp: encapsulate some internal code of EoWrapperVitor Sousa
Summary: Encapsulate some parts of EoWrapper making them less accessible to lib users. This can avoid unnecessary and risky usage of code that is only intended for internal usage. `inherited` field was made private and renamed to `generated`. Now its value can only be obtained through the `IsGeneratedBindingClass` property. `handle` field was made private. `eventLock` was renamed to `eflBindingEventLock` `ConstructingHandle` property set was made private. Constructors that are used to create new EFL# managed objects by wrapping a preexisting eo handle now receive a specific struct wrapping the handle pointer. This can avoid faulty interactions with the Reflection engine used only for generated classes that implement this constructor. Test Plan: meson test Reviewers: lauromoura, felipealmeida, YOhoho Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9212
2019-07-04efl_ui_widget: optimize focusMarcel Hollerbach
this commit ensures 2 things: 1. This ensures that the parent is not evaluated when there was no state changed, this cuts down roughly 30% of the calls to full_eval 2. This ensures that we only listen to parent manager changes when we are actaully registered. This reduces the amount spend in event emission a lot.