Kai Huuhko
d6dc3a2045
Revert "Remove Python -> C string hacks"
...
A quote from Cython documentation:
"The other direction, i.e. automatic encoding to C strings, is only supported
for the ASCII codec (and the “default encoding”, which is runtime specific
and may or may not be ASCII). This is because CPython handles the memory
management in this case by keeping an encoded copy of the string alive
together with the original unicode string. Otherwise, there would be no way
to limit the lifetime of the encoded string in any sensible way, thus
rendering any attempt to extract a C string pointer from it a dangerous
endeavour."
Cython plays it safe and we can't live with ASCII-only; reverting to
our earlier "hacks" for string conversion.
This reverts commit b547ff2aa2
.
Conflicts:
efl/elementary/entry.pyx
efl/elementary/object.pyx
2014-04-06 23:48:16 +03:00
Davide Andreoli
9cb0bbaf8b
docs: remove the signatures from the docstring, are now autimatically added by cython
2014-04-06 18:38:54 +02:00
Kai Huuhko
b547ff2aa2
Remove Python -> C string hacks
2014-04-06 01:50:29 +03:00
Kai Huuhko
adf70fa26f
Remove const hacks
...
They were a workaround for limitations in Cython <0.18
2014-04-05 03:13:15 +03:00
Davide Andreoli
00118986e6
Python-EFL: New 1.9 API: Object.focus_highlight_style
2014-03-01 17:59:03 +01:00
Davide Andreoli
04734af9f4
Python-EFL: added new tooltip movement freeze API
...
* tooltip_move_freeze_push()
* tooltip_move_freeze_pop()
* tooltip_move_freeze_get()
2014-02-23 14:18:19 +01:00
Kai Huuhko
d62af53016
Documentation: Add missed versionadded entries, fix formatting.
2013-12-22 10:27:17 +02:00
Davide Andreoli
9089706286
Python-EFL: 5 new tests about Focus.
...
Also add some missed values to Elm_Object_Focus_Direction enum.
2013-12-16 21:42:27 +01:00
Kai Huuhko
6db1f9d0d6
Use uintptr_t instead of long or unsigned long for handling pointers.
2013-12-15 15:08:57 +02:00
Davide Andreoli
74244a5ac7
Python-EFL: fix the mess with the lgpl version.
...
Elm was lgpl3, COPYING was lgpl3, docs say lgpl3. So fix everything to be v3.
Also fix the COPING for Lesser: we must include gpl (in COPYING) AND lgpl (in COPYING.LESSER).
2013-12-07 17:54:58 +01:00
Kai Huuhko
7344ad361f
API review: Documented changes, corrected str repr, clean up.
2013-12-07 08:09:04 +02:00
Kai Huuhko
f946d87318
Documentation: Add sphinx directives for added/changed/deprecated stuff.
2013-12-06 17:39:13 +02:00
Kai Huuhko
724dedb0e2
Documentation: Changed C API references into Python ones.
2013-12-06 03:00:12 +02:00
Kai Huuhko
16891cf2b4
Elementary.object: Add few missing methods related to translatable text.
2013-12-05 08:48:35 +02:00
Kai Huuhko
4e4b8e2fea
Documentation: Fix invalid references and minor issues.
2013-12-05 08:48:34 +02:00
Kai Huuhko
647e0523e4
Documentation: Fix more invalid references.
2013-12-04 01:24:31 +02:00
Kai Huuhko
7a3883f5e2
Elementary: Revert several RuntimeWarnings back to 1.7 behavior
...
The methods in entry, icon and object now return a bool value like they
used to do in 1.7.
2013-12-02 21:44:43 +02:00
Kai Huuhko
dc0acd4919
Elementary: Change RuntimeError to a Warning in several non-critical cases.
2013-11-28 00:35:17 +02:00
Kai Huuhko
a3634976c0
Elementary.object: Deprecate useless methods, add TODOs, fix formatting.
2013-11-26 04:38:53 +02:00
Kai Huuhko
0e21d6bfac
Doc: Fix many duplicate/missing label warnings and other issues.
2013-11-19 21:21:03 +02:00
Kai Huuhko
225f061b05
Optimize exception propagation in several hot/time critical cases.
...
With "except *" a call is made to PyErr_Occurred on each call of a
function.
Adding a return value where possible and using an appropriate exception
value calls PyErr_Occurred only when that value is returned, ie.
an exception has been raised.
cdef void example_func() except *: <- PyErr_Occurred called on each call
cdef int example_func() except 0: <- PyErr_Occurred called only when
an exception has been raised (the function thus returns 0)
2013-11-10 08:47:21 +02:00
Kai Huuhko
d623a30032
Follow Eo class name changes.
...
See commits c7addf40839c85cf2568f322a34220e8082d26f0 and
7b10fdb8f39c3b36f575dd22d26a1efe6ecd28ec
2013-11-07 16:45:02 +02:00
Kai Huuhko
41f0aeff67
Reduce usage of cpdef.
...
It was intended to make things easier but created problems with
inheritance and Evas SmartObject object customization.
2013-11-05 03:18:36 +02:00
Kai Huuhko
d8a6a5c614
Elementary: Disable Accessibility parts
2013-11-02 16:23:30 +02:00
Kai Huuhko
ada7a8c07e
Elementary: Add some TODO code comments
2013-10-29 12:36:08 +02:00
Kai Huuhko
af9c5b8845
Elementary: Fixes for Theme
2013-10-27 21:46:43 +02:00
Kai Huuhko
3d85286336
Add arguments 'version' and 'message' to DEPRECATED decorator.
...
The decorator will automatically add a directive to the docstring and
log a message when the function is called.
2013-10-25 02:09:29 +03:00
Kai Huuhko
cd25ef3488
Partially revert "Elementary: Move private definitions inside the pyx files."
...
We can do this later, let's keep api_coverage.py working for now.
This reverts commit c96851c8f5
.
Conflicts:
efl/elementary/gengrid.pyx
efl/elementary/genlist.pyx
efl/elementary/object.pyx
efl/elementary/scroller.pxd
efl/elementary/scroller.pyx
2013-10-20 23:45:47 +03:00
Kai Huuhko
afe11df636
Elementary: Beginnings of Drag and Drop support, very much work in progress.
2013-10-08 17:13:32 +03:00
Kai Huuhko
c96851c8f5
Elementary: Move private definitions inside the pyx files.
...
Only share (in pxd-files) the definitions that are needed by other modules.
Removed widget_header.pxi to make cimports more obvious.
2013-10-07 08:31:30 +03:00
Kai Huuhko
914c6ffd6b
Elementary: Add various missing functions
2013-10-04 09:29:45 +03:00
Kai Huuhko
5f4a46da4b
Move common conversion functions from efl.eo to efl.utils.conversions
2013-10-01 04:56:28 +03:00
Kai Huuhko
88db824a77
Change the _METHOD_DEPRECATED function into a decorator.
...
- move the decorator into a new package/module: utils/deprecated
- simplify setup.py logic slightly, it still needs work
2013-09-20 12:01:50 +03:00
Kai Huuhko
8b58ef24ea
Documentation formatting fixes.
2013-08-10 08:34:46 +03:00
Kai Huuhko
5a1180d1a0
Elementary: Initial support for copy & paste. selection_get/set/clear
...
works with Entry and has a test, the generic drop_cb is unfinished and
untested.
2013-05-01 15:49:57 +00:00
Kai Huuhko
6c89e84620
Elementary: Change the rest of the widgets to use the new item handling
...
style, and make the documentation more structured.
2013-05-01 15:45:26 +00:00
Davide Andreoli
01663ecd99
Python-EFL: trivial docs change, be consistent with header types, no code changes
2013-05-01 14:34:45 +02:00
Kai Huuhko
fd7322fcda
Disallow instantiating the base object classes.
2013-04-22 20:20:21 +03:00
Kai Huuhko
4f8256a793
Elementary: Add the new translatable text functions.
2013-04-22 20:20:21 +03:00
Kai Huuhko
0d63acbee9
Elementary: Implement Accessible objects, with cbs TODO later.
2013-04-22 20:20:21 +03:00
Kai Huuhko
898f32371a
Sed to the rescue.
2013-04-22 20:20:20 +03:00
Kai Huuhko
2f7030d5bb
Elementary: Complete LayoutClass API, add some missing API to Object.
2013-04-22 20:12:28 +03:00
Kai Huuhko
e0dcf5542f
Elementary: Add initial commented out code for copy&paste.
2013-04-22 20:12:28 +03:00
Kai Huuhko
2ba1ce59a7
Elm: Clean up object and add a couple of comments.
2013-04-07 23:11:05 +00:00
Kai Huuhko
18ecef1c2e
Elm object: Add few performance optimizations
...
by simplifying code and making better use of types where possible.
2013-04-03 20:38:21 +00:00
Kai Huuhko
3b196172b4
Add an enums file for Evas so it gets the values directly from C lib.
2013-04-03 19:39:11 +00:00
Kai Huuhko
ed1cad63f6
Elm: More _cfruni removal.
2013-04-02 23:24:35 +00:00
Kai Huuhko
c5c91f3783
python-efl: Remove last remnants of _object_list_to_python from elm and
...
add the event return that was missed in the merge from my repo.
SVN revision: 84370
2013-02-25 20:23:59 +00:00
Kai Huuhko
309666459a
python-efl: Fix small elm TODOs and issues.
...
SVN revision: 84359
2013-02-25 12:58:56 +00:00
Kai Huuhko
2e583b2377
python-efl: elm.Object and ObjectItem: Add None checks for parameters
...
where an extension is passed, remove extra None checks from strings.
SVN revision: 84335
2013-02-24 09:59:10 +00:00