Commit Graph

157 Commits

Author SHA1 Message Date
Davide Andreoli f0ab762e16 Copyright 2022 2022-02-27 19:07:34 +01:00
Davide Andreoli 4548c5a01b Fixes a memory error
as reported at:
https://phab.enlightenment.org/D12326
and
https://build.opensuse.org/request/show/945361

thanks goes to Andreas Schwab and Simotek
2022-02-27 11:19:23 +01:00
Davide Andreoli 31a147fc7c Docs: remove an old workaround
The ClassName(...) on each class was an old hack that is
not needed anymore
2021-11-18 06:25:19 +01:00
Davide Andreoli a7e86793c3 Follow efl rename Efl.Canvas.Text -> Efl.Canvas.Textblock 2020-04-27 20:02:08 +02:00
Davide Andreoli 26a4c38d67 New 1.20 API: evas.Map.coords_get 2017-07-15 17:30:19 +02:00
Davide Andreoli 6a7e698368 New 1.19 API: evas.Image.load_head_skip 2017-04-15 20:41:14 +02:00
Davide Andreoli 98b7b2408f Rename class names accordly to Eo recent changes
This will lead do break sooner or later, for example:
Datetime is internally an Efl.Ui.Clock, so once Clock will be renamed we will be at a closed corner :(

#FollowTheWhiteRabbit
2016-12-28 14:11:48 +01:00
Davide Andreoli 16fa850f24 Fix for cython 0.25
New cython do not like our cdef @DEPRECATED decorator implementation,
I'm not able to fix it, so I just rewrite it in pure python.

The new one is a bit simpler, it do not print the source file anymore,
but still augment the documentation.

Tested with Cython 0.24.1 and 0.25.1 on both python 2.7 and 3.5, hope is enough.

#IHateCython
2016-11-05 11:42:26 +01:00
Davide Andreoli 01220931fc Evas: Do not call xxx_callback_del if obj is NULL
@fix
2016-10-22 11:43:25 +02:00
Davide Andreoli ea4bc8790d warnings -- 2016-10-14 23:16:25 +02:00
Davide Andreoli f872e7b8c6 Fix usage of EINA_LOG_* functions
spotted by warnings :)
2016-10-14 22:45:32 +02:00
Kai Huuhko 6fa2d3ff95 Follow Eo -> Efl renames 2016-08-21 19:53:41 +03:00
Kai Huuhko f652b6e18f Evas.Smart: Store event string in the spec to ensure it doesn't get decreffed
This fixes event string corruption and segfault in epymc
2016-08-16 22:57:09 +03:00
Kai Huuhko b2af779d7d Switch enums to use the old system we had previously
This allows us to support Cython 0.23+
2016-08-16 10:11:34 +03:00
Kai Huuhko 54adcd9970 Bump copyright year 2016-08-13 01:13:30 +03:00
Kai Huuhko f86234dd25 Evas.Smart: Comment out a warning for an issue we can't fix
When a smart event has event_info we need to convert it to a Python object.
We rely on the C library documentation to inform us when an event includes event_info
and assign a conversion function to the event handler based on this and pass the Python
object as an extra parameter to the callback. However when the documentation has omitted
this information we erroneously leave the extra parameter out, making the callbacks have
one less parameter, which our users rely on. Finding out the error after release is
useless since fixing it would mean breaking user callbacks.

This warning informed us at runtime when event_info was non-null but it's pretty much
useless so let's remove it.

