Commit Graph

25 Commits

Author SHA1 Message Date
Kai Huuhko f1972f6a6e Place the remnants of _cfruni and _fruni under six feet of soil.
Fix a braino in the py list to string array conversion function.
2013-04-04 11:31:24 +00:00
Kai Huuhko 2f6edccf6e Eo: remove _c?fruni from list conv funcs. 2013-04-01 18:24:45 +00:00
Davide Andreoli a960142166 Python-EFL: remove unused code (was the test to use the new Eo API). And use multiline when importing. 2013-03-31 21:18:03 +02:00
Davide Andreoli 5043aa38f0 Reorder _object_mapping_register for readability. 2013-03-31 15:26:30 +00:00
Kai Huuhko 49d1d1950a Move Eo init to beginning of the file so that the initialization is run
before anything else that's in the module init code path.
2013-03-31 15:09:50 +00:00
Kai Huuhko 21ec3e18cf Change the class lookup code to C only using an Eina Hash table. 2013-03-30 15:39:51 +00:00
Davide Andreoli 16ecc8ca4b * remove Eo.is_valid property as it do not check what it say
* Using Eina_Hash in object_mapping doesn't worth the pain
 * extended object mapping is not required anymore
2013-03-30 12:21:13 +01:00
Kai Huuhko 0cb72de9f1 Revert changes to pointer comparison style. 2013-03-28 21:34:31 +00:00
Kai Huuhko 4d9c1c929a Handle exceptions in eo cdef functions, don't expose _METHOD_DEPRECATED
to Python API needlesly, add some code optimizations and TODOs.
2013-03-28 16:54:51 +00:00
Kai Huuhko 7cf20ceeb5 Revert _(c)fruni to earlier behaviour, correct some issues in list convs.
DaveMDS and I decided to return them to the earlier hackish behaviour
since it works with most cases where it's used. And we are lazy.
2013-03-26 22:50:04 +00:00
Kai Huuhko 0f3c3999e3 Make the conv functions more robust.
Now we may leak the strings from _(c)fruni which should be looked up
case by case. The positive side is that we no longer point to (possibly)
invalid memory.

Strings used with touni funcs are suspected to leak as well.
2013-03-26 18:53:13 +00:00
Kai Huuhko 37b8ff89ae Free allocated memory after passing an array of strings to elm_win_available_profiles_set. 2013-03-25 21:30:38 +00:00
Kai Huuhko 095f7fd867 Add comments to point out the trouble areas in the string conv
functions.
2013-03-24 18:34:19 +00:00
Kai Huuhko f6909ac42c Internal function renames:
* _strings_to_python -> eina_list_strings_to_python_list
 * _strings_from_python -> python_list_strings_to_eina_list
Add two functions for string array conversion.
Add two properties to elm.Window.
2013-03-23 06:50:33 +00:00
Kai Huuhko 340c3df330 python-efl: Revert r84377
SVN revision: 84388
2013-02-26 21:24:11 +00:00
Kai Huuhko d08b26e12f python-efl: strdup the string when converting from python to make sure it
doesn't go away if the string object should lose reference. May not be 
necessary but just in case.


SVN revision: 84377
2013-02-26 11:04:13 +00:00
Davide Andreoli 1e953366b5 PythonEFL:
* put _METHOD_DEPRECATED in eo
 * new slide_mode prop for Label, and deprecate the old one
 * updated label test to use new slide_mode prop



SVN revision: 84069
2013-02-18 22:20:09 +00:00
Davide Andreoli 57cdd0a468 Python-EFL: Cleaned warnings in edje
SVN revision: 84006
2013-02-16 20:20:41 +00:00
Davide Andreoli 4a2117fc4f Python-EFL: cleanup well Evas_Objects registered callback when the obj is deleted
SVN revision: 84005
2013-02-16 19:49:07 +00:00
Davide Andreoli 3b15540891 Python-EFL: warnings-- in Eo
SVN revision: 84003
2013-02-16 17:05:00 +00:00
Davide Andreoli bfa991ca3f Python-EFL: _fruni() and friends not inlined anymore, this is just to remove compilation warnings. I hope will not make much difference
SVN revision: 84001
2013-02-16 16:41:47 +00:00
Davide Andreoli 744fab5c92 New line chars from CR/LF to LF
SVN revision: 83924
2013-02-14 20:54:53 +00:00
Davide Andreoli 69832134e7 Python-EFL: Unit test for edje external, and fixed the elm external tests
SVN revision: 83923
2013-02-14 20:48:34 +00:00
Davide Andreoli 744f1ee4be todo--
updated copyright in ALL the files



SVN revision: 83873
2013-02-13 19:16:02 +00:00
Davide Andreoli 8b86398860 Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.

Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.

All the docs has been stripped out because we want to use the new sphinx style 
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)

The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
   import evas
except:
   from efl import evas
...like is done in the gtk bindings

Some stuff has been leaved out on purpose, because was old stuff (like the hacked 
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.

Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)


I will contine the works in the next weeks and hope someone will help too.

NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
 python setup.py install
or
 python3 setup.py install


Enjoy
davemds




SVN revision: 83831
2013-02-11 22:32:50 +00:00