summaryrefslogtreecommitdiff
path: root/src/examples (follow)
AgeCommit message (Collapse)Author
2015-10-09ecore_con: preventing possible NULL pointer dereference.Srivardhan Hebbar
Summary: Checking if client is NULL before freeing is not of much use. If it is NULL, it would have crashed before when it was dereferenced in printf. So checking NULL before dereferencing. Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com> Reviewers: cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3151 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-04examples: fix eina_tmpstr example after revert of strftimeStefan Schmidt
Was left broken after the eina_tmpstr_strftime revert.
2015-09-28Eo: Fix examples and benchmarks according to recent Eo changes.Tom Hacohen
2015-09-28Eo: Remove EO_SENTINEL.Tom Hacohen
This was never really needed because we always had the count. Removing this now because we are already breaking API and ABI.
2015-09-28Eo: Drop doc field from ops and events.Tom Hacohen
This hasn't been used for a while. Since we are going to break Eo a bit anyway it's a good opportunity to drop this. This may cause a slight performance issues with legacy events, such as smart callbacks. This shouldn't really be a problem as we've migrated away from them. If it does, we need to migrate the remaining parts. Only relevant for callbacks that are added before the classes are created, which shouldn't be possible except for smart, only for old evas callbacks.
2015-09-23eina: add example for eina_tmpstr.Shilpa Singh
Summary: Example for eina_tmpstr added. Example tests for eina_tmpstr_add_length, eina_tmpstr_len, eina_tmpstr_del and eina_tmpstr_strftime APIs Signed-Off By: Shilpa Singh <shilpa.singh@samsung.com> Reviewers: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3087 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-23ecore_example: fix file name in the example's comment.Srivardhan Hebbar
Summary: Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com> Reviewers: cedric, stefan_schmidt Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3089 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-23ecore_con: preventing possible NULL pointer dereference.Srivardhan Hebbar
Summary: Checking if client is NULL before freeing is not of much use. If it is NULL, it would have crashed before when it was dereferenced in printf. So checking NULL before dereferencing. Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com> Reviewers: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3088 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-21evas: node that are used for a fill should not have a parent or they are ↵Cedric BAIL
going to be drawn. @fix example for Efl VG.
2015-09-19Edje Example: Fix wrong usage of evas_object_color_set APIYeshwanth Reddivari
Summary: Evas only handles pre multiplied colors. So use r,g,b values lesser than alpha to prevent error message. Signed-off-by: Yeshwanth Reddivari <r.yeshwanth@samsung.com> Reviewers: sachin.dev, singh.amitesh Reviewed By: singh.amitesh Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3073
2015-09-11ecore - let the ecore_con_eet_*.c examples build.David Walter Seikel
When using the --enable-always-build-examples configure option, these two examples need to be linked to eet. @fix
2015-09-08eet_example: Fixing memory leak.Srivardhan Hebbar
Summary: calloc is done 2times, so there is a memory leak. So fixing that. Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com> Reviewers: cedric, stefan_schmidt Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3032
2015-09-07evas examples: avoid shadowing a global variable in a functionStefan Schmidt
2015-09-07ecore_example: Fixing NULL deference.Srivardhan Hebbar
Summary: pd was dereferenced and then checked for NULL. If it was NULL, the program would crash much before. So fixed that. Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com> Reviewers: cedric, stefan_schmidt Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3031
2015-09-07ecore_example: Fixing memory leak.Srivardhan Hebbar
Summary: Fixed a memory leak in this example. Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com> Reviewers: cedric, stefan_schmidt Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3010
2015-09-07ecore_example: Fixing NULL dereference.Srivardhan Hebbar
Summary: cd was dereferenced and then was checked for NULL. If cd is NULL, it would crash before itself. So checking for NULL before dereferencing cd. Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com> Reviewers: cedric, stefan_schmidt Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3009
2015-09-07ecore_example: Cleanup of ecore_compose_get_example.cSrivardhan Hebbar
Summary: Relating to D3010. This patch is code cleanup. Have done dos2unix. After this will update D3010 bug. Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com> Reviewers: cedric, stefan_schmidt Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3025
2015-08-21evas: improve simple VG example to interpolate a full VG tree.Cedric BAIL
2015-08-20ecore_imf_example: remove unnecessary code to set client windowJihoon Kim
2015-08-07Fix grammar in error messages.Yomi
Summary: Changes: src/examples/eio/eio_file_copy.c src/tests/eio/eio_test_file.c src/tests/eio/eio_test_xattr.c Reviewers: cedric, thiepha, Hermet Reviewed By: thiepha, Hermet Subscribers: thiepha, cedric Differential Revision: https://phab.enlightenment.org/D2912
2015-08-04Evas canvas3d: Move evas 3d types to evas_types.eotOleksandr Shcherbina
Summary: Move evas_canvas3d types from Evas_Eo.h to evas_types.eot Change enum constatnt for vertex_arrtib, material_attrib, blend_func Correct namespace for Evas.Real type Reviewers: cedric, tasn Reviewed By: tasn Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2734
2015-08-03eio: grammar and typo fixes in docs.Yomi
Summary: Fix a sentence. Changes: src/examples/eio/eio_file_ls.c Reviewers: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2894
2015-07-28examples: Update .gitignore for binariesStefan Schmidt
2015-07-28evas canvas3d: bounding box does not change the position according objectIvan Furs
Summary: This fix need for synchronous rotation mesh and aabb of "sonic" in example "evas-3d-aabb.c". @fix Reviewers: Hermet, cedric Reviewed By: cedric Subscribers: sri.hebbar, cedric Differential Revision: https://phab.enlightenment.org/D2779 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-07-23examples/emotion: Remove unused callback functions from generic exampleStefan Schmidt
2015-07-23examples/ecore_con: Mark some unused parameters as suchStefan Schmidt
2015-07-23examples/evas/shooter: Move image path into file that uses them.Stefan Schmidt
The evas-3d-shooter-header.h is used by two binaries. One is using these image path and the other not. Which means that we get a bunch of warnings thrown at us during the compile of the binary which does not use them as unused variables. Solve this by having them only in the place where they are actually used.
2015-07-23examples/evas/shooter: Add double include guards to header file.Stefan Schmidt
2015-07-23examples/evas/shooter: Remove more unused variables.Stefan Schmidt
2015-07-23examples/evas/shooter: Remove unused variableStefan Schmidt
The column.ply does not even exist. Might have been removed and this part forgotten.
2015-07-14example: check NULL value in ecore imf exampleJihoon Kim
2015-07-01Evas Textblock: Add obstacle objects featureDaniel Hirt
Summary: Introducing a new feature for Evas Textblock. This allows the layout to wrap around other evas objects. The following API is added: - obstacle_add - obstacle_del - obstacle_update Evas objects can now serve as textblock obstacles, if positioned and visible on the text area. The text will wrap around the obstacles according to the wrapping mode set to it. This also modifies the current wrapping code to handle obstacle wrap points as well. The wrap index query function is modified so that forward-scanning (specific cases) may be disabled when treating obstacle wrap point. RTL text is currently unsupported by this feature. Consult added docs and example for usage. @feature Test Plan: Evas example and test in evas_suite are provided with this. Reviewers: tasn Subscribers: raster, JackDanielZ, cedric Differential Revision: https://phab.enlightenment.org/D2405
2015-06-30doc: Fixup EDC documentation about filters & examplesJean-Philippe Andre
2015-06-25evas: fix shooter exampleperepelits.m
Summary: Disable atlas flag for all objects, fix motion algorithm, add primitives. Reviewers: Hermet, raster, cedric Subscribers: cedric, artem.popov Differential Revision: https://phab.enlightenment.org/D2693 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-24eolian_cxx: Use C++ wrappers instead of native types as parametersVitor Sousa
Summary: Using C++ wrapper types in the signature of methods of the generated classes. Now, when the type is an Eo type defined in Eolian, eolian_cxx will detect it and use the equivalent C++ wrapper. Types defined in Eolian no longer need to be specified in the lookup table, so removed them from there. Disable wrapping of non-const char*. The current wrapper (unique_ptr) is not suited for some required operations like ownership acquisition from C code. Fix constructing properties that only have the "set" method. Fix translation of non-const parameters. Modified Makefiles to allow proper inclusion of evas_cxx headers required by some tests and examples. Move one auxiliary function to another reader to make it more accessible. @feature Reviewers: felipealmeida, q66, cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2752
2015-06-24examples: Fix build after ecore_buffer commit.Stefan Schmidt
Since 8b621775619b9959fe952b095b3baaa7aaa99572 make examples fails to build as the examples have been included without checking if ecore_buffer is actually enabled to build. make[2]: *** No rule to make target '../../../src/lib/ecore_buffer/libecore_buffer.la', needed by 'ecore_buffer_example'. Stop. I'm running make examples during the nightlies now in the hope to catch those.
2015-06-22ecore-buffer: Add ecore_buffer library to EFL.Seunghun Lee
Summary: Ecore_Buffer is abstraction of graphic buffer. it supports backend of shm, x11_dri2 and x11_dri3 for now, and this library also provides method to share buffers between processes. Ecore_Buffer_Provider and Ecore_Buffer_Consumer is for this, sharing buffer. provider draws something in to Ecore_Buffer, and consumer receives and displays it. the binary, bq_mgr is a connection maker for buffer provider and consumer. it can be included Enlightenment as a deamon later. @feature Test Plan: 1. Configure with --enable-ecore-buffer and --enable-always-build-examples to build examples. 2. Run bq_mgr, it connects consumer and provider. 3. Run ecore_buffer_provider_example and ecore_buffer_consumer_example Reviewers: lsj119, gwanglim, cedric, zmike, jpeg, raster, devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2197
2015-06-18eina: add eina_simple_xml example.ChunEon Park
This example just prints tag and it's attributes in xml file. But this example intended for the scenario, if the attributes have the "<" or" >" characters inside of the string.
2015-06-18Examples: Fix emotion basic exampleDaniel Zaoui
2015-06-18Examples: fix compilation due to inlineDaniel Zaoui
Undefined references were occurring on inline (not static) functions. Adding static to these functions solves the issue.
2015-06-17evas: change interface evas_3d to evas_canvas3dOleksandr Shcherbina
Summary: Regard to https://phab.enlightenment.org/T2479 it is need for right generation Eolian files Reviewers: cedric Subscribers: cedric, tasn Differential Revision: https://phab.enlightenment.org/D2711 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-17evas_canvas3d: cube chaotic was not initialized and relied on luck to be ↵Ivan Furs
zeroed by default. Summary: Cube chaotic was rotated, because angle in structure of "SceneData" have random number. Reviewers: cedric, Hermet Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2643 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-11edje: add po file support in edc translation.katpavalli
Summary: Implementation to support .po files in edc for translation Test Plan: Test Code to test this implementation is done as part of efl/src/examples/edje/edje-text.c and efl/src/examples/edje/text.edc edje_cc -md . text.edc && gcc -o edje-text edje-text.c `pkg-config --libs --cflags ecore-evas edje evas ecore eo` ./edje-text 1) Click On the text "Click here" The language gets changed. Reviewers: shilpasingh, cedric Reviewed By: shilpasingh, cedric Subscribers: cedric, rajeshps, govi, poornima.srinivasan Differential Revision: https://phab.enlightenment.org/D2573 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-07emotion: porting evas smart callbacks to eoAvi Levin
2015-06-05eo: move some eo files to new doc syntaxDaniel Kolesa
2015-06-01edje: add ability to change the language on one specific edje object.katpavalli
Summary: Add a new property to edje_object.eo for setting the language on one Edje_Object. Test Plan: Test Code to test this implementation is done as part of efl/src/examples/edje/edje-text.c and efl/src/examples/edje/text.edc edje_cc -md <dir path>/efl/src/examples/edje/ text.edc && gcc -o edje-text edje-text.c `pkg-config --libs --cflags ecore-evas edje evas ecore eo` ./edje-text 1) Click On the text "Click here" The language gets changed as per the specific edje object. 2) Click on the text object at bottom. "Click here" The system language gets changed and the below two edje objects language are changed globally. Reviewers: cedric, shilpasingh Subscribers: poornima.srinivasan, govi, rajeshps, cedric Differential Revision: https://phab.enlightenment.org/D2559 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-29evas: Evas_3D examples use new API for creating primitives.Bogdan Devichev
Summary: Examples changed due to D2516 Reviewers: Oleksander, Hermet, raster, cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2517 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-29gitignore++Daniel Kolesa
2015-05-28Eo base: Remove the free_func parameter from key_data_set.Tom Hacohen
This was not really useful and against the Eolian guidelines. While I promised I won't break things until the 27th, I was ill (still am), so I'm giving myself a 1 day pass. :P
2015-05-20Eo: Add a return value to eo_constructor().Tom Hacohen
From now on, constructors should return a value, usually the object being worked on, or NULL (if the constructor failed). This can also be used for implementing singletons, by just always returning the same object from the constructor. This is one of the final steps towards stabilizing Eo. @feature