Commit Graph

389 Commits

Author SHA1 Message Date
Tom Hacohen e6031a23e8 Revert "Automatic migration to the new eo_add syntax."
This reverts commit d1a1819813d74361b25fd5c1123f7ac76be9b84f.
2016-03-11 12:36:19 +00:00
Tom Hacohen c788486398 Automatic migration to the new eo_add syntax. 2016-03-09 16:09:17 +00:00
Hermet Park 4fb304c08c Revert "list: set internal box as homogeneous if no separator items are present"
This reverts commit 9f4c43c20dfa36e7a8be18278acf4336c13574d7.

I'm sorry but this causes a side effect(list sizing issue) at enventor.
And I couldn't find any mis-usage in enventor side.

We can't not accept this patch unless we figure the exact reason out.
2016-03-08 21:00:19 +09:00
Tom Hacohen 75569ec561 Fix warnings following migration to Eo4.
Mostly unused variables.
2016-03-03 10:08:27 +00:00
Tom Hacohen d16aa5956b Automatic migration to Eo4.
I just ran my script (email to follow) to migrate all of the EFL
automatically. This commit is *only* the automatic conversion, so it can
be easily reverted and re-run.
2016-03-03 10:08:27 +00:00
Mike Blumenkrantz b22392d937 list: set update hints on item edje objects
without size hints on the edje object, a list item will never be sized
accurately, meaning that the size hints set on subobjects (icon, end) are
ignored in nearly all cases, and any previous sizing which was accurate was,
in fact, merely coincidentally accurate

@fix
2016-02-26 12:48:33 -05:00
Mike Blumenkrantz e348a26359 list: set internal box as homogeneous if no separator items are present
this is a significant performance optimization since all non-separator
items should always be sized identically
2016-02-26 12:43:38 -05:00
Mike Blumenkrantz b6827260ce list: do not change scr_min flags when setting an unenforced list mode
only LIMIT and EXPAND modes prohibit manually setting these flags. changing
them in any other scenario can result in overriding user-set flags

@fix
2016-02-26 11:56:21 -05:00
Mike Blumenkrantz b0695e712c list: always apply new size hints for subobjects
if a content's size hints change, reapplying the list's size hints
to override existing hints is required to prevent some list items from
having a bad layout

@fix
2016-02-25 18:03:18 -05:00
Mike Blumenkrantz b7e27caae8 list: do not constantly reset scr_min flags
these get set during mode_set and when directly changing the flags.
at no other time should they be changed

@fix
2016-02-25 18:03:18 -05:00
Marcel Hollerbach 860baa4657 Elm config: use a name instead of elm_widget_type_get
Summary:
The use of elm_widget_type_get here is pretty harmfull, for the usecase
of inheriting a widget elm_widget_type_get is something else than
before. But the key binding should still work.

@fix T2891

Reviewers: tasn

Reviewed By: tasn

Maniphest Tasks: T2891

Differential Revision: https://phab.enlightenment.org/D3470
2015-12-21 12:57:15 +00:00
Lukasz Stanislawski 7b690b61d1 atspi: return previous name in overloaded getters
Some overloaded accessible name getters did not respect
values set by developer.

@fix
2015-12-17 11:38:43 +01:00
Lukasz Stanislawski d1baa35b1a atspi: always use widget's subobj as accessible children
Patch fixes issue when widgets could be orphaned in accessibility tree
due to overloaded accessible_children_get methods in widgets returning
Elm_Object_Items. Widgets like genlist, gengrid, list and toolbar returned
only items as its accessibility children so if some widget was attached
directly to those widgets (like ctxpopup/popup) it become orphaned
in accessibility tree.
2015-12-02 11:43:58 +01:00
Lukasz Stanislawski 93d9489819 atspi: add missing SELECTED changed signals
@fix
2015-11-05 10:56:44 +01:00
Lukasz Stanislawski 12feff963e atspi: clean-up children-changed event emission.
Patch fixes bugs caused by difference between elm widget
and atspi objects hierarchy.
2015-10-19 17:26:13 +02:00
Lukasz Stanislawski 6b49c30cd0 list: set atspi parent despite atspi mode.
Path fixes failing test case when atspi mode was off.
2015-10-06 11:27:15 +02:00
Lukasz Stanislawski 61845ef600 atspi: properly set parent.
Set proper atspi parents in cases when AT-SPI object tree structure
should be different then elementary tree (mostly in cases of elm_widget_items)

