Commit Graph

9862 Commits

Author SHA1 Message Date
Daniel Juyung Seo 42483955ca list: Refactor direction key event handling routine in list.
- Added internal function _elm_list_elm_widget_event_direction.
- Simplified cascaded if statements.
- Note: focus_on_selection feature is still broken.
2014-04-07 04:12:41 +09:00
Daniel Juyung Seo a80edec90c list: Fixed _elm_list_item_content_focus_set misbehavior.
- Moved a check for direction at the start of the function based on the
horizontal mode configuration.
- Removed unnecessary focus set to edje object. In this case, that item
will get the focus automatically by elm widget item focus
infrastructure.

But this focus_on_selection feature is still broken. I need to fix them
more.
2014-04-07 03:10:21 +09:00
Daniel Juyung Seo 9607969c6a test_list: Removed wrong box packing from list focus example. 2014-04-07 00:58:22 +09:00
Amitesh Singh 68b3bc3583 focus: Renamed the config APIs _item_focus_on_selection_get/set to _item_select_on_focus_disabled_set/get()
Summary: - List: On Enter/Space/KP_Enter key press, focused item gets selected.

Test Plan: elementary_test->List Focus

Reviewers: seoz, raster

Reviewed By: seoz

CC: seoz

Differential Revision: https://phab.enlightenment.org/D704
2014-04-06 00:10:55 +09:00
Daniel Juyung Seo 04205fd513 gengrid: Fixed wrong formatting. 2014-04-05 01:18:26 +09:00
wonguk.jeong c2e8ef52ad plug: fix SEGV of elementary_test during reconnecting
Summary:
problem:
1. open window socket
2. open window plug
3. close window socket
4. open window socket
5. SEGV

there was invalid timer deletion due to dangling pointer.

@fix

Test Plan: elementary_test -> open window socket -> open window plug -> close window socket -> open window socket ->SEGV

Reviewers: raster, seoz

Reviewed By: raster

CC: seoz

Differential Revision: https://phab.enlightenment.org/D699
2014-04-04 12:18:48 +09:00
Amitesh Singh 1479664ec0 list/genlist/gengrid/toolbar: Fix - _nearest_visible_item_get() should always return an item.
Test Plan:
Bug:
- elementary_test->genlist/list/toolbar/gengrid Focus
- Resize the window to a state when no item is fully visible. only partially visible.
- Move Focus from outer widgets (Up/Down/Left/right buttons) to list/genlist/gengrid/toolbar.
- Focus goes away (size - 0). Reason: _nearest_visible_item_get returns NULL.

@fix

Reviewers: seoz, raster, woohyun

Reviewed By: raster

CC: seoz, nirajkr, anand.km

Differential Revision: https://phab.enlightenment.org/D696
2014-04-04 12:04:04 +09:00
wonguk.jeong 173df1d361 map: remove memory leak
Summary:
1. Name of sources from external module was not free'd. (there was type mismatch between external module and internal impl.)
2. after eina_module_list_free(), eina_array_free() was not invoked.
3. alloc'd but not free'd

@fix

Test Plan: valgrind

Reviewers: raster, cedric, seoz, bluezery, woohyun

CC: seoz

Differential Revision: https://phab.enlightenment.org/D661
2014-04-04 11:47:40 +09:00
Tom Hacohen 84fab21e21 Interface scrollable: Added missing dep. 2014-04-03 17:58:59 +01:00
Tom Hacohen b11b56ea43 Elm interface scrollable: Put .eo.h include after needed deps. 2014-04-03 15:53:58 +01:00
Tom Hacohen 2357e563c1 Elm widget: Put typedef needed by include before the include. 2014-04-03 13:34:31 +01:00
Amitesh Singh 13d69bcd9d Gengrid: fix segv in _elm_gengrid_item_edge_check.
Reviewers: raster, seoz

Reviewed By: raster

CC: seoz

Differential Revision: https://phab.enlightenment.org/D695
2014-04-03 21:06:36 +09:00
Carsten Haitzler dea994be94 fix eina log err for mirro set
this fixes T1104
2014-04-03 19:34:43 +09:00
nirajkr 5fca06cdb7 gengrid: Fixed the focus animation in horizontal mode
Summary:
Fixed the focus animation in horizontal mode. Earlier focus was moving
         out of the view port in horizontal mode
         @fix

Reviewers: seoz, raster

CC: seoz, singh.amitesh

Differential Revision: https://phab.enlightenment.org/D693
2014-04-03 19:19:45 +09:00
Rajesh PS 69bdc47081 elm_map: Fixed a leak when ecore_file_download_full fails
Summary:
The url variable used for ecore_file_download_full api was not being freed when the api failed

@fix

Test Plan: elementary_test->map

Reviewers: seoz, daniel, raster

Reviewed By: raster

CC: govi

Differential Revision: https://phab.enlightenment.org/D692
2014-04-03 19:16:14 +09:00
Amitesh Singh 73b16ef210 focus: Added optional focus feature - item focus on selection.
Summary:
Currenly focus and selection happens together. This patch makes item focus
on selection optional by configuration and API.

