Commit Graph

7620 Commits

Author SHA1 Message Date
Daniel Juyung Seo 4f8614e866 Revert "remove all scrolling changes for focused items."
This reverts commit 377179bdaf84aa1a86621cdfa64ed43613ab9d45.

The main claim of https://phab.enlightenment.org/T1205 was fixed in
the previous commit 30cada369. This code will be modifed again in the
next commit due to the api change during development life cycle.

Note: do not blindly revert this commit if you have any problem with
widget item focus. This commit is not related to any fundamental cause
of the issues. If you have a problem, please contact me first.

seojuyung2@gmail.com or SeoZ on IRC.

Thanks.
2014-05-11 22:42:15 +09:00
Daniel Juyung Seo dfead75366 gengrid/genlist/list/toolbar: Do not set the focus to the item on widget's first focus.
This was introduced during 1.10 development phase but this changed the
default focus behavior and got a lot of complaints. (especially from
discomfitor)

So I would like to comment this out now and make it optional on 1.11
by keeping the default behavior.
2014-05-11 21:21:51 +09:00
Daniel Juyung Seo 5407141ac6 list: added comments about an unused function.
Fixing this issue is not trivial and will bring another issues like crashing.
So it is better to fix this in a development phase by refactoring list.

To fix this issue, the following are needed:
1. it->walking concept should be adopted instead of using just sd->walking.
   sd->walking was introduced in beb418d6
2. elm_widget_item_del() should be called instead of the combination of
   _elm_list_item_free() + elm_widget_item_free()
   This was introduced in f343011d
2014-05-10 23:44:28 +09:00
Daniel Juyung Seo 254798b47e list: initialize some internal variables on item free not item del pre.
This fixes variable initialize problems related to focus. This can be
reproduced when you enable focus highlight/animation and reuse
elm_list by clearing it.

This problem occurred because list item del pre is never been called.
This bug will be addressed in a next commit.
2014-05-10 23:44:28 +09:00
Daniel Juyung Seo 8ffbf246f4 elm: fixed trivial formattings.
Just found them while reading codes.
2014-05-10 23:44:27 +09:00
Daniel Juyung Seo af92b3e6f9 elm: call elm_widget_item_del instead of elm_object_item_del inside elementary.
This reduces only one more function call but this makes the elm code
more consistent between widgets.
2014-05-10 23:44:27 +09:00
Daniel Juyung Seo 44a67054de elm: fixed wrong internal variable name.
Unified the local variable name to ret if the ret is a return value of
another content_unset calls.
- Evas_Object *int_ret --> Evas_Object *ret
- Evas_Object *int_content --> Evas_Object *ret
- Evas_Object *content --> Evas_Object *ret
2014-05-10 14:13:57 +09:00
Daniel Juyung Seo 45f7f881e8 gengrid: removed build warning. 2014-05-10 01:12:20 +09:00
Anil Kumar Nahak 9d1813f7ee genlist/gengrid: Use pan object geometry for focus highlight calculation
Summary: Genlist/gengrid object geometry was used before this patch but using the pan object geometry is more correct. This can be reproduced when the size of "elm.swallow.content" part is smaller then the size of scroller object, focus animtaion on items is jerky.

Reviewers: raster, seoz, singh.amitesh

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D818
2014-05-10 01:07:58 +09:00
Ryuan Choi 40a3850ee2 ctxpopup: Fixes that remains diskselector when dismissed ctxpopup of elm_datetime.
elm_object_content_unset should return child element which is unset.

Tests: elementary_test -to datetime
2014-05-09 23:02:56 +09:00
ChunEon Park e312e34652 widget - use eo call. 2014-05-09 15:24:18 +09:00
ChunEon Park 1a99f9274c widgets - propagate current parent orientation to sub object.
If object is unset then set to parent again, the current orientation signals
should be emitted so as to be latest state.

@fix
2014-05-09 15:18:49 +09:00
Patryk Kaczmarek 707599d4cc access: fix typo _elm_access_object_unhilight -> _elm_access_object_unhighlight
Summary: Name of that function is not proper in my opinion. Please consider that revision.

Reviewers: raster, seoz, bluezery, stanluk, jaehwan, kimcinoo

Reviewed By: seoz

Differential Revision: https://phab.enlightenment.org/D827
2014-05-08 11:20:18 +09:00
Daniel Zaoui 16199ba990 Web: bring legacy from the dead.
ABI check found that during Eolian integration of Elm Web, I forgot some
deprecated function.
2014-05-07 13:46:18 +03:00
zmike fe4fae4954 Revert "Revert "focus: Removed unused parameter from an internal focus function.""
This reverts commit b8549f3e83a8592145a50085182583adead2c74e.

this build system is bad and whoever did the eo integration should not feel pleased with themselves.
2014-05-07 01:13:19 -04:00
zmike 54eabd94e2 Revert "focus: Removed unused parameter from an internal focus function."
This reverts commit 5832b692aa5f68a2924bd7886390d489eb13aefb.