Add regression tests for those cases.
2015-10-02 16:49:15 +02:00
Jaehwan Kim 0dedfc9248 focus: add the APIs to set the focus next about item.
Add elm_object_focus_next_item_set/get,
elm_object_item_focus_next_object_set/get and
elm_object_item_focus_next_item_set/get.

If the item and object is set at the same time,
the item is preference to object when the focus moves.

This feature is implemented about gengrid.
It will be implemented about ohter widgets.

@feature
2015-09-15 19:53:23 +09:00
Carsten Haitzler be2ae5f410 elm autofocus show - fix cases where focus is inside containers
i found that the focus doesnt auto-show when focusing things inside
scrollers and so on. i had to add more points to trigger auto show.
this fixes that

@fix
2015-09-10 18:29:24 +09:00
Amitesh Singh 192a9f874c list: fix crash while setting nearest item in viewport
This is an example of classic code copy and paste mistake.
Probably inspired from similar code in genlist/gengrid.
We were actually deleting the other items (except selected one) in
viewport in _elm_list_nearest_visible_item_get() which results into crash
while deleting the list object.

@fix

Resolves: T2662
2015-08-15 22:55:46 +05:30
Youngbok Shin 3fb443df95 focus/list/genlist/gengrid: fix focus highlight issues on list widgets when auto focus enable is on.
Summary:
elm_list, elm_genlist widgets are handle focus highlight
relying on only elm_widget_focus_highlight_enabled_get() API.
The API is not considered about auto focus highlight feature.
So, we need to check a flag for auto focus from _elm_config.
It resolves T2555.
@fix

Test Plan: elementary_test -> List Focus or Genlist Focus

Reviewers: raster, cedric, SanghyeonLee, singh.amitesh

Reviewed By: SanghyeonLee, singh.amitesh

Maniphest Tasks: T2555

Differential Revision: https://phab.enlightenment.org/D2914
2015-08-05 12:27:11 +05:30
Avi Levin d0c9703bd7 elm_list, elm_win: porting evas smart callbacks to eo 2015-07-05 13:05:38 +03:00
Hosang Kim da81eff897 elm_list & elm_genlist & elm_gengrid: fix the behavior of using the mouse.
Summary:
Elementary widgets have different behavior of using the mouse, they need to be unified.
- swipe : without checking on hold, just checking drag state.
- longpress : after longpress, _item_unhighlight(), _item_unselect() are called.
- select : when the mouse pointer leaves item area, _item_unhighlight(), _item_unselect() are called.

First, apply this commit https://phab.enlightenment.org/D2550

Test Plan: elementary_test -> list

Reviewers: seoz, Hermet, CHAN, woohyun, kimcinoo, jaehwan, SanghyeonLee, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-25 17:24:08 +02:00
Amitesh Singh f10b4eb8d0 genlist/list/win: Revert focus highlight animation when looping is enable
Summary:
  -
  Revert "focus: Added internal widget APIs of focus highlight object of elm window."

    This reverts commit 3f98d71830163a154762f2d16301d720c781b7c5.

  - Revert "List: Focus highlight when loop is enable"
This reverts commit 57ad32a900e71f83441bf7246671b8f16a8ec909.

  - Revert "genlist: Focus highlight when loop is enable"

    This reverts commit 91282a22cba66ee5e7799018d3abe8957fb1b1fa.

Reviewers: seoz, raster, jpeg, SanghyeonLee

Subscribers: anand.km, seoz

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-25 17:24:08 +02:00
Daniel Kolesa 3904cc7175 elm: constify Eolian methods correctly because of recent Eolian changes 2015-06-25 12:21:00 +01:00
ChunEon Park f641925d6e list: --printf 2015-06-22 21:41:38 +09:00
Lukasz Stanislawski b2ec75db6d list: add atspi SELECTABLE state to elm_list items. 2015-06-11 11:00:27 +02:00
Carsten Haitzler e99831eb2f fix list item mode change on elm list
@fix
2015-06-09 16:43:38 +09:00
Carsten Haitzler 5e79a4e211 elm list - theme - make compress moder work again
someone.. somewhere along the way.. likely a long time ago.. broke
compress mode. likely the addition of the ellipsis value as an
ellipsis position or something related to that broke compatibility,
as this used to work. be that as it may... finding out just where is
virtually impossible, so fix it the simpler way - add elipsis values
2015-06-09 16:25:24 +09:00
Tom Hacohen 27b72840c8 Adjust usage of eo_constructor() according to recent changes. 2015-05-20 13:03:28 +01:00
Jaeun Choi 50127bc4df elm: add safety check
when insert a new item before/after an item, the relative item should not be NULL.
this patch fixes naviframe, gengrid, genlist, list, and toolbar.

