Commit Graph

78 Commits

Author SHA1 Message Date
Xavi Artigas 6f183d62c2 Adapt to latest changes
Including removal of the manual inclusion of text headers!
2019-12-13 13:27:06 +01:00
Xavi Artigas cba451e99b More adaptation to latest Text changes
Previous fix relied on old headers still being present, which is not good.
2019-12-11 15:51:03 +01:00
Xavi Artigas 868ed77548 Update code comments (and typos) 2019-10-28 09:48:42 +01:00
Xavi Artigas b8fd0c3b74 Adapt examples to latest Unified API changes
Efl.Ui.Text headers have to be manually included for now, since they still depend
on Legacy headers.
Padding API has lost a parameter.
2019-10-03 12:19:03 +02:00
Bruno da Silva Belo fa93b9f7c0 Fixing compiles errors from examples, c and c#.
Summary: Change from efl broke the compilation of examples, updating names to the new changes.

Reviewers: lauromoura, felipealmeida

Reviewed By: lauromoura

Differential Revision: https://phab.enlightenment.org/D9581
2019-08-16 15:31:38 -03:00
Xavi Artigas e8245fe5dd Remove EFL_EO_API_SUPPORT
This is not needed anymore.
2019-07-24 12:11:58 +02:00
Xavi Artigas 21567fcccf Efl.Ui.Dir -> Efl.Ui.Layout_Orientation 2019-06-14 11:18:23 +02:00
Xavi Artigas af73959386 Use direction instead of table_direction in table examples
Efl.Ui.Direction.direction is simpler to understand than
Efl.Pack_table.table_direction. Also, the latter might disappear very soon.
2019-05-17 15:26:02 +02:00
Xavi Artigas b2c41e4e01 mono-examples: Adapt to changes in Efl.Pack 2019-04-26 12:58:15 +02:00
Xavi Artigas 679c89d98d Adapt to latest event names 2019-03-09 15:54:38 +01:00
Xavi Artigas aad5b641c8 More fixes to adapt to latest API changes
EFL_UI_WIN_BASIC -> EFL_UI_WIN_TYPE_BASIC
2019-03-05 09:30:09 +01:00
Xavi Artigas 3e1aefa7ea Further fixes to adapt to latest API changes 2019-03-04 18:17:36 +01:00
Mike Blumenkrantz d16b7e48bc fix examples build for latest efl 2019-03-02 10:38:07 -05:00
Xavi Artigas 9751e2ed82 Adapt examples translation API changes
translatable -> l10n
2019-01-18 13:35:35 +01:00
Xavi Artigas d1e530d256 Moved focus example to proper place
Summary: It is a guide, not a tutorial.

Reviewers: vitor.sousa, lauromoura

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D7055
2018-09-18 12:43:11 -03: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
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
Xavi Artigas 0448e6cfa4 Update examples to latest EFL API
Summary:
Some of the EFL tutorials are not currently building due to changes in the API :
* const Eo* in getters.
* Efl.Loop -> Efl.App
* efl_net_session_name -> efl_net_session_network_name

Reviewers: cedric

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D5977
2018-04-23 13:35:36 -07:00
Xavi Artigas e4d0ba744e Remove promise ptr printf
Does not make sense since we are not printing the ptr from the callbacks now.
2018-01-05 09:22:09 +01:00
Andy Williams e9e0834b26 Remove efl_loop_main references, we should use our allocated loop 2018-01-04 19:28:26 +00:00
Andy Williams 5c4053942e net: Don't use ecore methods 2018-01-04 16:40:14 +00:00
Xavi Artigas 11091214f7 Overhaul of the Eina_Future example
Run tests consecutively, triggering next one on the future's free callback.
Label test numbers explicitly, code reordering and beautifying.
Some console output beautifying too.
2018-01-02 16:26:03 +01:00
Andy Williams 348ea10272 eina: use a timer instead of another future for our first example 2017-12-22 12:23:54 +00:00
Andy Williams 6a31dd60db eina: Fix futures for new core loop 2017-12-21 16:00:29 +00:00
Andy Williams 373a89a421 core: Sit the freeze/thaw example on mainloop for now 2017-12-21 14:16:58 +00:00
Andy Williams 24b7f14c14 core: Update to loop rename Efl.Loop_User -> Efl.Loop.Consumer 2017-12-20 17:59:11 +00:00
Andy Williams 5ddb82e0da ui: Update for API grid->table 2017-12-20 14:50:08 +00:00
Andy Williams d226ee2c98 net: simplify io example - no need for full lifecycle 2017-12-19 17:51:20 +00:00
Andy Williams 42de664854 net: Add a buffered net io example that is far simpler than without 2017-12-19 17:48:30 +00:00
Andy Williams 8a9207c986 net: oops, missing semicolon somehow 2017-12-19 17:04:08 +00:00
Andy Williams 988eee570d net: Add session/connectivity reference example 2017-12-19 15:23:57 +00:00
Andy Williams fdad34a429 ui: Add panes to the ui reference now they are working 2017-12-13 12:53:30 +00:00
Andy Williams eabdff1f27 ui: Fix close callbacks for the UI reference examples 2017-12-13 12:53:11 +00:00
Andy Williams af48dd8fba eina: simplify and document our futures example 2017-12-13 12:23:39 +00:00
Andy Williams 54070a9226 eina: Add a first pass futures example (from eina examples) 2017-12-12 19:37:56 +00:00
Xavi Artigas afb4aa07ca Revamp events example
Removed callback,add/del which are confusing events
Added lots of object name printfs
Used a single polling callback
Used array event_add on the timer instead of the main loop for simplicity
2017-12-11 13:51:57 +01:00
Xavi Artigas afae017240 Miscellaneous comment fixes 2017-12-11 13:51:08 +01:00
Andy Williams 95c0ffad65 ui: Add starter of a translation reference example 2017-12-06 12:46:15 +00:00
Andy Williams 557f42bf31 Move core_log to eina_log 2017-12-05 16:52:49 +00:00
Andy Williams 4aa1b33ff2 core: Add a logging example 2017-12-05 16:38:06 +00:00
Andy Williams 9ef1398bfc core: Add an events reference example 2017-12-05 15:07:32 +00:00
Xavi Artigas d022796a35 Do not use efl as a prefix for variables
Renamed efl_fd to fd_obj.
2017-12-04 18:02:07 +01:00
Xavi Artigas 792db6f59b Whitespace 2017-12-04 18:01:49 +01:00
Xavi Artigas c106ec6d44 Proper renaming of vars and methods
To reflect what they really are. I was confused for a while about loops and FDs.
2017-12-04 09:47:44 +01:00
Xavi Artigas f16cef85db Minor cosmetic fixes to core_io 2017-12-04 09:47:44 +01:00
Andy Williams bc275959dd core: Add Efl_Io_File example into efl-core reference
Refactor the copier code into a separate method for clarity.
2017-11-28 09:21:09 +00:00
Andy Williams c41c0cc319 Merge branch 'master' into devs/xartigas/tutorials 2017-11-27 14:00:02 +00:00
Andy Williams d4beab8013 ui: Add containers reference 2017-11-27 13:18:42 +00:00