broke build
2014-05-07 01:08:04 -04:00
zmike be636e58be remove all scrolling changes for focused items.
this.is.BROOOOOOOOOOOOOOOKEEEEEEEEEEEEEEEEEEENNNNNNNNNNNNNNNNNNNNNNNNNNNNN.

SERIOUSLY.

you cannot go scrolling all over the place in every widget that has a scroller just because the widget gets focus. what user wants that? no user anywhere, under any circumstances, ever, in all of history.

if you dare to put this back in, I will continue to remove it for the rest of eternity until it never, ever scrolls in any unwanted case. the focused item doesn't have to always be in the viewport, and should never be moved into the viewport [[[[[[[ except to maintain an already-existing position inside the viewport ]]]]]]]

too much of my time wasted on this stupid "feature" which should have been MUCH more thoroughly tested and reviewed before it was merged.

T1205 STILL NOT FIXED
2014-05-07 01:06:30 -04:00
Daniel Juyung Seo d0380e3342 focus: Removed unused parameter from an internal focus function.
is_next parameter is not used for
elm_widget_focus_highlight_geometry_get() function.
But this parameter was not cleaned up in the commit 5320cca.
2014-05-07 00:05:07 +09:00
Daniel Juyung Seo fcd1a729ed theme: removed unnecessary null check.
Null check is already done in the previous line so do not check null
again.
2014-05-04 06:18:58 +09:00
Ryuan Choi 1c1cc3edd5 Fix the leak when closed alert/prompt/confirm since 1be3950fd
Spotted by seoz.
2014-05-03 19:36:54 +09:00
Daniel Juyung Seo a44e4e5411 photocam: added @c to EINA_TRUE/FALSE doxygen. 2014-05-03 03:51:44 +09:00
Daniel Juyung Seo 3b20add9a6 focus: Fixed focus_region_show to consider bring_in_enable configuration.
focus_auto_scroll_bring_in_enable feature is new in 1.10, this would
not be backported.
2014-05-01 22:27:05 +09:00
Daniel Juyung Seo fa2a17a1fb config: internal code refactoring for the readability.
Gathers focus related configurations.
2014-05-01 21:34:55 +09:00
Daniel Juyung Seo be30d78165 config: removed unnecessary variable initialize.
It is overwritten in the following line.
2014-05-01 21:31:14 +09:00
Amitesh Singh 24a4e9e67c gengrid: frame variable should be used for position changes.
Summary:
Earlier pos was getting used for the item coordinates. To support other Ecore_Pos_Map variations, frame variable should be used.
@fix

Test Plan:
elementary_test-> "Gengrid Focus". Enable reorder mode and use keys to move
the focused item.

Reviewers: raster, seoz

Reviewed By: seoz

CC: seoz

Differential Revision: https://phab.enlightenment.org/D811
2014-04-30 17:59:40 +09:00
Daniel Zaoui 07c8dd641f Entry: add the activated signal in the events section of entry.eo. 2014-04-29 16:00:51 +03:00
Daniel Zaoui 0491d581c0 Eolian: fix elm_widget.eo
part_text has to be an extra property, not a method.
2014-04-29 08:45:51 +03:00
zmike 5757574678 ctxpopup should not blindly show arrows when they are not wanted by the theme
@fix
2014-04-28 11:01:20 -04:00
Carsten Haitzler e585ffb4d7 elm win - fix ELM_DISPLAY to choose the right software enine 2014-04-28 21:53:52 +09:00
Daniel Zaoui 70684ea730 Eolian: install .eo files 2014-04-27 16:09:01 +03:00
Daniel Juyung Seo 535fe6bd97 gengrid: Added elm_gengrid_wheel_disabled_set/get() APIs.
Summary:
The basic idea is from Abhinandan Aryadipta and I implemented this in
upstream.
Special thanks to JackDanielZ for eolian madness.

@feature

Reviewers: JackDanielZ

Differential Revision: https://phab.enlightenment.org/D803
2014-04-27 13:54:37 +09:00
Daniel Juyung Seo 4df87d5959 gengrid: removed unnecessary return value check.
Just return the return value without checking it.
2014-04-27 13:42:48 +09:00
Amitesh Singh 31fd782ab0 gengrid: Implemented item_select_on_focus feature.
Summary:
This is based on bb1e8afd.
@feature

Test Plan: elementary_test->"Gengrid Focus"

Reviewers: seoz, raster

CC: seoz

Differential Revision: https://phab.enlightenment.org/D702
2014-04-27 13:08:15 +09:00
Daniel Juyung Seo d4aa2ccc08 genlist: refactor the internal code to make it more readable. 2014-04-27 12:55:58 +09:00
Amitesh Singh 8405b15b2b genlist: Implemented item_select_on_focus feature.
Summary: @feature

Test Plan: elementary_test->Genlist Focus

Reviewers: seoz, raster

CC: seoz