Our smart callbacks should never have had two different signatures.
2016-08-05 19:12:44 +03:00
Davide Andreoli fbabb111d8 Fix (and optimize) smart callbacks add/del 2016-08-05 17:20:33 +02:00
Davide Andreoli 082456600a Rename some classes to new Eo names
#FollowTheWhiteRabbit (tm)
2016-06-26 16:17:20 +02:00
Davide Andreoli 36ca39e015 Follow recent Eo class names change 2016-06-03 14:21:22 +02:00
Davide Andreoli 51946aaf8b Follow eo class rename 2016-06-03 11:14:40 +02:00
Davide Andreoli aba5250634 Follow recent Eo changes 2016-04-24 12:11:07 +02:00
Kai Huuhko 05c19962dc Follow changes in Eo
- version 4 (eo_add changes coming later)
- events
2016-03-04 11:10:11 +02:00
Kai Huuhko caef23bb34 Trivial todo note updates and doc fix 2016-02-02 14:23:00 +02:00
Davide Andreoli 11d3007f02 New 1.17 API: evas.Object.paragraph_direction 2016-01-23 18:34:13 +01:00
Davide Andreoli 1dc4053ce5 Re-enable the evas callbacks len test
Dunno why this was commented out, seems usefull to me
2015-08-05 15:06:50 +02:00
Davide Andreoli 3de1d7be24 New 1.15 API: evas.Textblock.obstacle_* functions
untested, but quite simple api, should work
2015-08-03 18:53:19 +02:00
Davide Andreoli 97dadf30da New 1.15 API: EVAS_CALLBACK_CANVAS_VIEWPORT_RESIZE, with test
Also fixed EVAS_CALLBACK_AXIS_UPDATE that was half implemented
2015-08-03 14:09:36 +02:00
Kai Huuhko 37930f389d Follow recent changes in Eo 2015-06-01 17:59:47 +03:00
Kai Huuhko a1f36bb073 Elm: Unify modules into a monolithic module 2015-05-07 22:37:48 +03:00
Kai Huuhko acf2d33969 Evas.Textgrid: Fix memleak
Had to change the type of cellrows from list to custom tuple-like type.
2015-05-03 13:05:15 +03:00
Kai Huuhko ce58291d20 Evas: Fix documentation 2015-04-24 22:25:15 +03:00
Kai Huuhko 219ba9cdd9 Use atexit to shutdown eo, evas and ecore modules
They already had a call to init in the module, thus there was a mismatch
not obvious to users.
2015-04-15 12:02:34 +03:00
Davide Andreoli 0f0e84d792 Test Elm.Image: use new EVAS_ORIENT_* enums 2015-04-12 14:01:49 +02:00
Davide Andreoli e9f07ff537 New 1.14 API: elm.Photocam.image_orient
with test.

NOTE: playing with the test reveal lots of image_orient errors
2015-04-12 13:41:05 +02:00
Davide Andreoli 0190d16c05 New 1.14 property: Evas.Image.orient
with a simple test
2015-04-12 12:35:57 +02:00
Kai Huuhko 708f02bccc Evas.SmartObject: Add more docs to move_children_relative() 2015-03-31 12:15:41 +03:00
Kai Huuhko aaaa3a1438 Evas.Rect: Use inline and nogil to optimize the intersection helper 2015-03-24 05:05:28 +02:00
Kai Huuhko fcc93216f9 Evas.SmartObject: Fix smart callbacks with NULL event_info
If the event has a conversion func assigned but event_info is NULL
we should pass None instead of dropping the parameter. This behavior
is now the same as before the callback rework.
2015-03-23 19:15:25 +02:00
Kai Huuhko 8a0dccbf22 Evas: Optimize Smart methods
The methods are now checked on __init__. If a method is not initially
defined the calls to it will be skipped entirely. The methods can be
rebound later in runtime by initially providing an empty (pass) method.
2015-03-21 10:38:24 +02:00
Kai Huuhko 1940b51f15 Evas.SmartObject: Use calloc to allocate the array 2015-03-21 10:37:47 +02:00
Kai Huuhko 4ccea0f35d Evas.SmartObject: Add smart callback introspection 2015-03-13 19:22:01 +02:00
Kai Huuhko ea2d5bd689 Evas.SmartObject: Optimize Smart calls 2015-03-13 13:10:22 +02:00
Kai Huuhko 3120e56250 Evas.SmartObject: Go back to the old cb system
Turns out the C calls are awfully slow.

Dave, good work with the tests!
2015-03-13 02:40:39 +02:00
Kai Huuhko 4b9a44d2fc Evas.Object: Add more documentation for size hints from C headers 2015-03-12 19:39:29 +02:00
Kai Huuhko dd5b35ef8f Evas.Object: Re-order the methods into sections, cosmetic 2015-03-12 18:52:08 +02:00
Kai Huuhko 6fa1b78256 Evas.SmartObject: Keep reference to Smart in the SO object
Smart gets freed automatically when no SO or user has references to it.
2015-03-12 18:22:46 +02:00
Kai Huuhko 270ac10e09 Evas.SmartObject: Optimize python cb call 2015-03-12 16:19:35 +02:00
Kai Huuhko 179404e279 Evas.SmartObject: Change SmartCb spec into a custom object
This allows faster C access to the values, avoids casting the conv_func
pointer to an integer and back.
2015-03-12 14:27:36 +02:00
Kai Huuhko 8b594d4bd8 Evas.SmartObject: Improve Smart cb handling
Calling custom callbacks with event_info was broken, fixed.

A check was added for event_info pointer, a warning will emit
when it's non-NULL and we don't have a conv function set.

Small optimizations.
2015-03-12 02:00:04 +02:00
Kai Huuhko 247eb9e452 Evas.SmartObject: Revert SmartCb add/del mechanism partially
We need to keep a better track of the spec references so they
don't get mixed up when user adds and deletes the callbacks.
2015-03-11 22:13:00 +02:00