Commit Graph

824 Commits

Author SHA1 Message Date
Davide Andreoli 69b6310954 Improve -clicked- detection code by accept only if the mouse do not move too much
Too much in this case is a fixed 4px. As fingers do not have a right button I think
that taking into account finger size is not needed here.

Also someone argued about the signal name is not really correct...
should I change it to somethig like: clicked,secondary ?
2014-12-26 18:46:28 +01:00
Davide Andreoli 536c5de134 Genlist: added the clicked,right event on items
@feature
2014-12-26 17:29:51 +01:00
Amitesh Singh fc1579020c list/genlist/gengrid: Fix memory leak.
Summary: @Fix

Reviewers: kimcinoo, SanghyeonLee, raster, seoz

Reviewed By: seoz

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1825
2014-12-26 20:22:57 +09:00
Daniel Juyung Seo d47a4adae4 gengrid, genlist, list, toolbar: Fix memory leak and enhance performance.
1. Fix memory leak by freeing eina_list.
2. Enhance performance by getting the item list when it is really
needed.

@fix
2014-12-26 18:41:48 +09:00
Daniel Juyung Seo 9b038471bf genlist: Return the correct pointer for object item.
No backport needed.
2014-12-26 14:36:36 +09:00
Andrii Kroitor 8148de6e17 elm_genlist: add missing callback call
Summary:
Added missing "moved" callback call when reordering items with keyboard
"up" and "down" arrows

@fix

Reviewers: cedric, raster, seoz

Reviewed By: seoz

Subscribers: reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D1818
2014-12-26 14:23:42 +09:00
Mike Blumenkrantz c201ec6c87 genlist should ignore no-select items when moving with the keyboard
@fix
2014-12-25 20:39:17 -05:00
Daniel Juyung Seo 4a61d3955e genlist: Fix dereference before null check.
This fixes coverity CID 1258636.
No backport needed.
2014-12-16 23:54:13 +09:00
Carsten Haitzler 17f411f6be elm - fix warnings added in f99be3a1d6bdc63153598b592b5437c33da44bf0 2014-12-16 19:36:35 +09:00
Jyotiprakash Sahoo 17419ec81c genlist: added reorder feature on key events
Summary: This feature allows user to reorder items using up/down keys.

Test Plan: elementary_test -to "Genlist Reorder Mode"

Reviewers: singh.amitesh, raster, seoz, SanghyeonLee

Differential Revision: https://phab.enlightenment.org/D1262

Conflicts:
	src/bin/test_genlist.c
	src/lib/elm_genlist_legacy.h
2014-12-16 18:20:32 +09:00
Daniel Juyung Seo 14e79451c2 genlist: Fix genlist crash issue when clearing genlist on item focus callback.
This fixes "genlist focus" test sample's crash issue.

@fix
2014-12-14 04:19:42 +09:00
Daniel Juyung Seo e31df3372c gengrid, genlist: Optimize eo item usage.
Remove unnecessary pointer reference.
2014-11-25 21:55:14 +09:00
Daniel Zaoui dfc3f7ac30 Genlist: Fix previous commit.
The items of an item is a list of Elm_Object_Item and not of Elm_Gen_Item.
Sorry @zmike ;-)

Fixes T1859

Another fix has been added in this commit, related to relative items.
2014-11-23 09:18:42 +02:00
Daniel Zaoui 0f28743080 Genlist: Fix API return value.
elm_genlist_item_subitems_get has to return a list of Elm_Object_Item.
Because of the porting of the genlist item to Eo, this function returns
a list of Elm_Gen_Item.

Thanks to zmike and seoz for catching this.

Fixes T1859
2014-11-22 09:40:37 +02:00
Daniel Juyung Seo 7fc83c54b5 genlist: Fix build warning for uninitialized variable.
elm_genlist.c:1916:15: warning: 'eo_it' may be used uninitialized in
this function [-Wuninitialized]
2014-11-19 19:53:40 +09:00
Daniel Zaoui 05225b162e Object Items: remove data variable from widget item.
Now, data is stored in Eo layer via eo_key_data_set/get.

Two macros have been added to facilitate access.
2014-11-12 12:03:58 +02:00
Daniel Zaoui ef03bc098e Object Items: remove legacy APIs.
They are now generated by Eolian.
2014-11-12 12:03:58 +02:00
Daniel Zaoui b01d01528a Object Items: remove casts that are no more needed.
It includes casts to Eo, Elm_Object_Item and to specific items data.
This belongs to the cleaning phase of the object items porting to Eo.
2014-11-12 12:03:57 +02:00
Daniel Zaoui ca286ea1cb Elm Genlist Item: Migrate to Eo 2014-11-12 12:03:56 +02:00
Daniel Zaoui a9b13f7633 Elm Widget Item: Migrate to Eo
Since we want to support legacy inheritance mechanism, code is not
finished and will have to be cleaned when all the items are ported.
2014-11-12 11:52:10 +02:00
Daniel Juyung Seo f9ec18f586 genlist: Remove unnecessary callbacks when item loop is disabled.
@fix
2014-11-07 02:20:21 +09:00
Lukasz Stanislawski 2ca1f8a75a atspi: properly include at-spi headers.
Summary:
Change requested by TAsn. Previuosly AT-SPI headers were kept private
and included directly into elementary source code. From now on,
AT-SPI headers can be included from Elementary.h public header, however
will be marked as beta APIs.

