Davide Andreoli
4a57a7deaa
Follow recent Eo api changes
...
eo_event_global_freeze_get -> eo_event_global_freeze_count_get
eo_event__freeze_get -> eo_event_freeze_count_get
2014-06-02 17:21:42 +02:00
Kai Huuhko
5045352434
Evas: Add NULL safety to SmartObject callbacks, exposes a BUG
...
Apparently the Python instance gets deleted before the smart hide/del
callbacks are called (by eo callback?).
2014-06-02 09:18:01 +03:00
Kai Huuhko
59f2835f53
Elementary.multibuttonentry: Inject a Python object to created items
2014-06-01 17:43:11 +03:00
Kai Huuhko
4f702bc04d
Documentation: warnings--
2014-06-01 16:35:38 +03:00
Kai Huuhko
4639836d3e
warnings--
2014-06-01 15:37:41 +03:00
Kai Huuhko
be6bd076b2
Elementary.general: Fix docs
2014-05-29 02:24:56 +03:00
Kai Huuhko
045f45bfb7
Ecore: Add missing event return value "constants"
2014-05-29 01:27:19 +03:00
Kai Huuhko
ab0e868a39
Elementary.general: Add sys_notify. NEEDS TESTING
2014-05-28 03:38:28 +03:00
Kai Huuhko
3f5a1a7d79
Elementary.gengrid: Add missing API
2014-05-28 02:13:47 +03:00
Kai Huuhko
71456d0d62
Elementary.configuration: Add missing properties
2014-05-28 00:25:55 +03:00
Kai Huuhko
c5f91c4a8c
Ecore: Small corrections the string representation functions of Exe
2014-05-27 23:24:53 +03:00
Davide Andreoli
ed7ba20583
New Configuration.color_class_* functions and props.
2014-05-27 21:55:12 +02:00
Davide Andreoli
cfc20537e9
New Config.focus_autoscroll_mode property
2014-05-19 20:55:53 +02:00
Davide Andreoli
ecd70f7d81
Add new Object.scroll_item_loop_enabled property
2014-05-19 19:57:29 +02:00
Kai Huuhko
7b6732f2ab
Elementary.object_item: Rename conflicting API from previous commit
2014-05-17 20:19:51 +03:00
Kai Huuhko
2788035e88
Elementary.object_item: Add missing API
2014-05-17 18:30:14 +03:00
Kai Huuhko
f54ffc7621
ecore.x: Fix unicode handling
2014-05-16 15:00:55 +03:00
Kai Huuhko
b6f2a6822f
efl.ecore.x: Unicode handling
2014-05-14 07:01:57 +03:00
Kai Huuhko
5903c8a936
efl.ecore.x: Add keyboard_grab/ungrab
2014-05-13 22:21:53 +03:00
Kai Huuhko
1466ea7207
efl.ecore: Return of ecore.x (from python-ecore)
...
Made some corrections to make it compile and fixed doc formatting.
2014-05-13 17:59:48 +03:00
Kai Huuhko
d98cd27107
efl.ecore: Transform into a package
...
The old efl.ecore.so module renamed to __init__.so which gets
automatically used for the package namespace when there is an empty
__init__.py included.
2014-05-13 15:12:38 +03:00
Davide Andreoli
3286e32eda
Revert "Added Gengrid.focus_direction_allow property"
...
This reverts commit 8886d93519
.
This was reverted from elm itself
2014-05-10 19:27:09 +02:00
Davide Andreoli
8886d93519
Added Gengrid.focus_direction_allow property
2014-05-10 19:15:56 +02:00
Davide Andreoli
209d232836
Added evas_font_path_global_* API
2014-05-10 18:52:09 +02:00
Davide Andreoli
a7d635e2e5
Added new Config.accel_preference property
2014-05-10 18:33:58 +02:00
Kai Huuhko
4be0d71c70
Elementary.layout: Fix signal callbacks
2014-05-09 03:45:52 +03:00
Davide Andreoli
0281efaa87
New Gengrid reorder_mode functions and signals.
2014-05-05 20:58:04 +02:00
Davide Andreoli
e38dfdbd89
Added missed enums for the Entry widget
2014-05-05 20:30:00 +02:00
Davide Andreoli
4ebae921e7
Whoops2: Configuration.item_focus_on_selection was renamed to item_select_on_focus_disabled
2014-05-04 16:10:12 +02:00
Davide Andreoli
b2d64ba741
whops, wrong property name
2014-05-04 15:54:53 +02:00
Davide Andreoli
f8e8710412
New Configuration properties.
...
* Configuration.focus_highlight_clip_disabled
* Configuration.focus_move_policy
* Configuration.focus_on_selection
2014-05-04 15:52:53 +02:00
Davide Andreoli
755f7b7b21
New item,focused/unfocused signals for the Toolbar widget
2014-05-04 12:41:39 +02:00
Davide Andreoli
197f8d7040
New item,focused/unfocused signals for the GenGrid widget
2014-05-04 12:28:57 +02:00
Davide Andreoli
81289ddfa9
New item,focused/unfocused signals for the GenList widget
2014-05-04 12:20:20 +02:00
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
Davide Andreoli
bc32229756
New item,focused/unfocused signals for the Popup widget
2014-05-02 20:26:36 +02:00
Davide Andreoli
10d3b696c4
New item,focused/unfocused signals for the Hoversel widget
2014-05-02 20:02:03 +02:00
Kai Huuhko
56b87e0956
elementary.toolbar: Add a hack for the property "menu"
2014-05-01 19:29:34 +03:00
Davide Andreoli
7d5c2082bb
docs: better (I hope) structure for ecore
2014-04-22 20:50:41 +02:00
Davide Andreoli
2e6aba5cac
follow classes name change in Eo2
2014-04-22 20:11:36 +02:00
Kai Huuhko
397aabf3a4
Code cleanup: Use line comments to disable code, not docstrings
2014-04-15 22:20:01 +03:00
Kai Huuhko
0ce26275fe
Elementary.separator: Corrected type of the property 'horizontal'
2014-04-15 21:48:45 +03: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
Kai Huuhko
5fcc33b17a
Code cleanup: More print statements => functions
2014-04-15 16:17:44 +03:00
Kai Huuhko
286fd64489
Code cleanup: Single-quoted docstrings
...
Triple double-quotes should be used for docstrings
2014-04-14 23:39:59 +03:00
Kai Huuhko
8109cd62b4
Code cleanup: Spelling and grammar fixes
2014-04-14 23:39:59 +03:00
Davide Andreoli
b3eef73b0e
s/2013/2014/g
2014-04-14 22:21:03 +02:00
Davide Andreoli
cc02387266
Adjust the bindings to work with Eo2
2014-04-14 21:41:38 +02:00
Kai Huuhko
6408f8d318
Code cleanup: Print statements => functions
2014-04-14 02:32:16 +03:00
Kai Huuhko
ae64f89ab5
Code cleanup: Trailing semicolon in the statement
2014-04-14 01:46:39 +03:00
Kai Huuhko
186e9f8c84
Code cleanup: Simplify chained comparison
2014-04-14 01:40:22 +03:00
Kai Huuhko
6fc195858e
Code cleanup: Assignment can be replaced with augmented assignment
2014-04-14 01:40:22 +03:00
Kai Huuhko
2c6f7253bb
Code cleanup: Dictionary creation could be rewritten as a dictionary literal
2014-04-14 01:12:49 +03:00
Kai Huuhko
d65101b24b
Code cleanup: Unused/misplaced cimports
2014-04-14 00:51:19 +03:00
Kai Huuhko
f169d4650d
Ethumb: Correct the string representation functions.
2014-04-11 18:46:12 +03:00
Kai Huuhko
c342feab6f
Ethumb: Adjust file headers to the new merged python-efl style.
2014-04-11 18:28:42 +03:00
Kai Huuhko
6ebdf2b607
Bring back Python bindings for Ethumb.
2014-04-11 18:12:49 +03:00
Kai Huuhko
8cc17b5777
Elementary: const'ness for getters
2014-04-09 18:25:48 +03:00
Davide Andreoli
beff74c28a
added docs for Eo
2014-04-06 23:36:05 +02: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
Davide Andreoli
5c3ced421c
docs: remove the signatures from the docstring, are now autimatically added by cython
2014-04-06 17:03:58 +02:00
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
a85177bc4b
utils.deprecated: Handle docstring indentation when modifying it.
2014-01-25 03:51:55 +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
Davide Andreoli
cabc442195
Try to fix evas SmartObject
...
* implemented a test for smart obj
* remove comments from factories methods
* install the metaclass also for the Clipped one
Smart object implementation is still broken :(
Every object segfault on delete, the reason is
the eo del callback called BEFORE the smart
delete function. need to investigate better.
2014-01-06 12:40:59 +01:00
Kai Huuhko
264491875d
Edje: Re-enable edje-edit.
2013-12-30 14:04:57 +02:00
Kai Huuhko
a9a944b17b
Add Python 2.6 compatibility, disabled one API method in evas.Image
...
Image.image_data_memoryview_get was disabled.
This method can be added back once we figure out how to do conditional
compilation using Python version.
Using an evas.Image instance as a memoryview object should do the same
thing as the disabled method.
2013-12-28 18:35:39 +02: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
bb5307ea20
Evas: Use _set_properties_from_keyword_args
2013-12-04 13:14:12 +02:00
Kai Huuhko
1e43cb98f4
Edje: Use _set_properties_from_keyword_args
2013-12-04 13:14:12 +02:00
Kai Huuhko
8cc7cc74de
Emotion: Use _set_properties_from_keyword_args
2013-12-04 13:14:05 +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
50af0b86a5
Removing eldbus stuff, we'll be using python-dbus integration for now.
2013-12-02 01:09:39 +02:00
Kai Huuhko
7f76a38ebf
Evas: Size hint constants were inadvertantly imported as enums
...
Change them back to floating point values.
2013-12-01 09:44:23 +02:00
Kai Huuhko
1ad70ef3d6
Utils.logger: Initialize threads in the module.
...
If the print cb was called from another thread it would segfault.
This was being triggered when Emotion printed out an error message.
2013-11-29 23:41:07 +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
83f37fa9ad
Ecore: Fix string handling in Exe.send
2013-11-28 21:06:53 +02:00
Kai Huuhko
7271d53fc0
Utils.logger: Move log buffer to module space, increase size to 1KB
2013-11-28 20:56:37 +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
3473e92379
Evas: Improve and correct the event string representations.
...
__repr__ should be used for object string representation, __str__ is
for converting something to a string value.
2013-11-26 02:32:22 +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
b5ecf69887
Evas: py3k compatibility fix for events' modifier_is_set method
2013-11-25 17:10:22 +02:00
Kai Huuhko
4bd9dd3243
Eo: Fix a Py2'ism.
2013-11-24 18:29:33 +02:00
Kai Huuhko
f2b22e94bb
Eo: Change _register_decorated_callbacks to not use hasattr/getattr
...
They actually get the value of a property, leading to unexpected
behavior. Iterate the class dict instead.
2013-11-24 17:56:08 +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
ba9f729094
Ecore: Add AnimatorTimeline.
2013-11-19 21:21:04 +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
e557b2fcb4
Eo: Add several methods, tests and more debug logging.
...
Methods:
- parent_set/get
- event_freeze(_get)/thaw
- delete
Functions:
- event_global_freeze(_get)/thaw
Moved enums to efl.eo.enums.pxd
2013-11-09 09:05:44 +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
b05187b52e
Evas.Image: Update to new Python buffer API, fix doc issues.
...
Needs testing.
2013-11-07 11:30:02 +02:00
Kai Huuhko
05cd30a2e3
Evas.SmartObject: Add a test from old bindings, fix trivial doc issues.
2013-11-06 05:03:41 +02:00
Kai Huuhko
4ca341d0d5
Evas.SmartObject: Basic object should be functional again.
...
At least the simple test passes.
Needs more work and tests.
2013-11-05 18:12:53 +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
f9971fecc5
utils.logger: PyUnicode_FromFormatV -> vsprintf
...
The Py function segfaults with certain (malformed?) messages.
2013-10-30 11:26:14 +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
be547283f0
Eo: Speed up, and fix a cornercase in, _properties_from_keyword_args.
...
hasattr tries getattr which can be variedly slow, so check dict instead.
This also fixes it in cases where the property doesn't have a __get__
function.
2013-10-30 03:19:03 +02:00
Kai Huuhko
ada7a8c07e
Elementary: Add some TODO code comments
2013-10-29 12:36:08 +02:00
Kai Huuhko
6a0e8a7166
Fix customization of logger class when using Py2
2013-10-28 18:55:58 +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
d6d440c3a6
Add support for loggers that have been initialized already.
...
This allows module initialization to be logged as well.
Changed add_logger to return the logger object instead of int.
2013-10-26 03:22:47 +03:00
Kai Huuhko
19e7d11f61
Resolved Py3 issues.
...
Fixes T459
2013-10-26 02:38:25 +03: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
374f267ecc
Fix missing symbol PyString_FromFormatV when compiled for Python 3.x.
...
That function was removed so I replaced it with PyUnicode_FromFormatV,
cdef extern it directly from Python.h since it's not found in Cython
unicode.pxd.
2013-10-25 13:49:29 +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
4771ca5ccb
Move logger to its own module.
2013-10-24 22:58:09 +03:00
Kai Huuhko
8cbee5c44d
Handle unknown domain messages in "efl" logger.
2013-10-23 21:49:56 +03:00
Kai Huuhko
7fbab02702
First attempt at integrating Eina Log with Python logging.
...
Has two loggers: efl and efl.eo.
To test, add handlers, formatters etc. and change levels using
normal Python logging utilities. The test messages come from
efl.eo init and class registration.
2013-10-23 14:34:42 +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
b981ce3840
New feature: Set properties using constructor keyword arguments.
...
Only applied to Elm Bubble for now as an example.
2013-10-20 14:34:53 +03:00
Davide Andreoli
85ac116577
Python-EFL: unbreak the compilation with older cython. Kuuko: you win a spank this time :P
2013-10-14 21:30:49 +02:00
Kai Huuhko
87ee22d559
Elementary: DnD work
...
- Genlist default animation test functional
- Some callbacks are still missing
2013-10-10 05:42:39 +03:00
Kai Huuhko
40d5c4250a
utils.conversions: Initialize Eina_List to NULL
2013-10-09 17:04:16 +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
6299a6c8ae
Elementary: Make inheriting from scrollable a responsibility for the user.
2013-10-08 09:11:12 +03:00
Davide Andreoli
feb9fb912c
Python-EFL: unbreak the build with older Cython versions
2013-10-07 21:18:44 +02: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
fa9e96dff9
Elementary: Add a test for Access.
...
Change internal only GenlistItem.itc to readonly item_class
2013-10-04 15:11:57 +03:00
Kai Huuhko
914c6ffd6b
Elementary: Add various missing functions
2013-10-04 09:29:45 +03:00
Kai Huuhko
9413b157b9
Evas/Eo: Fix couple of crashes related to Canvas cb's and Eo
2013-10-03 06:19:04 +03:00
Kai Huuhko
9e1b6a676c
Elementary.general: Enable functions that were previously problematic.
2013-10-03 00:30:23 +03:00
Kai Huuhko
d4e5ea886c
Elementary: Fix Gengrid item_cb crash
2013-10-02 23:38:31 +03:00
Kai Huuhko
d430807974
Elementary: Add custom effects for transit.
2013-10-02 19:34:47 +03:00
Kai Huuhko
87e2e8f9a1
Elementary: Add more failsafes to transit del_cb
2013-10-02 07:22:20 +03:00
Kai Huuhko
bef896b490
Elementary: Fix transit del_cb
2013-10-02 05:59:21 +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
6587b5be67
Rename efl.pxd to efl.eina.pxd
2013-09-30 07:26:35 +03:00
Kai Huuhko
a1d45bb167
Elementary: Few more missing functions.
2013-09-25 02:37:26 +03:00
Kai Huuhko
f40afed56a
Elementary: Add more missing signals/functions.
2013-09-24 01:02:01 +03:00
Kai Huuhko
e3509d4dd8
Elementary: Add missing functions/signals
2013-09-22 21:16:31 +03:00
Kai Huuhko
ac9b1bf001
Elementary: Add new thumb functions
2013-09-20 14:49:56 +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
Davide Andreoli
f8c332d636
Python-EFL: add support for the "recording" style of ProgressBar
2013-09-16 21:10:45 +02:00
Davide Andreoli
bac6d9a281
Python-EFL: warn the user when try to use the subprocess or the signal modules, as they conflict with ecore
2013-09-15 17:53:21 +02:00
Kai Huuhko
da71cedc0a
Documentation: Remove class- prefix from ecore doc files
2013-09-14 15:01:01 +03:00
Kai Huuhko
158567f5d5
Elementary Fileselector: Add mime type filter methods
2013-09-14 12:36:18 +03:00
Davide Andreoli
6873820e95
PythonEFL: implemented some missed apis in edje
2013-08-19 20:49:18 +02:00
Davide Andreoli
7fefb7beef
PythonEFL: implemented emotion vis stuff
...
Untested as probably no backend implement the feature,
but now emotion has 100% coverage :)
2013-08-19 19:37:55 +02:00
Davide Andreoli
d53b481d4d
PythonEFL: emotion_extension_may_play_get() does not need an obj instance, moved out of the Emotion class.
2013-08-19 12:56:22 +02:00
Davide Andreoli
7925fc7056
Python-EFL: some works on the photocam widget
...
* implemented a proper test
* implemented remote url feature
* fixed file_set error raise
* implemented all the missing legacy setter/getters
2013-08-12 20:56:45 +02:00
Davide Andreoli
66e7f00308
PythonEFL: change the way progressbar pulse mode work.
...
Prior to this commit you enable (and start) the pulsing animation by doing:
pb.pulse = True
pb.pulse(True)
Now you need to use the less-confusing syntax:
pb.pulse_mode = True
pb.pulse(True)
Sorry for braking the API but was really confusing before.
2013-08-12 16:50:50 +02:00
Davide Andreoli
c1298443b3
PythonEFL: add support in Image for urls and a new test for the Image widget
2013-08-12 15:32:33 +02:00
Davide Andreoli
0fe8211593
PythonEFL: do not ignore exceptions in Timer/Animator/Poller/Idlers callbacks
2013-08-11 11:20:26 +02: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
0fc1e2bd98
Evas: Remove the unnecessary value assignments for enums.
2013-05-30 16:53:35 +03:00
Davide Andreoli
9ecda02403
Python-EFL: be consistent in file naming
2013-05-29 22:34:39 +02:00
Davide Andreoli
fd131a2b69
Python-EFL: @on_event(event_name) decorator for Emotion
2013-05-14 23:13:26 +02:00
Davide Andreoli
5913721de9
Python-EFL: implemented decorators for edje.
...
Decorators implemented in a much more simple and generic
way than before, we can use them in other place too.
3 deco implemented:
@on_signal(emission, source)
@message_handler
@on_text_change
I choosed the 'strange' on_* naming convention to not
clash/confuse with normal callback functions, tell
me if you don't like.
2013-05-14 21:51:29 +02:00
Davide Andreoli
1c255024d3
Python-EFL: implemented ecore.Poller, with docs and unittest.
2013-05-13 01:27:00 +02:00
Davide Andreoli
fcac9e23ad
Python-EFL: docs for ecore.FileMonitor
2013-05-12 20:08:31 +02:00
Davide Andreoli
39e16242a0
Python-EFL: implemented ecore.FileMonitor class
2013-05-12 19:15:09 +02:00
Kai Huuhko
94896f625d
Complete renaming edbus -> eldbus.
2013-05-06 22:36:09 +03:00
Davide Andreoli
2b7a9c7030
Python-EFL: follow the eldbus rename.
2013-05-01 23:13:26 +02:00
Davide Andreoli
cc65c1cf40
Python-EFL: unbreak compilation with cython 1.7.3
2013-05-01 22:57:01 +02: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
c14ab47b09
Elementary: Add a few simple methods that were added to C API recently.
2013-05-01 15:49:57 +00:00
Kai Huuhko
fa8e942762
Documentation: Position the widget example images so they are more
...
naturally in context with the description text.
2013-05-01 15:49:57 +00:00
Kai Huuhko
3072f93a83
Elementary: Add an incomplete scrolled entry test. Needs the filter cbs
...
implemented.
2013-05-01 15:45:26 +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
63000ba25c
Elementary: Add missing Illume command constant values to Window,
...
improve its documentation and silence some Cython warnings by making the
methods cpdef.
2013-05-01 15:25:19 +00:00
Kai Huuhko
de6fd9f832
Elementary: Use genlist_item_class functions to manage the class struct,
...
improve item handling by using class attributes instead of the params
tuple.
2013-05-01 15:24:42 +00:00
Kai Huuhko
d2a6f8a94c
Elementary: Split genlist into more easily manageable files, it still
...
compiles into one module.
2013-05-01 15:24:42 +00:00
Kai Huuhko
dc1a54dec3
Elementary: Improve Genlist documentation.
2013-05-01 15:24:42 +00:00
Kai Huuhko
94df82ad33
Eo: Python objects should not be manipulated in __cinit__ and
...
__dealloc__ methods. Initializing them *seems* to be safe though.
And there's no need to initialize either the C objects to NULL nor
python objects to None, this gets done automatically by Cython, along
with initializing integers to 0.
2013-05-01 15:24:42 +00:00
Kai Huuhko
c9d3cc4536
Elementary: Fix the legacy genlist item factory functions that were
...
left broken in last pull/rebase/conflict resolution.
2013-05-01 15:24:42 +00:00
Kai Huuhko
ab91f97961
Elementary: Add special methods that allow iterating natively over a Genlist
...
eg:
for item in genlist:
print(item)
2013-05-01 15:24:41 +00:00
Kai Huuhko
d3cd5a4239
Eo: Add a boolean special method which does the same (opposite) as is_deleted().
...
Now you can write:
if not my_obj:
raise VeryBadError("My object is gone!")
and:
if my_obj:
my_obj.manipulate()
instead of:
if my_obj.is_deleted()
raise ErrorBadVery("Where did it go?")
and:
if not my_obj.is_deleted():
my_obj.manipulate()
But really, we should add NULL checks all over the place instead of
having the end developers checking for it.
2013-05-01 15:05:08 +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
e0e2cb81ce
Elementary: Fix Toolbar states.
2013-04-22 20:20:21 +03:00
Kai Huuhko
724b999095
Ecore: Optimizations.
2013-04-22 20:20:21 +03:00
Kai Huuhko
f38a3145d1
Silence some compiler warnings.
2013-04-22 20:20:21 +03:00
Kai Huuhko
15bb88021c
Elementary: Improve Image documentation.
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
9bdd51215b
Elementary: Add Flip.go_to() and improve documentation.
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
e5e82619d5
Elementary: Add trivial methods/properties to label/mbentry/notify.
2013-04-22 20:20:21 +03:00
Kai Huuhko
41ade8572d
Elementary: Add Entry context item properties label and icon.
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
aa76bc30c1
Elementary: Implement Toolbar prepend etc. methods by changing the
...
item handling to same style as List.
2013-04-22 20:20:21 +03:00
Kai Huuhko
e164c111a2
Elementary: Implement Toolbar item states, which create an issue with
...
the item data making the item_del_cb crash.
2013-04-22 20:20:21 +03:00
Kai Huuhko
4ded23ad3b
Elementary: Implement Transit del_cb and add tests, which uncovered issues.
2013-04-22 20:20:21 +03:00
Kai Huuhko
b3b87fe928
Ecore: Small optimization to the task_cb function call.
2013-04-22 20:20:20 +03:00
Kai Huuhko
898f32371a
Sed to the rescue.
2013-04-22 20:20:20 +03:00
Kai Huuhko
2f0c2dc6d7
Eo: Apparently Cython doesn't optimize .encode() so we should begin
...
exchanging it with the C function call PyUnicode_AsUTF8String.
2013-04-22 20:20:20 +03:00
Kai Huuhko
058777167c
Elementary: Separate GenlistItem func_data from item_data, add small
...
optimizations.
2013-04-22 20:20:20 +03:00
Kai Huuhko
285856ea03
Elementary: Initial implementation for Store. Still needs work on
...
creating the data struct, maybe using memoryviews.
Includes some internal changes for Genlist.
2013-04-22 20:12:28 +03:00
Kai Huuhko
8033275e70
Elementary: Fix coords_finger_size_adjust and add commented out code for fonts.
...
Need to find out why they're generating a parsing error in Cython.
2013-04-22 20:12:28 +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
b9b13d0495
Elementary: Comment out the unimplemented Progressbar format function property.
2013-04-22 20:12:28 +03:00
Kai Huuhko
cdfa89f8cb
Elementary: Implement adding context menu items for Entry.
2013-04-22 20:12:28 +03:00
Kai Huuhko
4a008cac7f
Elementary: Improve documentation for Slider, Slideshow and Spinner.
2013-04-22 20:12:28 +03:00
Kai Huuhko
19a2aaf70c
Elementary: Add decorate mode tests for Genlist.
2013-04-22 20:12:28 +03:00
Kai Huuhko
531b4ea3ac
Elementary: Fix Toolbar menu_get and make the example/test more pythonic.
2013-04-22 20:12:28 +03:00
Kai Huuhko
491400b100
Elementary: Free Configuration profiles list after converting it to
...
python list.
2013-04-22 20:12:28 +03:00
Kai Huuhko
df1eecb4a0
Elementary: Add missing callbacks for Window, and change socket_listen
...
to raise RuntimeError instead of returning in case of error.
2013-04-22 20:12:28 +03:00
Kai Huuhko
aa1828d668
Elementary: Change GenlistItem constructor documentation to reflect the
...
current implementation. It should be changed if item_data is to be
separated from func_data.
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
259c78d8b2
Elementary: Comment out quicklaunch defines and add them to ignores.
2013-04-22 20:12:27 +03:00
Kai Huuhko
b598049b36
Elementary: Add missing API for Index and Scroller.
2013-04-22 20:12:27 +03:00
Kai Huuhko
876e7c3c4c
Elementary: Fix segment control segfault.
2013-04-22 20:12:27 +03:00
Kai Huuhko
40e76e001a
Evas: Add Grid.
2013-04-22 20:12:27 +03:00
Kai Huuhko
77ed60ae26
Evas: Add some missing API to Object.
2013-04-22 20:12:27 +03:00
Kai Huuhko
10635266ff
Evas: Add Table.
2013-04-22 20:12:27 +03:00
Kai Huuhko
a640785a60
Elementary: Add some missing API to Transit.
2013-04-22 20:12:27 +03:00
Kai Huuhko
0ce7f84471
Elementary: Add some missing API to Toolbar.
2013-04-22 20:12:27 +03:00
Kai Huuhko
7759832b6d
Elementary: Add some bits of missing API to Entry.
2013-04-22 20:12:27 +03:00
Kai Huuhko
35c3f99d5f
Elementary: Complete the API for Gesture layer.
2013-04-22 20:12:27 +03:00
Kai Huuhko
823363c6eb
Elementary: Improve documentation for Window, Entry, Hoversel, Label,
...
List, Datetime and Dayselector.
2013-04-22 20:12:27 +03:00
Kai Huuhko
b7e0b00d9a
Elementary: Add missing API to Configuration.
2013-04-22 20:12:27 +03:00
Kai Huuhko
2f5cd70edf
Elementary: Remove deprecated scroller functions from Genlist
2013-04-22 20:12:27 +03:00
Kai Huuhko
b7abe5f423
Evas: Improve documentation for Box, Line, Map, Textblock, Text,
...
Textgrid, Rect.
Comment out broken Map properties.
2013-04-22 20:12:27 +03:00
Kai Huuhko
5685396582
Evas: Add some missing bits to Image.
2013-04-22 20:12:26 +03:00
Kai Huuhko
9658aeeb34
Evas: Object documentation fixes.
2013-04-22 20:12:26 +03:00
Kai Huuhko
234cc629e5
Ecore: Add mainloop_glib_always_integrate_disable().
2013-04-22 20:12:26 +03:00
Kai Huuhko
4b9cacd74e
Evas: Fix Textgrid and add tests.
2013-04-22 20:12:26 +03:00