Commit Graph

674 Commits

Author SHA1 Message Date
Stefan Schmidt 1361ad413a examples: evas: put define into config_h guards to avoid redefinition
evas-images5.c:19:0: warning: "EFL_BETA_API_SUPPORT" redefined
 #define EFL_BETA_API_SUPPORT
 ^
 In file included from evas-images5.c:14:0:
 ../../../config.h:360:0: note: this is the location of the previous definition
  #define EFL_BETA_API_SUPPORT 1

We should only define it when we are not using config.h
2016-06-21 17:07:13 +02:00
Stefan Schmidt 8c6216d7d9 examples: evas3d: uniform use of config.h include or manual defines
My recent removal of the EFL_EO_API_SUPPORT define brought some trouble to the
evas 3d examples. The problem was that there was no uniform usage of including
config.h and thus it worked fine in some constellations abut not in others. This
patch should fix the known problems and brings back EFL_EO_API_SUPPORT until we
are removing it from the whole code base.
2016-06-21 17:07:13 +02:00
Stefan Schmidt dcb514f639 examples: edje: rename new svg test file to its correct name
The code does reference a bojo.svg file so does the build system. Rename
bozo.svg to its correct name.
2016-06-21 10:58:54 +02:00
Jean-Philippe Andre 070babcaa7 edje: Fix compilation of svg example (add -beta) 2016-06-21 14:49:26 +09:00
Subhransu Mohanty 0d4216d4de edje/example: Added example for testing vector part with svg images.
Reviewers: cedric, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4062
2016-06-21 14:42:28 +09:00
Jean-Philippe Andre 3e3b78ce99 evas: Rename Evas.Object to Efl.Canvas.Object
One step closer to make the EO inheritance tree look like
it's all Efl.
2016-06-21 14:35:19 +09:00
Jean-Philippe Andre 983e2547e0 examples: Fix misuse of evas image api on canvas 3d
image_size_set is for legacy images
2016-06-21 10:17:02 +09:00
Tom Hacohen c55d3e28ee Adjust the code according to the eo event stop changes.
This was changed in the previous commit.
2016-06-20 18:02:00 +01:00
Stefan Schmidt 6d2b1fd79b examples: eldbus and elementary: fix build after efl model changes
In commit 8e4f383d61188020d5ceeee691fd7df761f10202 the function signature
changed but examples have not been build and fixed.
2016-06-17 12:35:06 +02:00
Jean-Philippe Andre 4d813f6dbf examples: Fix compilation (use legacy func)
name has been removed (it's part of EO).
2016-06-17 19:32:44 +09:00
Simon Lees 73f12dfab2 examples: eina-cxx: ensure the install hook honors a set DESTDIR
Only missing from the mkdir this time.
2016-06-17 15:05:02 +09:30
Jean-Philippe Andre 855a001aa5 Evas: Rename object focus to key_focus
The evas focus concept is valid and applies only to the
keyboard inputs.
2016-06-17 11:37:39 +09:00
Jean-Philippe Andre 807e41e92f Evas: Mark type as legacy and protected
Only set() is allowed for EO, and it's a constructor,
protected function. Unfortunately, this means a lot
of #define EVAS_OBJECT_PROTECTED
2016-06-17 11:37:39 +09:00
Stefan Schmidt 96fefc7b04 examples: elua: ensure the install hook honors a set DESTDIR
Reported by Simotek when testing the latest snapshot:
Were getting closer, "/usr/bin/mkdir -p /usr/share/elua/examples" should
be "/usr/bin/mkdir -p
/home/abuild/rpmbuild/BUILDROOT/efl-1.17.99.48545-1.x86_64/usr/share/elua/examples"
2016-06-16 11:16:30 +02:00
Jean-Philippe Andre 52f5e0607b examples: Use EO_CALLBACKS_ARRAY_DEFINE in all examples
Again, for Windows.
2016-06-16 13:10:35 +09:00
Luciana Magno de Almeida cd360835ea elementary-cxx: Fix compilation of some C++ examples 2016-06-15 15:50:04 -03:00
Stefan Schmidt 194965ba6a examples: evas-3d: these three examples still need EFL_EO_API_SUPPORT as well
EFL_CANVAS_RECTANGLE_CLASS is needed here which is still covered by the EO_API
define.
2016-06-15 11:29:28 +02:00
Stefan Schmidt 1c919e93a5 examples: remove now longer needed EFL_EO_API_SUPPORT define in canvas3d and vg
These examples already had the BETA flag defined so we just need to remove the
EO_API one.
2016-06-14 16:39:03 +02:00
Shinwoo Kim 6978d707d6 Ecore_Input: define data type for joysticks
Summary: This adds support for joysticks for ecore_input

Reviewers: cedric, devilhorns, Sergeant_Whitespace, raster, thiepha, zmike, jpeg

Reviewed By: thiepha, zmike, jpeg

Subscribers: thiepha, stefan_schmidt, zmike, singh.amitesh, Sergeant_Whitespace, jgerecke, cedric, seoz

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D1538
2016-06-13 20:33:29 +09:00
Stefan Schmidt 638a1d7e2e examples: elementary: ad missing math lib to linker flags
We are using cos() and sin() in the efl_thread examples here but never linked
to the math lib. Ubuntu 14.04 on Travis CI errored out with this:

/usr/bin/ld: efl_thread_1.o: undefined reference to symbol 'cos@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
2016-06-13 12:01:13 +02:00
Stefan Schmidt d528d9ab57 examples: eolian_cxx: package extra headers into dist.
Without them examples are not building from tarball distribution
2016-06-10 16:25:03 +02:00
Stefan Schmidt c1713c8be4 examples: elementary: package needed headers into dist
Without them examples are not building from tarball distribution
2016-06-10 16:25:03 +02:00
Stefan Schmidt 701f200994 examples: edje: package po/mo data files into dist
Without them examples are not building from tarball distribution.
2016-06-10 16:25:03 +02:00
Jean-Philippe Andre 1fa1f82f73 Evas: Rename Evas.Image into Efl.Canvas.Image.Internal
Make it abstract.
And add Evas.Image as a legacy-only class.
2016-06-10 13:21:20 +09:00
Jean-Philippe Andre 2dce6080c3 Evas/Edje/Elm: Use combined_min instead of min everywhere
This allows apps to set the objects min size with hint_min,
while letting the rest of EFL define the minimum size with
rstricted_min.

I don't like the property names much...
2016-06-09 16:37:49 +09:00
Stefan Schmidt 179de70189 examples: ecore: do not try to install files which are not available
The ecore_audio examples have been disabled and now do not compile right now.
But as they are disabled they never land in the tarball and thus we error out
with files not aviavle for install. Found by the OpenSUSE build service. Thanks
Simotek for reporting.

[ 2172s] /home/abuild/rpmbuild/BUILD/efl-1.17.99.47400/install-sh: ecore_audio_custom.c does not
exist.
2016-06-07 14:20:17 +02:00
Stefan Schmidt 62afb79dd5 examples: eio: update gitignore for new binaries 2016-06-07 14:20:17 +02:00
Stefan Schmidt 4b4f3ec40d examples: evas: update gitignore for new binary 2016-06-07 14:20:16 +02:00
Stefan Schmidt 0b4d69ccad examples: eio: remove unused variable 2016-06-06 15:43:15 +02:00
Stefan Schmidt 30fade6838 examples: eio: mark unused parameter as such
Really shutting up warnings here to see what else the compiler has to say.
2016-06-06 15:43:15 +02:00
Felipe Magno de Almeida e3081e2e50 eolian-cxx: Rewrite to accomodate new features of the C++ binding 2016-06-06 02:54:36 -03:00
Larry Jr 51f1fb705a eio: Add mime_type property in Eio_Model 2016-06-05 22:08:06 -03:00
Felipe Magno de Almeida ef9436d86e eina: Remove Eina_Promise* parameter to callbacks to promises in examples 2016-06-03 20:03:13 -03:00
Felipe Magno de Almeida 2107af0fc1 eolian-cxx: Fix C++ example compilation 2016-06-03 17:22:18 -03:00
Felipe Magno de Almeida 26186410a3 eina: Fix examples using new Eina_Promise semantics 2016-06-03 17:22:18 -03:00
Jaehwan Kim 1afb0c8050 examples: elementary: fix the wrong spell in comment. 2016-06-03 10:34:25 +09:00
Jean-Philippe Andre 1c067e4430 Evas: Rename Evas.Rectangle as Efl.Canvas.Rectangle 2016-06-02 18:57:30 +09:00
Tom Hacohen 250be1e27a Revert "Eo: Remove eo_del() and make eo_unref() the replacement."
This reverts commit 546ff7bbba788ec834c5608361c0834853f2d5d7.

It seems that eo_del() is useful and removing it was creating bugs.
The issue is that the way we defined parents in eo, both the parent and
the programmer share a reference to the object. When we eo_unref() that
reference as the programmer, eo has no way to know it's this specific
reference we are freeing, and not a general one, so in some
circumstances, for example:
eo_ref(child);
eo_unref(child); // trying to delete here
eo_unref(container); // container is deleted here
eo_unref(child); // child already has 0 refs before this point.

We would have an issue with references and objects being freed too soon
and in general, issue with the references.

Having eo_del() solves that, because this one explicitly unparents if
there is a parent, meaning the reference ownership is explicitly taken
by the programmer.

eo_del() is essentially a convenience function around "check if has
parent, and if so unparent, otherwise, unref". Which should be used when
you want to delete an object although it has a parent, and is equivalent
to eo_unref() when it doesn't have one.
2016-06-01 13:33:21 +01:00
Subhransu Mohanty 712af11641 evas: updated evas_vg_sample with the appen_arc() api as well as _shape_dup() api test.
Reviewers: Hermet, cedric

Reviewed By: cedric

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3966

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-05-31 14:59:26 -07:00
Lauro Moura 6d7b331448 eio: Adds Eo-based Eio API
The legacy Eio_File factory functions are replaced by an Eo object
called Eo_Job that return promises wrapping the async file operations.
With this commit, the legacy Eio callbacks are replaced by the following
Eo/Promises counterparts :

* Done_Cb -> Promise then success callback
* Error_Cb -> Promise then error callback
* Main_Cb -> Promise progress callback
* Filter_Cb -> Job object event (more below)

Events are used to deliver and get the filter data. To differentiate
between the named and direct versions, they come in "filter,direct" and
"filter,name" versions.

Monitors were wrapped inside a new class Eo_Sentry.

The user creates a sentry object and adds monitoring targets to it,
listening to events on it.

The sentry event info is composed of two strings. The source string
is the path being monitored, i.e. the one passed to eio_sentry_add, and
the trigger string is the path that actually triggered the event, e.g.
a new file created in a monitored directory.
2016-05-25 21:32:03 -03:00
Stefan Schmidt 126d2b6e99 examples: emotion: adapt to name change from obj to object
In commit 75a53ece1007d927b8f0b6c5d3f269726afb9108 obj was changed to object.
As one can claerly see though make examples have not been run to verify this
change. Catch up in examples with this rename.
2016-05-19 09:19:06 +02:00
Felipe Magno de Almeida acbc6dd529 js fixes 2016-05-18 17:52:47 +02:00
Cedric Bail 6fc198c95a eo: for consistency use object like all our API. 2016-05-18 08:18:04 -07:00
Stefan Schmidt d6222ea369 examples: elementary: remove unused variable 2016-05-18 12:31:52 +02:00
Stefan Schmidt 9235c4cb1a examples: evas: remove unused variable
pi is never used here. Actually for such cases we should use M_PI anyway.
2016-05-18 12:29:06 +02:00
Stefan Schmidt bfcfa6a38d examples: evas: build evas-3d-fog example
So far this file has only been in our tree but the example has not been build.
2016-05-18 12:17:16 +02:00
Stefan Schmidt 02e20a063e examples: ecore: add all needed files to SOURCES to make sure they are distributed
This worked in-tree but never landed in a distribution tarball and thus the
examples build form such a tarball would fail.
2016-05-18 12:17:16 +02:00
Stefan Schmidt b7a3ec82fe examples: evas: add all needed files to SOURCES to make sure they are distributed
This worked in-tree but never landed in a distribution tarball and thus the
examples build form such a tarball would fail.
2016-05-18 12:17:16 +02:00
Tom Hacohen 1aee2b602a Eo: Remove eo_del() and make eo_unref() the replacement.
We used to have eo_del() as the mirrored action to eo_add(). No longer,
now you just always eo_unref() to delete an object. This change makes it
so the reference of the parent is shared with the reference the
programmer has. So eo_parent_set(obj, NULL) can free an object, and so
does eo_unref() (even if there is a parent).

This means Eo no longer complains if you have a parent during deletion.
2016-05-17 16:23:23 +01:00
Cedric Bail 7af402719a Revert "autotools: fix lots of warning."
This reverts commit 885d6c7d9bb0c253c49fd3f6351dd06d28a4cf74.

Reverting all as it seems those warning where actually for working code...
2016-05-16 09:29:29 -07:00