Commit Graph

1281 Commits

Author SHA1 Message Date
Mike Blumenkrantz 5e64366537 sync evas examples build with current efl tree build 2018-08-21 15:50:22 -04:00
Mike Blumenkrantz bf52453fc4 sync edje examples build with current efl tree build 2018-08-21 15:46:58 -04:00
Mike Blumenkrantz 3671163a58 add remaining evas examples to build 2018-08-17 14:03:13 -04:00
Mike Blumenkrantz 56623240b7 just use subdir clean rules for unsorted examples build 2018-08-17 14:02:28 -04:00
Mike Blumenkrantz 3fd4ac3b46 add gitignore for merged examples 2018-08-16 16:12:48 -04:00
Mike Blumenkrantz ac12207f44 fix eolian-cxx dependencies
ensure the OBJS are created before trying to use them with parallel make
2018-08-16 16:03:35 -04:00
Mike Blumenkrantz 86a57475d9 use PATH programs for eolian-cxx examples
this should be configured by the overall build system
2018-08-16 15:48:21 -04:00
Mike Blumenkrantz 2f170d6ffb add eolian_cxx examples to overall makefile 2018-08-16 15:48:15 -04:00
Felipe Magno de Almeida 8567a2ebc5 Fix Makefile.examples for eolian_cxx 2018-08-13 17:27:28 -03:00
Xavi Artigas a9c2388e0d tutorial: Fix behavior of "New" button in texteditor
Summary:
When "New" is pressed, the button should become disabled, because
the file is empty and there is nothing to lose. The "New" button
should only be enabled when there is text to lose by pressing it.

Otherwise, there is no way in the code to disable the button except
at startup, which does not make much sense.

Reviewers: ajwillia.ms, zmike, bu5hm4n

Reviewed By: ajwillia.ms

Tags: #examples

Differential Revision: https://phab.enlightenment.org/D6512
2018-08-10 12:59:52 -04:00
Mike Blumenkrantz fa5d7f80c5 fix some example builds 2018-08-10 09:38:12 -04:00
Mike Blumenkrantz fabab68024 merge all files from efl.git/src/examples 2018-08-09 17:39:17 -04:00
Mike Blumenkrantz d9bc92888a examples 2018-08-09 16:21:58 -04:00
Mike Blumenkrantz 471e5a2e5c build: remove BUILT_SOURCES usage from cxx examples makefiles
ref T7154

Differential Revision: https://phab.enlightenment.org/D6656
2018-08-03 13:47:25 +02:00
Mike Blumenkrantz 9126f7fc39 build: move src/examples/ to a single makefile
this greatly improves build times by improving parallelizing, though it
does introduce more BUILT_SOURCES usage which causes builds with cxx
bindings to take significantly longer

fix T7157
ref T7154

Differential Revision: https://phab.enlightenment.org/D6633
2018-08-03 13:09:22 +02:00
Felipe Magno de Almeida 095d4200b4 Efl.Ui.Layout.Factory: added missing factory_model_connect
Summary:
connect factory to edje part name
when create a new layout connect a factory to it
change example to use the factory_model_connect

Reviewers: felipealmeida

Differential Revision: https://phab.enlightenment.org/D6667
2018-08-01 19:37:37 -03:00
Xavi Artigas 779e0a2cb8 tutorials: Fix C# Life tutorial
Summary:
Fix API changes, plus several logic and syntax errors... again, this had
never been built.

Test Plan:
Didn't build before, builds and runs now, although with some runtime issues
that will be tracked on a separate issue.

Reviewers: felipealmeida, lauromoura, bu5hm4n

Differential Revision: https://phab.enlightenment.org/D6649
2018-07-23 13:16:54 -03:00
Xavi Artigas 3631f36cb0 efl: fix some warnings in examples
Summary:
- Check return vaule of fread()
- Uninitialized var (seriously!)
- Weird struct assignment

Still one warning remains, pending evaluation of T7166.

Fixes T6718

Test Plan:
Those 3 warnings have disappeared and the related example still works
as expected.

Reviewers: zmike

Reviewed By: zmike

Subscribers: cedric, #committers

Tags: #efl

Maniphest Tasks: T6718

Differential Revision: https://phab.enlightenment.org/D6631
2018-07-20 10:36:38 -04:00
Mike Blumenkrantz 7ac2d2ca26 examples/evas: do not attempt to free animator on window delete
Summary:
animators are implicitly destroyed for this case, and attempting to
manually destroy them just results in an error/failure and invalid reads
since this is a poorly designed api which can internally destroy itself