Differential Revision: https://phab.enlightenment.org/D705
2014-04-27 12:40:17 +09:00
Daniel Juyung Seo 9652839c96 genlist: renamed internal function according to the key binding adoption. 2014-04-27 11:26:53 +09:00
Amitesh Singh 8e0ffb8332 config: Added two APIs to enable/disable focus auto scroll bring in feature.
Summary:
 Summary:
    - APIs
      - elm_config_focus_auto_scroll_bring_in_enabled_set
      - elm_config_focus_auto_scroll_bring_in_enabled_get
    - list/genlist/toolbar/gengrid: Using this feature for scrolling for focus movement.
    - Added test case in "List Focus", "Genlist Focus", "Toolbar Focus" and "Gengrid Focus"

    @feature

Test Plan: elementary_test->"List Focus", "Genlist Focus", "Toolbar Focus" & "Gengrid Focus".

Reviewers: raster, seoz

CC: seoz

Differential Revision: https://phab.enlightenment.org/D799
2014-04-27 04:15:26 +09:00
Amitesh Singh 112d481dca gengrid: ignore key events if item reorder is going on.
Summary: This was missed in 43eb52e159.

Test Plan:
elementary_test->"Gengrid Focus" and enable "reorder mode" by clicking "redorder mode enable" checkbox.
Move the items by direction keys.

Reviewers: raster, seoz

Reviewed By: seoz

CC: seoz

Differential Revision: https://phab.enlightenment.org/D801
2014-04-27 03:17:02 +09:00
Daniel Juyung Seo 571b60e298 genlist: Removed unnecessary item show call on multi select.
item select will automatically trigger item show.
@fix
2014-04-27 03:02:58 +09:00
Daniel Juyung Seo 8147afcf72 toolbar: Fixed wrong edje api usage for elm objects.
This bug was introduced by the commit
4c8677166163316468da56c53b203ac572085c40 this January.

@fix
2014-04-27 02:42:01 +09:00
Daniel Juyung Seo 5f505de0b4 gesture_layer: updated internal documentations for the changed variables.
It looks like the variable names were changed at some point but the
documentation was not updated accordingly.
2014-04-27 00:45:24 +09:00
Daniel Juyung Seo 4d1d80481f gengrid: Changed internal variables to fix shadow variable build warnings.
elm_gengrid.c: In function '_item_move_cb':
elm_gengrid.c:2084:19: warning: declaration of 'y1' shadows a global
declaration [-Wshadow]
elm_gengrid.c: In function '_swap_items':
elm_gengrid.c:2136:19: warning: declaration of 'y1' shadows a global
declaration [-Wshadow]
2014-04-27 00:45:24 +09:00
zmike 07c2da9e2c entry no longer completely breaks focus by focusing itself on selection signal
I don't know why this was added, but it breaks the ability to set focus on any widgets at all under some circumstances. it also is nonsensical since you should never need to set focus while selecting because:

* you are selecting with the mouse button, thereby having previously triggered focus from the mouse click

* you are selecting using api, in which case there's a config option to allow retaining selection which is also conceptually broken by this behavior

@fix
2014-04-26 01:41:15 -04:00
Daniel Zaoui db4d33dc35 Fix Makefile indentation 2014-04-24 13:21:26 +03:00
Yossi Kantor 9c5ac1dd00 Eolian: Eo header clean.
Elementary Conform
  Elementary Widget
  Elementary Widget Container
2014-04-24 13:21:26 +03:00
Yossi Kantor 3de6b07a86 Eolian: Eo header clean and legacy integration.
Elementary Slider
  Elementary SlideShow
  Elementary Spinner
  Elementary Systray
  Elementary Table
  Elementary Thumb
  Elementary Toolbar
  Elementary Video
  Elementary Web
  Elementary Win
2014-04-24 13:21:26 +03:00
Yossi Kantor e4f4de0604 Eolian: Eo header clean and legacy integration.
Elementary Popup
  Elementary Panes
  Elementary Photo
  Elementary Photocam
  Elementary Plug
  Elementary Prefs
  Elementary Progress Bar
  Elementary Radio
  Elementary Route
  Elementary Scroller
  Elementary Segment Control
  Elementary Separator
2014-04-24 13:21:26 +03:00
Yossi Kantor 82ad449e56 Eolian: Eo header clean and legacy integration.
Elementary Interface File Selector
  Elementary Multibuttonentry
  Elementary Naviframe
  Elementary Inwin
  Elementary Label
  Elementary List
  Elementary Map
  Elementary Map Buffer
  Elementary Menu
  Elementary Notify
  Elementary Panel
2014-04-24 13:21:26 +03:00
Yossi Kantor 0f0e5cb3fe Eolian: Eo headers clean and legacy integration.
Elementary Hoversel
  Elementary Gengrid
  Elementary Genlist
  Elementary Gesture Layer
  Elementary GLView
  Elementary Grid
  Elementary Icon
  Elementary Image
  Elementary Index
2014-04-24 13:21:26 +03:00
Lukasz Stanislawski 21aafc3f2d atspi: AtspiValue interface added.
Summary:
Enables remote value changing on accessible widgets.
Added sample interface implementation for elm_slider widget.

Test Plan: build&install

Reviewers: raster, seoz

Differential Revision: https://phab.enlightenment.org/D784
2014-04-24 18:03:25 +09:00