@fix
2015-04-21 14:30:41 +09:00
Lukasz Stanislawski 18bd62002b atspi: remove elm_interface_atspi_widget implementation.
elm_interface_atspi_widget object was previously used to implement
atspi features on top of elm_widget object. However such inheritance
obfuscates a design, so atspi features implementation was moved directly
into elm_widget code.
2015-04-06 10:24:58 +02:00
Lukasz Stanislawski 377a7d220e atspi: implement selection interface for elm_list 2015-04-06 10:24:58 +02:00
Lukasz Stanislawski 64374b68e8 atspi: improve atspi support for elm_list
Now elm_list_items are normal atspi objects and provide information
about it label and 'start' and 'end' internal objects.
2015-04-06 10:24:57 +02:00
Jaeun Choi 8b85672bdd gengrid/genlist/list: focus first item if first_item_focus_on_first_focus_in is on
whether focus highlight is enabled or not

@fix
2015-02-27 18:17:37 +09:00
Tom Hacohen e2dcfa64ae Fix code to conform to recent Eo changes. 2015-02-23 17:16:21 +00:00
Daniel Juyung Seo 263801f018 elm: Remove redundant finger size adjustment.
This is a successor of a54da8aab.
2015-02-23 08:43:47 +09:00
Carsten Haitzler 5b69285f8a elm - list - fix invalid item data scope get
@fix
2015-02-09 20:25:44 +09:00
Carsten Haitzler d9e54a4c96 elm list - fix access of deleted items in list when recursing
@fix
2015-02-09 18:20:45 +09:00
Amitesh Singh ab50a85937 list/genlist/gengrid/toolbar: set focus/unfocus on item when focus is actually set on widget.
Summary: @Fix

Reviewers: raster, Hermet, seoz

Reviewed By: seoz

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1918
2015-02-03 15:48:36 +09:00
Davide Andreoli 62fe9c4964 List: new signal: clicked,right with simple test
@feature
2014-12-29 12:18:04 +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
kabeer khan 8d4437b1f9 elm_list : Resolved TODO in elm_list.c and declared corresponding macros in elm_macros.h
Summary:
As mentioned in TODO replaced expressions in if statement with macros in elm_macros.

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: seoz, raster

Reviewed By: raster

Subscribers: raster

Differential Revision: https://phab.enlightenment.org/D1424
2014-12-16 20:01:04 +09:00
Anand efe737b3b8 List: Focus highlight when loop is enable
Summary:
Implemented focus highlight feature in list for vertical and horizontal looping
@feature

Test Plan: elementary_test->"List Focus" & "List Focus Horizontal"

Reviewers: singh.amitesh, nirajkr, seoz, eagleeye, raster

Subscribers: sachin.dev

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

Conflicts:
	src/lib/elm_list.c
2014-12-15 17:24:36 +09:00
Daniel Juyung Seo cead9c0ba2 index, list, menu: Optimize eo item usage.
Remove unnecessary pointer reference.
2014-11-25 21:55:39 +09:00
Daniel Juyung Seo 9b9a0267b7 list: Optimize eo item usage.
Remove unnecessary pointer reference.
2014-11-24 17:40:28 +09:00
Daniel Juyung Seo d31b51eccc list: Fix wrong eo item porting.
Fix egitu crash issue :)
Special thanks to davemds for letting me know python gdb
usage.
2014-11-24 17:40:28 +09:00
Daniel Zaoui 7e396432ef Object Items: replace most of del_pre functions with destructor.
This change is not simple because Elementary has not been built from the
first day to work with Eo. Code had to be adapted to fit the new design.

The del_pre that have not been replaced yet can return FALSE and
prevent deletion. For these classes, code modification has to be deeper
and will be done later.
2014-11-12 12:03:58 +02: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