fix T7000
@fix

Reviewers: Hermet, devilhorns

Subscribers: segfaultxavi, cedric

Tags: #efl

Maniphest Tasks: T7000

Differential Revision: https://phab.enlightenment.org/D6488
2018-07-18 15:31:00 +09:00
Carsten Haitzler 4cf487cccd efl selection manager + elm dnd test fix with bad string handling
so there are 2 problems behind T7113. first is a problem in the efl
selection manager being "sloppy" with selection data. it's doing a
strlen on the data but it's not a normal c string. it's a blob of
binary data + length value. this fixes that "sloppiness" by using the
len field.

there is also another bug in the dnd test code that again has to do
with "sloppy" handling of data buffers and assuming nul byte
termination and not using the len field properly.

this fixes T7113.
2018-07-16 16:31:53 +09:00
Mike Blumenkrantz 7535aa1de3 build: fix distcheck when elua is disabled in main tree
Summary:
elua example files were not being distributed correctly as a result of
improper use of build conditionals

Depends on D6582

Reviewers: devilhorns, ManMower

Reviewed By: ManMower

Subscribers: #committers, cedric

Tags: #efl_build

Differential Revision: https://phab.enlightenment.org/D6583
2018-07-13 15:41:15 -04:00
Mike Blumenkrantz d7bef07039 build: fix distcheck building when main tree is not compiled
Summary:
when running 'make distcheck' immediately after configure, the build
will fail because some example files were incorrectly being distributed
instead of being compiled normally in the dist build

Reviewers: ManMower

Reviewed By: ManMower

Subscribers: cedric, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6582
2018-07-13 15:41:11 -04:00
Xavi Artigas f1a5d614f8 tutorials: Fix C# UI reference guides
Summary: These guides needed to be adapted to the new C# API.

Test Plan:
Didn't build before, and now it can be built and run. It has some runtime
errors on exit.

Reviewers: felipealmeida, lauromoura, Hermet

Reviewed By: Hermet

Tags: #examples

Differential Revision: https://phab.enlightenment.org/D6575
2018-07-13 10:15:26 -03:00
Lauro Moura 62ca316375 csharp: Fix gui_main.cs compilation.
Summary:
- Removed the Concrete suffixes
- Changed interfaces to IFoobar
- Event names are now camelcase with 'Evt' suffix
- Methods with the same name as its class are prefixed with 'Do'
  due to C# CamelCase methods (Pack.Pack -> Pack.DoPack)
- Updated efl.ui.win.Type to efl.ui.Win_Type after API renaming

Reviewers: segfaultxavi, felipealmeida

Reviewed By: segfaultxavi

Differential Revision: https://phab.enlightenment.org/D6508
2018-07-13 10:13:02 -03:00
Xavi Artigas 15aa26eb16 tutorials: Fix C# texteditor app
Summary: Adapt to new API and part names.

Reviewers: felipealmeida, lauromoura

Differential Revision: https://phab.enlightenment.org/D6513
2018-07-05 12:51:30 +02:00
Xavi Artigas aa68b683e5 tutorials: Fix C# eo_intro
Summary: Adapt to API changes plus some other issues (has this ever built for anyone?).

Reviewers: lauromoura, felipealmeida

Differential Revision: https://phab.enlightenment.org/D6505
2018-07-04 15:01:27 +02:00
Alastair Poole 8f66ffac93 Patch for T6342
Summary: Deprecate SSLv3.

Reviewers: zmike, raster, devilhorns

Reviewed By: zmike

Subscribers: cedric, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6334
2018-06-20 14:17:25 +01:00
Alastair Poole 64e2eba9bc examples: fix build on FreeBSD.
Missing header for AF_INET/6. Another small
difference between BSD and Linux et al.
2018-06-14 14:24:04 +01:00
Hermet Park 122d3c793e evas example: removed unnecessary calls for vg shapes. 2018-06-14 20:30:28 +09:00
Larry Lira 89c3f4a223 examples: fix efl_model parent loop add 2018-06-07 19:15:50 -03:00
Hermet Park b34c40baa4 evas gl: update example code for better user understanding. 2018-05-29 11:27:15 +09:00
Xavi Artigas 33dad0d59c Update examples to efl_new / efl_add / efl_add_ref
Reviewers: cedric, q66, bu5hm4n

Reviewed By: cedric, bu5hm4n