- configuration: "item_focus_on_selection".
- API: elm_config_item_focus_on_selection_get/set.
- Implemented item_focus_on_selection feature in elm list.
@feature

Test Plan: elementary_test->List focus

Reviewers: raster, seoz, woohyun

CC: seoz

Differential Revision: https://phab.enlightenment.org/D676
2014-04-03 19:11:57 +09:00
nirajkr e839950126 focus: Avoid un-necessary focus animation call
Summary: Avoid un-necessary focus animation call if the source and target have same co-ordinate

Reviewers: seoz, woohyun, raster

CC: seoz, singh.amitesh

Differential Revision: https://phab.enlightenment.org/D679
2014-04-03 19:10:53 +09:00
Thiep Ha 58b6b6596a [Elm_Dnd] Fix segmentation fault when deleting object with same registered drop callbacks
Summary:
In case we register two or more of same drop callbacks for one object, when that object is deleted, segmentation fault happens.

Test case: Register only same callbacks more than two times for one object. Delete that object (manual or auto). Segmentation fault happens.
Reason: When object is deleted, we remove all drop callbacks registered with the object. The _all_drops_targets_cbs_del and elm_drop_target_del are used to do that and they operates on the same cbs_list. If elm_drop_target_del remove the current and the next callbacks in cbs_list, the segmentation fault will happen at _all_drops_targets_cbs_del.
Fix: Check and use updated cbs_list.

@fix

Reviewers: JackDanielZ, raster, seoz

Reviewed By: JackDanielZ

CC: woohyun

Differential Revision: https://phab.enlightenment.org/D691
2014-04-03 19:08:07 +09:00
Amitesh Singh 81ff09a877 test_gengrid: Added more test cases to reveal bugs in horizontal mode.
Summary:
- Added focus highlight, focus animation & horizontal mode option to enable/disable.
- Removed unnecessary frame and label from test code.

Test Plan: elementary_test -to "Gengrid Focus"

Reviewers: seoz, raster

CC: seoz, nirajkr

Differential Revision: https://phab.enlightenment.org/D683
2014-04-03 18:39:30 +09:00
Amitesh Singh d28e8010b7 gengrid: Added feature to move focus out of gengrid if focus is on edge items.
Summary:
Earlier, Focus can only move out of gengrid from first or last item.
Now, Focus can move out of gengrid if focus is on edge items.
@feature

Test Plan: elementary_test->Gengrid Focus

Reviewers: raster, seoz

CC: seoz, nirajkr

Differential Revision: https://phab.enlightenment.org/D682
2014-04-03 18:31:47 +09:00
Daniel Zaoui 8c86eecb4b Fix Uninitialized scalar variable reported by Coverity.
Fixes Coverity CID1195446
2014-04-03 12:08:38 +03:00
Carsten Haitzler cac144658d fix elm notify (and popup) after win position fixes 2014-04-03 17:31:23 +09:00
Daniel Zaoui f5f68dd9de Eolian: use legacy_prefix: null for interfaces.
legacy set to null was used for every function to not generate a legacy
API. legacy_prefix set to null indicates no legacy has to be generated
for all the class.
2014-04-03 10:19:03 +03:00
Daniel Zaoui 66a30681e7 Eolian: Integration of Web2 2014-04-03 09:55:49 +03:00
Daniel Zaoui 8169751469 Eolian: Integration of Win Access Object 2014-04-03 09:22:21 +03:00
Daniel Zaoui 1c598fbaaa Eolian: Integration of App Access Object 2014-04-03 09:22:21 +03:00
Mike Blumenkrantz 23313099c1 e border frames now correctly identify modal dialogs as dialogs 2014-04-02 10:31:25 -04:00
Carsten Haitzler ca266bdbd5 add hand1 cursor theme element and ensure elm cursor code actually works
this adds a hand1 sample cursor theme/image so the theme can find
cursors, (more should be added later), and now actually makes the elm
cursor handling properly set the cursor and update the hotx/y as
needed by tracking the hot swallow object. this relies on a fix in efl
as well.
2014-04-02 20:48:32 +09:00
Carsten Haitzler db64dffca4 oops - printfs snuck in. remove 2014-04-02 18:09:55 +09:00
Carsten Haitzler 031f427c44 fix x cursors broken by recent eo based fixes... to eolian changes 2014-04-02 18:06:37 +09:00
Cedric BAIL 588c9edd5c autotools: fix build when Ecore_Drm is enable. 2014-04-02 17:00:16 +09:00
Jaeun Choi 837fc28ed4 calendar, colorselector, diskselector: fix build warnings
Summary: This patch fixed build warnings in calendar, colorselector and diskselector.

Test Plan: make

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D685
2014-04-01 22:22:02 +09:00
Daniel Zaoui fd0d159fef Eolian: Integration of Gengrid and Gengrid Pan 2014-04-01 14:52:14 +03:00
Amitesh Singh d593ad85e2 toolbar: Added focus movement on widget items by mouse in.
Summary:
- Added a test case in "Toolbar Focus".
@feature

Test Plan: elementary_test->Toolbar Focus

