summaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)Author
2017-11-07elm: Try to fix compilation (link) for OSXJean-Philippe Andre
2017-11-07evas: Add some crash prevention checksJean-Philippe Andre
This could happen if objects still have references while evas is being shut down (a bad situation).
2017-11-07tests: Fix make check for atspi beta APIsJean-Philippe Andre
See 5c997b3aaac6277b8c4965ee8e90d05e1959ac05 Ref D5365
2017-11-07cxx: (Temporary) fix for make checkJean-Philippe Andre
This fixes the C++ compilation tests. list<int> is not allowed by eolian anymore, as the semantics were unclear whether a pointer to int was passed, or if the int was stuffed inside the list by casting. ptr(string) is also not allowed as it's a pointer to a pointer type. Both of the above types are strange when it comes to bindings. While C++ could probably be made to work, it's not clear we could have such types in other bindings. Those types are in fact likely not so useful, as most APIs can be designed around those restrictions.
2017-11-07cxx: Fix log color in eina_log.hhJean-Philippe Andre
Changed from invalid "black" to arbitrary choice of green.
2017-11-07elm: Fix examples/tests using elementary_configJean-Philippe Andre
elementary_config.h should not even exist. It's been hijacked as a private header for elementary, but all "real" configuration is stored in efl's main config.h now.
2017-11-07cxx: Fix some examples, disable or remove othersJean-Philippe Andre
make examples now builds all c++ examples but some of them are in fact empty skeletons. Those either need some c++ love or the final eo api to be ready (eg. menu, popup, ...). I removed some examples that don't have an exact equivalent in EO since the widget is legacy only.
2017-11-07cxx: Add beta define to Evas.hhJean-Philippe Andre
This is probably temporary as well, but it's necessary to make examples compile (with rectangle).
2017-11-07cxx: Fix binding temporarily (efl/interfaces)Jean-Philippe Andre
This uses the new cref keyword instead of inout, as the c++ code has no access to the internals of struct Efl.Text.Cursor.Cursor Something tells me cref may not be the perfect solution here (we lose information on whether this is in, out or inout).
2017-11-07cxx: Fix ifdef protections in function implJean-Philippe Andre
Mote: for protected we should use "protected:" if that is somehow possible.
2017-11-07cxx: Add support for operator == with objectsJean-Philippe Andre
2017-11-07cxx: Modify button example with wrefJean-Philippe Andre
This is more of an experiment than anything else. @felipealmeida I would like to know what you think. Notes: - events still need a better API (event_add isn't part of the object definition...). - references are an issue, when you want to actually delete an object.
2017-11-07cxx: Add experimental "easy" way to use wrefJean-Philippe Andre
I hid it behind ifdef for now as I'm very much unsure of what I'm doing. This whole modern C++ thing is still weird to me :) Prerequisite: #define EFL_CXX_WREF_EASY This allows constructs such as: auto wobj = obj._get_wref(); std::cout << wobj->text_get() << std::endl;
2017-11-07cxx: Add _get_wref() convenience to all classesJean-Philippe Andre
This allows constructs like: auto w_obj = obj._get_wref(); auto cb = std::bind([w_obj]() { auto o = w_obj.lock(); if (!o) return; o->call(); }); event_add(..., obj, cb); Note: I don't like how those wref work. Close to c++ wref but far from EFL wref.
2017-11-07cxx: Mark wref::lock as constJean-Philippe Andre
This allows passing in wref to a lambda. If we passed normal refs, we would end up with dangling references and many ERR messages.
2017-11-07cxx: Add nullptr constructor for weak refsJean-Philippe Andre
This allows constructs such as: wref_obj = obj; ... wref_obj = nullptr;
2017-11-07cxx: Completely rewrite box exampleJean-Philippe Andre
This was showing off box transitions, which don't exist in EO API.
2017-11-07cxx: Fix a few examplesJean-Philippe Andre
- Calendar: Some examples can't be ported. Not good. - Toolbar: Needs the new API to be completed. - Clock: Crashes at runtime. Ping @felipealmeida
2017-11-07cxx: Instantiate objects with 2 refsJean-Philippe Andre
This is the original meaning of efl_add_ref(). Somehow the "ref" bool was set to true in the first call, and false in the second call.
2017-11-07cxx: Place beta API declarations behind ifdefJean-Philippe Andre
NOTE: protected APIs are placed behind ifdef as well in the implementation file. This makes sense since the define is required for the C code to compile, but this isn't what @protected means.
2017-11-07edje_pick: Fix segfault due to wrong memory freeJeeyong Um
2017-11-06evas-object-main: Fix potential null dereferenceChris Michael
Coverity reports that EVAS_OBJECT_DATA_SAFE_GET returns NULL here (184 out of 188 times). As such, we should not be calling _event_animation_object_get with a null object so add a null check here. Fixes Coverity CID1381713 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-11-06evas-object-main: Fix null dereferenceChris Michael
Coverity reports that EVAS_OBJECT_DATA_SAFE_GET returns NULL here (184 out of 188 times). The _all_animation_objects_cancel function directly dereferences the obj parameter passed into it, so lets null check it before calling that function. Fixes Coverity CID1381711 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-11-06evas-object-main: Fix null dereferenceChris Michael
Coverity reports that EVAS_OBJECT_DATA_SAFE_GET returns NULL here (184 out of 188 times). The _all_animation_objects_cancel function directly dereferences the obj parameter passed into it, so lets null check it before calling that function. Fixes Coverity CID1381710 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-11-06emotion: Fix data race conditionChris Michael
Coverity reports that we access vfmapped here without holding a lock. This patch implements eina_lock_take/release while accessing priv->vfmapped. Fixes Coverity CID1381624 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-11-06evas-wayland-shm: Do not dereference a potentially freed pointerChris Michael
Coverity reports that _evas_dmabuf_buffer_init function here can potentially free the surface that was passed into it. If that happens, we should not be calling the _fallback function with surface as the parameter as that will directly dereference the freed pointer. Fixes Coverity CID1381707 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-11-06evas-gl-cocoa: Remove need for useless region_free functionChris Michael
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-11-06evas-gl-drm: Remove need for useless region_free functionChris Michael
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-11-06evas-gl-sdl: Remove need for useless free_region functionChris Michael
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-11-06evas-gl-x11: Remove need for useless free_region functionChris Michael
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-11-06evas-wayland-egl: Remove need for useless free_region functionChris Michael
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-11-06evas-wayland-shm: Remove need for useless free_region functionChris Michael
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-11-06evas-software-x11: Remove need for useless free_region functionChris Michael
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-11-06evas-software-gdi: Remove need for useless free_region functionChris Michael
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-11-06evas-software-ddraw: Remove need for useless free_region functionChris Michael
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-11-06evas-eglfs: Remove need for useless free_region functionChris Michael
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-11-06evas-drm: Remove need for useless free_region functionChris Michael
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-11-06evas-software-generic: Check for render engine function before callingChris Michael
In most engines which inherit from software_generic, they do not implement the outbuf_free_region_for_update function. Most engines have it as an unused function. If we simply add a check here, then we can reduce the need for having useless function in multiple engines. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-11-06efl_ui_calendar: apply efl_ui_focus_compositionWooHyun Jung
2017-11-06evas textblock: handle ellipsis when text's height exceed its area by "br"Youngbok Shin
Summary: Textblock's ellipsis feature only worked when text's width exceeds its area. So, it didn't work when text's height exceeds its area by "br" tags. This patch will do ellipsis when only ellipsis=1.0 is set. @fix Test Plan: make check Reviewers: herdsman, raster, cedric, jpeg, sohyun Reviewed By: raster Subscribers: woohyun Differential Revision: https://phab.enlightenment.org/D5412
2017-11-06edje: don't return negative width and height from _parts_extendsYoungbok Shin
Summary: It should return width and height with positive values or zero. @fix Test Plan: make check Reviewers: raster, jpeg, cedric Reviewed By: raster Subscribers: jiin.moon Differential Revision: https://phab.enlightenment.org/D5422
2017-11-04eo: fix typo.Cedric Bail
Thanks Gustavo.
2017-11-04edje_cc_script: remove build warningSungtaek Hong
Summary: initiate pointer var with NULL to remove build warning Reviewers: conr2d Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5423
2017-11-03eo: add helper to manipulate Eo object as Eina_Value.Cedric Bail
2017-11-03eo: refactor use of efl_replace.Cedric Bail
2017-11-03eina: add a function return a reference to a copy of Eina_Value.Cedric BAIL
2017-11-03elm_code: Trying some markdown syntax, this is complexAndy Williams
2017-11-03elm_code: Trying some markdown syntax, this is complexAndy Williams
2017-11-03edje_recc: don't use negative exit code in a /bin/sh scriptDerek Foreman
Apparently this isn't well supported by dash, which will print an error and return a 2, where zsh and bash will return 255. Explicitly returning 255 seems least surprising. see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772322 #IHaveNoIdeaWhatThisScriptDoes
2017-11-03eolian: disallow ptr() on things that are already pointer-likeDaniel Kolesa
This disallows deeply nested pointers, you can only explicitly ptr() on types that are strictly value types. For a few cases where it was necessary to override this behavior, you can use legacy(ptr(x)) as a temporary measure.