Differential Revision: https://phab.enlightenment.org/D6058
2018-05-25 10:17:51 -07:00
Lauro Moura ae8ef9ce48 cxx: Fix examples after part changes
Reviewed-by: Cedric BAIL <cedric@osg.samsung.com>
2018-05-24 16:02:19 -07:00
Lauro Moura d4b0794b75 examples: Elm: Add dependency on efl.la due to efl_part
Reviewed-by: Cedric BAIL <cedric@osg.samsung.com>
2018-05-24 16:02:19 -07:00
Lauro Moura 35a0b7f632 efl_mono: Fixes after efl_part/del changes.
Reviewed-by: Cedric BAIL <cedric@osg.samsung.com>
2018-05-24 16:02:19 -07:00
Cedric BAIL 73876dcbc9 Revert "efl_add_ref - fis to use efl_add properly with a parent."
This reverts commit 2fb5cc3ad09f6aaf82b5d1131ac5ed22ed848bd4.

Most of this change where wrong as they didn't affect the destruction
of the object. efl_add_ref allow for manual handling of the lifecycle
of the object and make sure it is still alive during destructor. efl_add
will not allow you to access an object after invalidate also efl.parent.get
will always return NULL once the object is invalidated.

Differential Revision: https://phab.enlightenment.org/D6062
2018-05-24 16:02:17 -07:00
Jaehyun Cho 7ce001084a examples: Fix slider cxx example based on Efl.Ui.Slider
Unlike Elm_Slider, Efl.Ui.Slider does not support text_set,
format_cb_set, and format_string_set.
To support Efl.Ui.Slider, slider cxx example is modified.
2018-05-15 20:03:20 +09:00
Lauro Moura 93d75b47c9 efl_mono: Update tests and examples after rename
Summary:
Separated from the generator and libs for easier review
Depends on D6050

Reviewers: felipealmeida, vitor.sousa

Reviewed By: vitor.sousa

Subscribers: cedric

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6051
2018-05-03 18:04:41 -03:00
Cedric BAIL 4eebe1b884 elementary: quick fix for filemvc example. 2018-05-01 10:39:01 -07:00
Cedric BAIL 41e3a6bc3d eldbus: update dbus efl.model example. 2018-05-01 10:39:01 -07:00
Cedric BAIL 5e8827afb2 ecore_con: update efl_net_ip_address_example after migration to new Eina_Future. 2018-05-01 10:39:01 -07:00
Cedric BAIL 7092eb69d0 eio: update efl_io_manager_ls example. 2018-05-01 10:39:01 -07:00
Cedric BAIL 8813cd33dd ecore: move close_on_destructor to close_on_invalidate as that describe the behavior best.
Fix all use to correctly behave on invalidate.
2018-05-01 10:39:01 -07:00
Cedric BAIL 9fc9db95ed eio: fix example to use the new EINA_VALUE_ARRAY_FOREACH. 2018-05-01 10:39:01 -07:00
Xavi Artigas 3e23c210cb Fix leaks and double frees in eina_hash example
Summary:
Short-lived eina strings do not need to be explicitly deallocated.
The return value of eina_hash_set DOES need to be deallocated, though.

Reviewers: cedric, ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D6006
2018-05-01 13:21:12 -04:00
Xavi Artigas 4a8b562a40 Update examples after EFL API rename
Differential Revision: https://phab.enlightenment.org/D6002
2018-05-01 13:21:12 -04:00
Xavi Artigas 09923d92c2 Fix double frees and incorrect nprintf in eina_string example
Reviewers: cedric, ajwillia.ms, zmike

Differential Revision: https://phab.enlightenment.org/D6012
2018-05-01 13:14:42 -04:00
SangHyeon Lee a8ea04fc2f efl.ui.view_list : update example text/content name on legacy to efl
update examples and edc as our new naming rule changes.
2018-04-30 19:25:06 +09:00
SangHyeon Lee f774b7b0ba efl_ui_list : introduce new list widget for simple usage
Summary:
most usage of simple list, items are very limited and loading performance is not serious.
to support those requirement, this efl.ui.list will create scrollable box with efl.pack.

user can create list by packing an pre-loaded item object, Efl.Ui.List.Item class.

Test Plan: tested in efl_ui_list_example_1.c in examples.

Reviewers: cedric, felipealmeida

Subscribers: woohyun, Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D5861
2018-04-28 13:41:41 +09:00
Lauro Moura a547e82da2 efl_mono: Names fixes after the big rename
Summary: Depends on D5997

Reviewers: felipealmeida

Reviewed By: felipealmeida

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5998
2018-04-26 10:55:18 -03:00