Commit includes following changes:
* include all atspi headers into new elm_interfaces.h header.
* marking all at-spi interfaces methods/properties as @protected.
* wrap all common headers with EFL_BETA_API_SUPPORT.
* make some common APIs visible in lib, by adding EAPI attribute
  (if someone decides to use beta APIs).

Test Plan: out-off tree build with gcc, g++

Reviewers: tasn

Reviewed By: tasn

Subscribers: seoz, q66, kuuko

Maniphest Tasks: T1721

Differential Revision: https://phab.enlightenment.org/D1528
2014-10-17 16:57:26 +01:00
zmike 2bcbe743d1 genlist item block recalc checks now more readable 2014-10-07 14:07:13 -04:00
zmike dbc3b87b18 genlist item block recalc checks make more sense 2014-10-07 14:07:13 -04:00
Tom Hacohen 236bab8d53 Change according to recent Eo changes, and fix related wrong unrefs.
eo_add()'s counterpart is eo_del, not eo_unref. Regardless of that, some
objects were being double-deleted which spew out some eo errors. These
things should now be fixed.

bc6b6aa457 is the relevant EFL commit.
2014-09-30 14:54:52 +01:00
Tom Hacohen 7629c147eb Eo related: Change according to recent changes in eo_add().
For more info check out a7560dbc61 in
the EFL tree.
2014-09-25 17:39:34 +01:00
Amitesh Singh b9744e58f5 genlist: Removed unnecessary casting of genlist item.
Reviewers: seoz

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1471
2014-09-25 01:36:03 +09:00
Jae Yong Hwang fbee0944db genlist: Fixed a crash bug in case of calling a genlist_clear in a select callback function.
Summary:
If item select callback is elm_genlist_clear and genlist object have many item, elm_genlist_clear was broken.
This reason is due to incorrect code. In Old code, check the item focus  after an item was deleted. So, I changed the order of the code.
Before item was deleted, Check the item focus.
@fix

Test Plan: I revised the elementary_test code and tested with that.

Reviewers: raster, SanghyeonLee, seoz

Reviewed By: seoz

Subscribers: bluezery, SanghyeonLee

Differential Revision: https://phab.enlightenment.org/D1418
2014-09-06 01:47:55 +09:00
Daniel Juyung Seo e68db15448 genlist: added internal function _view_clear() for common codes.
Use this function for normal items, decorate items, and decorate all
items.
2014-08-22 03:44:26 +09:00
Daniel Juyung Seo 08fe37c254 genlist: merged _item_content_realize() and _item_mode_content_realize(). 2014-08-22 03:44:26 +09:00
Daniel Juyung Seo 460609ce80 genlist: moved internals functions before refactoring it.
_item_text_realize(), _item_content_realize(), and
_item_state_realize().
2014-08-22 03:44:26 +09:00
Daniel Juyung Seo 122dda0b48 genlist: Added internal functions _view_create and _view_style_update
for the commonly used codes.
2014-08-22 03:44:26 +09:00
Daniel Juyung Seo 9c81e0e02a genlist: Unbreak double click smart callback.
Fixed a typo in my commit adb976e.
2014-08-22 03:42:11 +09:00
Daniel Juyung Seo 4a398c6ee9 genlist: Fixed ELM_OBJECT_SELECT_MODE_NONE codes and added more DISPLAY_ONLY check.
Also made an internal function to check it easily.

@fix
2014-08-22 02:47:24 +09:00
Daniel Juyung Seo 509112325d gengrid, genlist, list, toolbar: Fixed DISPLAY_ONLY select mode for an object.
DISPLAY_ONLY select mode for elm_xxx_item_select_mode_set works fine but
elm_xxx_select_mode_set was broken.

@fix
2014-08-22 01:12:38 +09:00
Jae Yong Hwang 9a13ed55fc genlist: Fixed item select logic when item select mode is ALWAYS.
Summary:
ELM_OBJECT_SELECT_MODE_ALWAYS mode for elm_genlist_item_select_mode
was broken. In the item select routine, item mode(it->mode) was not
checked. So, I added the check routine there.

@fix

Test Plan: I revised the elementary_test code and tested with that.

Reviewers: raster, seoz

Reviewed By: seoz

Subscribers: SanghyeonLee, bluezery

Differential Revision: https://phab.enlightenment.org/D1347
2014-08-21 22:54:22 +09:00
Davide Andreoli 4052f7521e Genlist: do not segv if the user clear the list on item double-click
@fix
moved the user callbacks call at the end of the function, so the user
is able to modify the list without making the code below the call to
fail miserably.