Reviewers: raster, cedric, woohyun

Reviewed By: raster

CC: seoz

Differential Revision: https://phab.enlightenment.org/D665
2014-04-01 20:26:33 +09:00
Amitesh Singh a090a1cc1f gengrid: Added focus movement on widget items by mouse in.
Summary:
- Added a test case in "Gengrid Focus".
@feature

Test Plan: elementary_test->Gengrid Focus

Reviewers: raster, cedric, woohyun

Reviewed By: raster

CC: seoz

Differential Revision: https://phab.enlightenment.org/D664
2014-04-01 20:26:13 +09:00
Amitesh Singh daee26de35 genlist: Added focus movement on widget items by mouse in.
Summary: @feature

Test Plan: elementary_test->Genlist Focus

Reviewers: raster, cedric, woohyun

Reviewed By: raster

CC: seoz

Differential Revision: https://phab.enlightenment.org/D663
2014-04-01 20:25:03 +09:00
Amitesh Singh e8ce63b33d list: Added focus movement on widget items by mouse in.
Summary: @feature

Test Plan: elementary_test->List Focus

Reviewers: raster, cedric, woohyun

Reviewed By: raster

CC: seoz

Differential Revision: https://phab.enlightenment.org/D662
2014-04-01 20:23:24 +09:00
Daniel Zaoui 2bc08afc83 Eolian: Integration of Genlist and Genlist Pan 2014-04-01 13:55:42 +03:00
wonguk.jeong 26ebe359c7 cnp: check object type before getting window id
Summary:
problem:
1) elementary_test -> entry -> close entry window
2) type mismatch warning is shown on console as below

ERR<19427>:eo lib/eo/eo.c:342 _eo_dov_internal() in elm_win.eo.c:2067: Can't execute function Elm_Win:ELM_OBJ_WIN_SUB_ID_XWINDOW_GET (op 0x167) for class 'Elm_Entry'. Aborting.

solution:
check top object type before invoke elm_win_xwindow_get()/elm_wl_window_get().
if it's not a window, find window id by using ecore_evas APIs.

Fixes T1141

Test Plan: elementary_test -> entry -> close entry window -> check console

Reviewers: raster, seoz, uartie

Reviewed By: raster

CC: seoz

Maniphest Tasks: T1141

Differential Revision: https://phab.enlightenment.org/D684
2014-04-01 19:54:09 +09:00
Carsten Haitzler 3f1e7f6851 menu - fix bug that happens as a result of fixing window obj position
similar fix to 59cfed147b50d5b5c644ec75d2c6eb34e8b84294
2014-04-01 19:52:18 +09:00
Tom Hacohen 6f692db203 Theme: Fixed spelling mistake in a comment.
Reported by OnlyHuman.

Fixes T1142.
2014-04-01 10:43:18 +01:00
Carsten Haitzler 579331403e hover - fix bug that happens as a result of fixing window obj position
to fix a window position bug, window had to track actual geometry and
not alwasy be at 0,0. but this means hover, that is getting geometry
of the win object sometimes to figure out hover coverage area, and
thus now x, y are not 0, 0 anymore...
2014-04-01 17:29:36 +09:00
Chris Michael 204481045f Merge branch 'devs/devilhorns/drm' 2014-04-01 07:12:31 +01:00
Chris Michael b603ca9f87 elementary: Add support to elementary for creating applications which
run in drm.

@feature: This adds an ELM_ENGINE=drm option so that elementary apps
can be run 'standalone' inside drm without any window managers,
compositors, etc

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-04-01 07:10:51 +01:00
Chris Michael 163796f26e elementary: Remove FIXME comment as it is already done above.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-04-01 07:10:51 +01:00
Chris Michael 2d1276bd32 elementary: Add drm to list of available engine names, and add env
check for drm engine.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-04-01 07:10:51 +01:00
Chris Michael 2338b5ad74 elementary: Add ecore-drm header and ELM_DRM engine define
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-04-01 07:10:51 +01:00
Jaeun Choi 121f5446c7 check, colorselector, calendar, diskselector: apply key binding
Summary:
apply key binding to 4 widgets
this revision is only for reviewing
I'll send 4 seperate patches after review is done.

Test Plan: None

Reviewers: Hermet, seoz, raster

Differential Revision: https://phab.enlightenment.org/D678
2014-04-01 11:10:25 +09:00
Carsten Haitzler d85c9ac689 elm - cursor - don't get window id if event area obj is not a window 2014-04-01 10:06:47 +09:00
Thiep Ha e416ea19a5 [Elm_Dnd] Correct drag position when rotation
Summary:
When window is rotated, the drag position is not updated.
It makes dnd cannot find out correct dropable objects.
This patch updates the drag position when window is rotated, so that dnd can find correct dropable objects.
@fix

P/S: This patch is originated from JackDanielZ (Daniel Zaoui). I update it to conform with lastest code.

Reviewers: JackDanielZ, raster

Reviewed By: JackDanielZ

CC: woohyun

Differential Revision: https://phab.enlightenment.org/D680
2014-04-01 09:39:16 +09:00