Commit Graph

282 Commits

Author SHA1 Message Date
Kai Huuhko b547ff2aa2 Remove Python -> C string hacks 2014-04-06 01:50:29 +03:00
Kai Huuhko 78442b6e9d Follow Eolian wrt. widget naming 2014-04-05 06:53:56 +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 28d1906c05 Elementary.thumb: Add missing enums. 2014-03-27 11:35:41 +02:00
Davide Andreoli ec71e46441 Python-EFL: new 1.9 API : Win.wm_rotation_* functions and properties
NOTE: all this is UNTESTED as I do not have a rotating WM
2014-03-01 19:35:40 +01:00
Davide Andreoli 2751ef6025 Python-ELF: new 1.9 API for GenlistItem 2014-03-01 18:24:23 +01:00
Davide Andreoli 00118986e6 Python-EFL: New 1.9 API: Object.focus_highlight_style 2014-03-01 17:59:03 +01:00
Davide Andreoli de154b7930 Python-EFL: New 1.9 API: Naviframe.title_enabled (title_visible deprecated) 2014-03-01 16:35:20 +01:00
Davide Andreoli 9f6cf51f80 Python-EFL: new 1.9 API: Layout.content_swallow_list_get() 2014-03-01 14:23:42 +01:00
Davide Andreoli 65f43c5bee Python-EFL: New 1.9 API: Ctxpopup.auto_hide_disabled 2014-02-27 22:58:06 +01:00
Davide Andreoli b04147b5f3 Python-EFL: whoops, fix last commit to work with py3 2014-02-27 22:48:22 +01:00
Davide Andreoli 32448918f6 Python-EFL: new 1.9 API Multibuttonentry.format_function_set()
Sadly this add 2 new points of reference leaks :(
2014-02-27 22:38:04 +01:00
Davide Andreoli c2a34f20ad Python-EFL: Colorselector new 1.9 API 2014-02-27 20:52:10 +01:00
Davide Andreoli 1bfb4d8922 Python-EFL: added 1.9 API: Colorselector.palette_items_get() 2014-02-26 23:20:04 +01:00
Davide Andreoli ad592d50aa Python-EFL: fix Fileselector.mime_types_filter_append() to work with py3 2014-02-26 21:43:31 +01:00
Davide Andreoli 684aee077e Python-EFL: Fileselector 1,9 API additions.
* added property thumbnail_size
* added function custom_filter_append
* splitted the 3 tests in 3 different files
* test rewritten to better match the C one.

NOTE: custom_filter_append is leaking...need to find a proper way to unref
          Added a note in the TODO for this issue.
2014-02-26 21:37:04 +01:00
Davide Andreoli dd3bc98c93 Python-EFL: add API Label.slide_speed. With tests 2014-02-23 16:29:31 +01:00
Davide Andreoli d38a979e73 Python-EFL: added elm_win_type_get() 2014-02-23 15:58:45 +01:00
Davide Andreoli 740ff9a009 Python-EFL: added Entry API: select_region_set(start, end) 2014-02-23 15:43:15 +01:00
Davide Andreoli 166193b716 Python-EFL: new Entry input panel on demand API.
* add property: Entry.input_panel_show_on_demand
2014-02-23 14:52:25 +01:00
Davide Andreoli dd6499eb60 Python-EFL: new Entry signal: rejected 2014-02-23 14:35:12 +01:00
Davide Andreoli af2e379e05 Python-EFL: new hoversel signal: expanded 2014-02-23 14:28:49 +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 23d221ef8a Elementary: Follow changes wrt. fileselector interface 2014-01-25 03:53:57 +02:00
Kai Huuhko b21fde2ba7 Silence warnings in Cython 0.20 2014-01-24 22:52:34 +02:00
Davide Andreoli 445211f369 add new Mapbuf.point_color_set/get functions (since 1.9) 2014-01-08 22:48:27 +01:00
Davide Andreoli bd063f0ece add new Filesector.sort_method property (since 1.9) 2014-01-08 22:06:29 +01:00
Davide Andreoli fdb66d75e6 add new Clock.pause property (since 1.9) 2014-01-08 21:17:57 +01:00
Kai Huuhko f4ec2ed959 Elementary: Add missing smart callbacks. 2013-12-22 10:29:10 +02: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
Kai Huuhko 96c720fae7 Elementary.web: updates to work with the new webkit-efl snapshot.
Commented out tab_propagate which doesn't seem to be implemented in
ewebkit2, and uncommented load finished signal.
2013-12-12 21:35:15 +02:00
Kai Huuhko 438c10f2cc Elementary.general: Add missing enums that were documented but not added. 2013-12-10 06:55:36 +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 3d306ba7b1 Elementary: Removed cruft from __init__.py 2013-12-07 15:58:52 +02:00
Kai Huuhko 7dc14d1cfc Elementary: Update the code examples in docstrings 2013-12-07 11:32:32 +02:00
Kai Huuhko d8befc83ec Elementary: Add _set_properties_from_keyword_args to Transit 2013-12-07 11:11:38 +02: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 dc4752c682 Elementary: Document handling of failure return values, add missing ones. 2013-12-06 14:04:34 +02:00
Kai Huuhko 4ef8677bda Elementary.calendar: Return None when selected_time_get fails 2013-12-06 11:48:37 +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 43f961d04a Elementary: Increase similarity of widget items.
_set_properties_from_keyword_args is now used in all items.

A RuntimeError is raised when adding an item to a widget fails.
2013-12-06 06:42:53 +02:00
Kai Huuhko 19ef10f97d Elementary: Comment out broken/unfinished API 2013-12-06 03:04:19 +02:00
Kai Huuhko 724dedb0e2 Documentation: Changed C API references into Python ones. 2013-12-06 03:00:12 +02:00
Kai Huuhko 040dc66110 Elementary.window: Return None when there are no available profiles.
Do this instead of raising an exception.
2013-12-05 11:31:22 +02:00
Kai Huuhko 9d37d24943 Elementary.background: Bypass Evas' _properties_from_keyword_args.
Background widgets color_set has a differing number of args.
2013-12-05 11:29:12 +02:00
Kai Huuhko 3f64711242 Elementary.slideshow: Correct the string representation functions. 2013-12-05 08:48:35 +02:00
Kai Huuhko 559a2a2c56 Elementary.plug: Use object_from_instance in image_object property. 2013-12-05 08:48:35 +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 be6d0dfc55 Elementary.index: Deprecate broken item_find for now. 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 4c9ab89426 Documentation: Fixed invalid references and other misc. issues. 2013-12-03 21:56:47 +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 5d4016710d Elementary: Disable rest of glview.
I already disabled build in last commit (by accident).
2013-12-02 02:52:45 +02:00
Kai Huuhko 1e08683763 Elementary.fileselector: Add missing bits, fix doc issues. 2013-11-29 02:22:36 +02:00
Kai Huuhko b4e363cb41 Elementary.web: Comment out unimplemented declarations in pxd. 2013-11-29 02:22:36 +02:00
Kai Huuhko c0ef792ca8 Elementary.slider: Add property step 2013-11-29 02:22:36 +02:00
Kai Huuhko 603476f176 Elementary.web: Add many things missing from API, not tested.
I won't be able to test this until I get Elm compiled with efl-webkit,
and for that I need a reasonably fresh source snapshot.

Latest one I could find was from August last year, I'm assuming it
won't match with current Elm.
2013-11-28 07:17:07 +02:00
Kai Huuhko bd8f38667e Elementary.entry: Fix documentation issues. 2013-11-28 03:12:33 +02:00
Kai Huuhko f3ee18d032 Elementary.entry: Free cursor text before returning it to python space 2013-11-28 03:11:26 +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 4dc1f2a412 Elementary: Synchronize more code in genlist <-> gengrid 2013-11-27 19:20:20 +02:00
Kai Huuhko 5443c35a9c Elementary.gengrid: Split into multiple files like genlist 2013-11-26 15:15:48 +02:00
Kai Huuhko a3634976c0 Elementary.object: Deprecate useless methods, add TODOs, fix formatting. 2013-11-26 04:38:53 +02:00
Kai Huuhko bb4ef6fb02 Elementary.entry: Make filter_append data arg optional and note a TODO. 2013-11-25 23:24:57 +02:00
Kai Huuhko dd1ac3cd56 Elementary.entry: Fix the filter callback. 2013-11-25 23:07:31 +02:00
Kai Huuhko 4b95a88618 Elementary.entry: Clean up the utf8 <-> markup API 2013-11-25 23:07:23 +02:00
Kai Huuhko 3a26675680 Elementary: Convert more of the C DnD examples to Python. 2013-11-19 21:42:24 +02:00
Kai Huuhko aa96c353c3 Elementary: Remove enums and extra stuff from __init__.py
In the interest of faster package initialization.
2013-11-19 21:21:04 +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 ad630770b5 Elementary.layout: Move methods from Layout to LayoutClass.
These should work in a "backwards" compatible way.
2013-11-19 21:21:03 +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 29073c7754 Elementary: Add logging to init, remove the unused cursor enums. 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 e837f8f028 Elementary: Remove leftover deprecated function declarations.
The ones that have no equivalent replacement still do remain.
2013-11-09 23:12:33 +02:00
Kai Huuhko 3100dcfa46 Elementary: Forgot to add signal callbacks to GLView. 2013-11-09 12:00:38 +02:00
Kai Huuhko 09afe05a3c Elementary: Add GLView. 2013-11-09 11:54:44 +02:00
Nathan Jervis 7896899abc Elementary: Fix the number of seconds in a day in calendar examples. 2013-11-09 11:49:06 +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 9db6938f1e Use types in objects' callback list definitions to simplify access.
Also use a more descriptive name for Evas' event callback list.
2013-11-07 11:35:03 +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 23e9d49208 Elementary.progressbar: Style "recording" -> "double"
Also, part "elm.cur.progressbar" is the main bar.

See commit 12bbcd1a3a5c9e0a1a235166de2fca99dcfa5a0c
2013-11-03 07:49:53 +02:00
Kai Huuhko 1f74676a1b Elementary: Comment out couple more accessibility stuff 2013-11-02 16:39:18 +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 7826e96e01 Elementary.datetime_elm: Fix an API bug. 2013-10-31 23:12:06 +02:00
Kai Huuhko fd8159d4ec Elementary.mbe: Remove commented out code, comment out an unimplemented method. 2013-10-30 11:30:35 +02:00
Kai Huuhko db4483a88c Elementary.actionslider: Fix a string return value to be unicode 2013-10-30 04:27:18 +02:00
Kai Huuhko ada7a8c07e Elementary: Add some TODO code comments 2013-10-29 12:36:08 +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 af9c5b8845 Elementary: Fixes for Theme 2013-10-27 21:46:43 +02:00
Kai Huuhko 47be89c8ea Documentation: Fix a few niggles in Elm docs. 2013-10-25 21:39:48 +03:00
Kai Huuhko 2dca18ab08 Elementary: Add more _set_properties_from_keyword_args 2013-10-25 17:45:15 +03:00
Kai Huuhko 3e99eb5fe9 Elementary: Document more scrollables 2013-10-25 03:13:46 +03: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