Commit Graph

39 Commits

Author SHA1 Message Date
Davide Andreoli 8b9e5901a3 New item,focused/unfocused signals for the List widget
Plus:
* Object.focused_item
* ObjectItem.focus
2014-05-04 12:09:20 +02:00
Kai Huuhko 6baa292951 Code cleanup: Remove unused exception instances
This also gets rid of the old style syntax.
2014-04-15 20:49:06 +03:00
Davide Andreoli b3eef73b0e s/2013/2014/g 2014-04-14 22:21:03 +02:00
Kai Huuhko d65101b24b Code cleanup: Unused/misplaced cimports 2014-04-14 00:51:19 +03:00
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
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 f946d87318 Documentation: Add sphinx directives for added/changed/deprecated stuff. 2013-12-06 17:39:13 +02:00
Kai Huuhko ca680c5a67 Elementary: Add an optimization for _set_properties_from_keyword_args
Return early when kwargs dict is empty.
2013-12-06 10:51:11 +02:00
Kai Huuhko 647e0523e4 Documentation: Fix more invalid references. 2013-12-04 01:24:31 +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 2231ce4f13 Elementary: New dispatcher for object item selection callbacks.
This is cleaner and allows us to use properties_from_kwargs,
and should have better forward compatibility by allowing more
positional arguments to be added as *args is now unused.
2013-11-19 21:21:03 +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 1ff67d2545 Elementary: Add compatibility methods ObjectItem.data_set/get.
They are marked as deprecated.
2013-11-04 07:27:43 +02:00
Kai Huuhko d8a6a5c614 Elementary: Disable Accessibility parts 2013-11-02 16:23:30 +02:00
Kai Huuhko fc69997a75 Elementary.object_item: Change ObjectItem.data to hold a dict (like Eo).
This may affect some cases where it was assumed to hold
a tuple with args,kwargs. Dealing with the fallout was added as a TODO
and the change documented in README.
2013-11-02 02:05:48 +02:00
Kai Huuhko 1e40a8f5bb Simplify and correct string representation functions.
Calling str() uses __repr__ when __str__ is not found.

__repr__ should return a string with angle brackets when the object
cannot be reconstructed with exec(repr(obj)).
2013-10-28 18:55:58 +02: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 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 8b58ef24ea Documentation formatting fixes. 2013-08-10 08:34:46 +03:00
Kai Huuhko 606bf8694d elementary ObjectItem: Handle the case where an Elm_Object_Item was
created in the C library code, thus not containing the Python object
within it's data.

Fixes phab T268

Reported by: grapemix (Kingston Fung)
2013-08-02 13:16:40 +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
Kai Huuhko e0e2cb81ce Elementary: Fix Toolbar states. 2013-04-22 20:20:21 +03: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 0c9f6c7590 Elementary: Add Calendar.marks (get/del only) and improve documentation. 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 ed1cad63f6 Elm: More _cfruni removal. 2013-04-02 23:24:35 +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
Kai Huuhko e8a1b68b79 python-efl: Consolidate elm cb conversions.
SVN revision: 84309
2013-02-22 12:00:26 +00:00
Kai Huuhko 37aba43fb1 python-efl: Copy over the experimental work on py-elm from my github repo:
- split modules, cuts down development time
 - Sphinx documentation
 - new work flow for list type widgets while keeping compatibility with the old one
 - input events now have functional propagation and support for mouse wheel events
 - assorted fixes



SVN revision: 84027
2013-02-17 19:35:20 +00:00