Cedric Bail
29af5e1e43
elementary: update to new eo_parent_get/set API.
2013-09-25 13:34:27 +09:00
Tom Hacohen
3e2327f6e4
Revert "elm_gesture_layer: Fix potential NULL pointer dereference."
...
This reverts commit 824ee3c56b1a23a082b5e5d1016d8e872a51fbce.
This commit breaks many gestures that are not "pointer" based.
For example, zooming with Ctrl+Wheel. But not only.
2013-09-18 14:14:37 +01:00
ChunEon Park
fe0f0a445e
elementary/widgets - set parents before widget constructs their body.
...
This avoids unnecessary setups again when obj <-> sub has connected.
2013-08-27 00:29:45 +09:00
Daniel Juyung Seo
c5b0d63838
fixed documentation for consistency. Gets -> Get.
...
Occurance of Get is super much higher than Gets.
So change Gets to Get for consistency.
2013-08-22 05:24:46 +09:00
Daniel Zaoui
cb8d4790e6
Gesture Layer: fix typo on Eo op
2013-08-08 16:16:31 +03:00
Carsten Haitzler
59e8bc5a35
Fix elm to use key not keyname (so xmodmap works)
2013-07-31 15:16:41 +09:00
Aharon Hillel
c557da90cc
Elementary: Gesture Layer added move for Taps Added MOVE state report for Double,Triple Tap gesture
...
Signed-off-by: Aharon Hillel <a.hillel@samsung.com>
2013-07-11 15:41:55 +01:00
Daniel Juyung Seo
3be4bf95ce
elm_gesture_layer.c: removed unnecessary assignment.
...
This fixes 'unused pointer value' warning which was spotted by coverity. CID 1039974.
2013-07-06 12:46:07 +09:00
Aharon Hillel
3b26991959
Gesture Layer: cancel timer on delete.
...
We need to cancel any running timers when GLayer is deleted.
2013-07-04 10:38:42 +03:00
Aharon Hillel
f2b02d0680
Gesture Layer: changed order in cleanup func.
...
Changed the order when GLayer is deleted. First we cancel all Gestures,
then we handle any event forwarding.
2013-07-03 13:57:22 +03:00
Aharon Hillel
13da4a3a80
Gesture Layer: fix crash during deletion.
...
if target object is deleted before GLayer is deleted, we get a crash
from _event_history_clear.
Setting target to NULL on delete, then testing it before reporting state
takes care of this problem.
2013-07-03 13:57:22 +03:00
Daniel Juyung Seo
43abefe26f
elm_gesture_layer.c: fixed warnings.
2013-06-27 10:43:45 +09:00
Daniel Zaoui
e49de4c97b
Gesture Layer: support multiple callbacks per type/state.
...
elm_gesture_layer_cb_add/del functions have been added to provide this
functionality.
elm_gesture_layer_cb_set provided only one callback and so was
overriding the callback with the new one.
For ABI compatibility, some rules were needed:
- when set function is called with NULL, all the callbacks of the state will be
removed (old behavior respect)
- try to use set or add/del exclusively with a preference to the new
APIs. This is because of the first rule and because it will be more correct.
- if you remove a callback, only one instance of this callback of this
type/state for this gesture will be removed, by comparing func and data.
It means that if you register twice the same callback/data, it will be added
twice and you will have to remove also twice too.
2013-06-26 14:37:52 +03:00
Daniel Zaoui
aea9b1d262
Gesture Layer: Add API to set the finger size for taps.
...
The default value is the one stored in elm_config.
2013-06-25 10:43:04 +03:00
Aharon Hillel
dcab3545cf
Gesture Layer: fix to improve fingers taps registration
...
Signed-off-by: Aharon Hillel <a.hillel@samsung.com>
2013-06-25 10:42:39 +03:00
Stefan Schmidt
c44bd02f0e
elm_gesture_layer: Fix potential NULL pointer dereference.
...
If _pointer_even_make is false pe stays NULL and might get dereferenced
later. Instead we return now if _pointer_event_make fails.
Thanks to Tom for consulting with the gesture layer code.
2013-06-13 16:25:14 +01:00
Shinwoo Kim
5c6b745ea7
elm_gesture_layer.c: add EVAS_CALLBACK_DEL to the target object. The target object could be deleted before deletion of the gesture layer.
2013-06-03 20:48:15 +09:00
Daniel Juyung Seo
37511fda1d
elm_gesture_layer.c: ELM_SAFE_FREE adoption.
...
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:54:30 +09:00
Daniel Juyung Seo
5f053bf79a
elm: refactoring. use more ELM_FREE_FUNC.
2013-05-23 15:54:49 +09:00
Seunggyun Kim
6d980a03e7
elm_gesture_layer: fix ecore_timer remaining bug.
2013-05-09 13:28:45 +09:00
Cedric Bail
c929b33052
elementary: properly sanitize headers order.
2013-05-03 16:07:06 +09:00
Daniel Zaoui
187d6bf8de
Elementary: replace eo_data_get for objects data referencing.
2013-05-01 11:04:09 +03:00
Daniel Juyung Seo
ba4dbce9d9
elm: enhance eina_list_free usages. use EINA_LIST_FREE if needed.
2013-04-10 20:28:35 +09:00
Daniel Juyung Seo
74b3eed5fd
elm: print the error message inside elm_widget_sub_object_add().
...
1. Do not need to print the same error message from all the widget codes.
2. Even though elm_widget_sub_object_add() can be used internally, there should be no error message at all.
Elm devs should fix it beforehand.
So it looks ok to print the error message in elm_widget_sub_object_add() to force elm devs to fix it.
3. Got additional code cleanups.
2013-04-03 11:28:53 +09:00
Tom Hacohen
d75cb616da
Change usage of eo_do_super to the new prototype.
2013-03-18 16:15:12 +00:00
Daniel Juyung Seo
78c042cdbe
elm *.c: fixed formatting with EINA_LIST_FREE.
...
EINA_LIST_FREE (xxx) -> EINA_LIST_FREE(xxx)
2013-03-09 13:23:42 +09:00
Daniel Zaoui
cdd1eea853
Replace supported_types
...
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>
SVN revision: 83803
2013-02-10 07:52:31 +00:00
Daniel Juyung Seo
ffa9c1e793
elm: Refactoring.
...
Smart data is already initialized so we do not need to re-initialize them if the value equals to 0, NULL, or EINA_FALSE.
Sometimes re-initializing smart data explicitly is needed for readability. So there are left overs.
SVN revision: 82228
2013-01-04 19:10:19 +00:00
Daniel Zaoui
f683f07d5e
Gesture layer APIs added to access internal variables of the specific
...
data of the object
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>
SVN revision: 80742
2012-12-12 09:13:32 +00:00
Cedric BAIL
03b1f72c34
elementary: fix uninitialized data path in elm_gesture_layer.
...
SVN revision: 80217
2012-12-05 06:56:18 +00:00
Daniel Zaoui
24e54567e5
Fix for long tap behavior: update coords before sending LONG_TAP_START to user
...
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>
SVN revision: 80147
2012-12-04 12:36:47 +00:00
Daniel Zaoui
0c915e9023
Cleaning: removed include Eo.h in widgets because it was indirectly included by Elementary.h
...
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>
SVN revision: 79682
2012-11-26 09:29:01 +00:00
Yakov Goldberg
5c98343198
We have ported to Eo all the widgets of elementary. We didn't change the inheritance itself, only the mechanism, as done previously in Evas, Ecore and Edje. We removed totally the previous inheritance mechanism.
...
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>
SVN revision: 79668
2012-11-26 06:32:53 +00:00
Shinwoo Kim
673efad150
use evas_object_event_callback_del_full() instead of evas_object_event_callback_del().
...
because target object could have different gesture callback with different gesture object.
after _callbacks_unregister() is called, only one callback remains.
SVN revision: 79317
2012-11-15 05:45:44 +00:00
Daniel Juyung Seo
30dba54610
elm: Fixed indentations for EINA_LIST/INLIST_FOREACH(_SAFE).
...
SVN revision: 77244
2012-10-01 07:36:27 +00:00
Gustavo Lima Chaves
584c53c1be
[elm] New elm_widget_add() usage spread.
...
SVN revision: 74148
2012-07-18 21:03:39 +00:00
Carsten Haitzler
1b1ff559f2
fix gesture layer if config happens to have 0 timeouts which causes
...
misbehavior.
SVN revision: 73842
2012-07-14 09:17:04 +00:00
Tom Hacohen
55e3f1df07
Elm glayer: Fixed longtap.
...
Thanks to raster for spotting this.
SVN revision: 73187
2012-07-03 05:24:03 +00:00
Tom Hacohen
2500a5248a
Elm glayer: Filter out the duplicate multi* events.
...
One should either listen to mouse events and filter the corrosponding multi
events, or listen only to multi events. We chose the former, so we should
handle it correctly.
SVN revision: 72905
2012-06-27 00:27:18 +00:00
Gustavo Lima Chaves
195149bd32
[elm] Gesture layer now ported too.
...
SVN revision: 71464
2012-05-28 16:56:56 +00:00
Tom Hacohen
f9c2c5fd69
Elm glayer: Change double_tap_timeout to 0.25.
...
Listen to Hermet's wise counsel.
SVN revision: 71269
2012-05-21 07:51:41 +00:00
Tom Hacohen
ce02820a26
Elm glayer: Made tap timeout a config.
...
SVN revision: 71258
2012-05-20 14:56:35 +00:00
Tom Hacohen
0bbb0a43ef
Elm glayer: cosmetic changes.
...
SVN revision: 71257
2012-05-20 14:56:32 +00:00
Tom Hacohen
5c5bc24aae
Elm glayer: Removed all the "DEBUG_GLAYER" printfs.
...
If someone wants to debug anything, he'll do specific debugs anyway, no
need to clutter the code.
SVN revision: 71256
2012-05-20 14:56:29 +00:00
Tom Hacohen
b6efa42204
Elm glayer: simplified "continues gesture" mode.
...
SVN revision: 71255
2012-05-20 14:56:26 +00:00
Kim Shinwoo
7c494c0757
elementary/gesture_layer: remove redundancy null checking at _tap_gesture_check_finish
...
Signed-off-by: Kim Shinwoo <kimcinoo.efl@gmail.com>
SVN revision: 71219
2012-05-18 01:45:40 +00:00
Tom Hacohen
7d0609a62c
Elm glayer: Have a nice and clean array to call the test/reset funcs.
...
SVN revision: 71215
2012-05-17 15:31:34 +00:00
Tom Hacohen
cd2324fb93
Elm glayer: Unify internal test function type.
...
Will let us do cool cleanups in the future.
SVN revision: 71214
2012-05-17 15:31:31 +00:00
Tom Hacohen
f5ac377431
Elm glayer: Clean up N_LONG_TAPS a bit.
...
SVN revision: 71213
2012-05-17 15:31:29 +00:00
Tom Hacohen
1e2d9f200d
Elm glayer: Clean up handling of the taps timeout and rename it.
...
SVN revision: 71212
2012-05-17 15:31:23 +00:00