Also improved the Genlist Del test to also include this case.
2014-08-09 17:53:46 +02:00
Chinmaya 7dbc9f48b6 Genlist: Fixed indentation.
Summary: Fixed indentation.

Test Plan: -NA-

Reviewers: seoz, raster

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1269
2014-08-06 13:58:52 +09:00
Anand c464abf99b genlist: removed unnecessary EINA_UNUSED macro
Reviewers: singh.amitesh, nirajkr, seoz

Reviewed By: seoz

Subscribers: sachin.dev

Differential Revision: https://phab.enlightenment.org/D1270
2014-08-06 13:56:07 +09:00
Davide Andreoli 139a1ddb08 Genlist: fix search_by_text_item_get() text_get call
The text_get function was called with the wrong params, now its usage is consistent with the rest of the code.
2014-08-01 16:29:16 +02:00
Lukasz Stanislawski 09b9ef0bc0 atspi: expose more actions through atspi bus.
Summary:
Main purpose of exposing widget actions and keyboard shortcuts
is to allow accessibility clients to implement alternative methods
of GUI navigation.

Reviewers: z.kosinski

Reviewed By: z.kosinski

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1227
2014-07-25 11:58:16 +02:00
Carsten Haitzler e741a19b21 fix genlist/grid search item patch to be simpler and just better
better - why?

1. no reliance on fnmatrch headers - have special enums for this so
fnmatch is an internal detail (casefole may not exist)
2. don't leak strduped strings - free them when done
3. have the same code for genlist and grid (dup for now until an
interface makes it the same search interface)
4. improve docs
5. get right @since version
6. use label get func in item class - providing a func won't work when
multiple items of multiple classes exist in the list
2014-07-24 12:41:33 +09:00
Anand 8b6ac56dc3 genlist: Focus highlight when loop is enable
Summary:
This patch is dependent on D1193 and D1136.
It will be pushed after D1193 and D1136 patch.

Reviewers: singh.amitesh

Differential Revision: https://phab.enlightenment.org/D1168

Conflicts:
	src/lib/elm_genlist.c
2014-07-22 15:57:32 +09:00
Hosang Kim 105ee3660d genlist : Add item looping on flag.
Summary: When item looping feature is on and press up or down key, screen seems to be frozen.

Test Plan: elementary_test -to "genlist focus" -> click item looing enable -> move list up and down

Reviewers: anand.km, seoz, woohyun

Subscribers: singh.amitesh

Differential Revision: https://phab.enlightenment.org/D1193
2014-07-22 15:11:18 +09:00
Anil Kumar Nahak 76e3372531 Focus: first item should be focused when there is no focused/selected item
Summary: First item of widget should be focused when focus comes to the widget for first time.

Test Plan:
elementary_test -to "Genlist Focus"
elementary_test -to "Gengrid Focus"
elementary_test -to "List Focus"
elementary_test -to "toolbar Focus"

Reviewers: seoz

Differential Revision: https://phab.enlightenment.org/D1135
2014-07-21 18:55:55 +09:00
ChunEon Park 0f6bb7fac2 genlist - fix a crash.
It allows NULL focused item.
let it null check.
2014-07-15 12:31:07 +09:00
Shobhit f4fea0abca genlist: Removed unnecessary calculation.
Summary: Removed unnecessary calculation from _elm_genlist_elm_widget_focus_highlight_geometry_get()

Test Plan: elementary_test -to "genlist focus"

Reviewers: seoz, Hermet

Reviewed By: Hermet

Subscribers: sachin.dev

Differential Revision: https://phab.enlightenment.org/D1145
2014-07-15 12:15:53 +09:00
wonguk.jeong de7dc33904 genlist: remove annoying error message
Summary:
content couldn't be always a elm widget.
After checking whether it's elm widget or not, use widget API

Test Plan:
terminology -> options -> font -> select font and check below error message

ERR<25935>:eo lib/eo/eo.c:603 _eo_call_resolve() in elm_widget.eo.c:8: you called func 'elm_obj_widget_focus_get' (213) which is unknown in class 'Edje_Object'.

Reviewers: raster, cedric, seoz, Hermet

Reviewed By: Hermet

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1186
2014-07-15 12:07:10 +09:00
Shobhit 32c3bf41b5 genlist: Removed unnecessary condition check.
Summary:
Removed condition check from _elm_genlist_elm_widget_item_loop_enabled_set()

Reviewers: seoz

CC: sachin.dev

Differential Revision: https://phab.enlightenment.org/D1144
2014-07-10 00:39:52 +09:00
Amitesh Singh 24ce4835c1 list/genlist/gengrid/toolbar: removed unused smart data member prev_focused_item.
Reviewers: raster, seoz

CC: seoz

Differential Revision: https://phab.enlightenment.org/D1119
2014-07-07 12:20:54 +09:00