Commit Graph

7816 Commits

Author SHA1 Message Date
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
Jaeun Choi 3c82b3c174 config: ELM_CONFIG_VERSION update
Summary: This patch updates ELM_CONFIG_VERSION according to elementary key binding.

Test Plan: None

Reviewers: raster, Hermet

CC: seoz

Differential Revision: https://phab.enlightenment.org/D768
2014-04-24 17:54:45 +09:00
Ryuan Choi 4e4c7e8658 entry: Create selection handles as lazily as possible
Summary:
Moved the construction of selection handles to _update_selection_handler in order to
reduce the cost of construction of elm_entry little bit.

Reviewers: thiepha, Hermet, seoz, raster

CC: seoz, raster

Differential Revision: https://phab.enlightenment.org/D756
2014-04-24 17:52:23 +09:00
Daniel Zaoui 67d8bd6e34 FlipSelector: fix callback type.
Evas_Smart_Cb was used in legacy while flipselector_func_type was used
in Eo. That made the compilation failing in E.
2014-04-24 11:04:35 +03:00
Yossi Kantor 40a65560f6 Eolian: Eo headers clean and legacy integration for:
Elc File Selector
  Elc File Selector Entry
  Elc File Selector Button
  Elementary Datetime
  Elementary Day Selector
  Elementary Disk Selector
  Elementary Entry
  Elementary Flip
  Elementary Flip Selector
2014-04-24 10:12:09 +03:00
Yossi Kantor 4ed35ccc04 Eolian: Eo header clean and legacy integration for:
Elementary Background
  Elementary Box
  Elementary Bubble
  Elementary Button
  Elementary Calendar
  Elementary Check
  Elementary Clock
  Elementary Color Selector
  Elementary Ctxpopup
2014-04-24 09:49:22 +03:00
Yossi Kantor 424f1b7ee0 Eolian: Eo header clean and legacy integration for:
Elementary Scrollable Interface
  Elementary Access
  Elementary Pan
  Elementary Client
  Elementary Client View
  Elementary Server
  Elementary Server View
  Elementary Layout
  Elementary Frame
  Elementary Hover
  Elementary ActionSlider
  Elementary Atspi Object
2014-04-24 09:21:32 +03:00
Jaehyun Cho ed6fb47ccc naviframe: Emit visible/invisible signals when view is shown/hidden
Summary:
Previously, previous view was just shown by evas_object_show and hidden by evas_object_hide.
Now, "elm,state,visible" and "elm,state,invisible" signals are emitted to enable application to do in edc what they want when each view is shown/hidden.

Reviewers: Hermet

CC: raster

Differential Revision: https://phab.enlightenment.org/D785
2014-04-24 14:22:26 +09:00
Hosang Kim 0f636e890a genlist: Add item loop feature
Summary:
If item loop feature is enabled, item is moved infinitely.

    1. Refactor direction key event handling routine
      - added internal function _elm_genlist_elm_widget_event_direction.
    2. Add looping feature for genlist
      - added Eolian function _elm_genlist_elm_widget_item_loop_enabled_set/get.
    3. Add demo - test_genlist.c / genlist focus

Reviewers: seoz, woohyun, jaehwan, Hermet, raster

Reviewed By: Hermet

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

Conflicts:

	src/lib/elm_widget_genlist.h
2014-04-24 14:17:35 +09:00
Daniel Juyung Seo 94661ce059 genlist: reordered genlist internal structure members for a better structure packing. 2014-04-23 23:02:57 +09:00
Carsten Haitzler c196a72a31 formatting - space++ 2014-04-23 21:21:07 +09:00
Amitesh Singh f3ad4cd3c4 gengrid: item moving feature with keys.
Summary:
- Added two APIs elm_gengrid_reorder_mode_start/stop
- Add two smart callbacks
  - "item,reorder,anim,start" - This is called when a gengrid item movement
     has just started by keys in reorder mode.
  - "item,reorder,anim,stop" - This is called when a gengrid item movement just
     stopped in reorder mode.

@feature

Test Plan: elementary_test->Gengrid Focus

Reviewers: raster, seoz, SanghyeonLee

CC: seoz

Differential Revision: https://phab.enlightenment.org/D723
2014-04-23 21:13:57 +09:00
Lukasz Stanislawski 38f7840ca8 atspi: remove unused variable assignment
Summary: CID 1204328

Test Plan: build & install

Reviewers: seoz, raster

Differential Revision: https://phab.enlightenment.org/D781
2014-04-23 18:00:45 +09:00
Daniel Zaoui d2484d08d5 Genlist: fix EO errors.
Elm-Widget function was called on non elm-widget objects.
2014-04-23 11:00:50 +03:00
Ryuan Choi a4a140bd64 elm_web: Fixed build warning with ewebkit 2014-04-23 01:27:47 +09:00
Daniel Juyung Seo b173ed7c85 genlist/gengrid/list: Fix first on_focus call correctly by checking focus highlight.
First on_focus call should consider focus highlight enable status and
do the different job according to that.

This can be tested in "genlist 7" and "genlist focus" examples in
elementary_test.
2014-04-22 23:18:04 +09:00
Daniel Zaoui 1303a6dbec Eolian: fix names for elc widgets.
Even if the file names are elc_..., the class names are supposed to be
elm_...
2014-04-22 16:39:35 +03:00
Stefan Schmidt e038096529 atspi: Add header file to build to pass distcheck
The needed header was not packaged and thus made distcheck fail. I put
it into the unstable headers because I'm not sure if they are considered
stable yet. If this is the case please let us know so we can move it over.
2014-04-22 15:36:05 +02:00
zmike df0803a28c tooltips position more accurately in X in xinerama
elm_win_screen_size_get() is broken for this use case since the tooltip actually needs the full xinerama screen geometry, which is the geometry of the root window and NOT the current screen

@fix
2014-04-22 09:31:41 -04:00
Gwanglim Lee b7cb75ccb3 slider: fixed build warning
Summary: added EINA_UNUSED to fix build warning

Test Plan: N/A

Reviewers: raster, seoz, Hermet

Reviewed By: seoz

Differential Revision: https://phab.enlightenment.org/D777
2014-04-22 14:32:20 +09:00
Ryuan Choi c71dd81883 web2: Implemented alert/confirm/prompt
Added test cases for alert/confirm/prompt
2014-04-22 01:42:53 +09:00
Thiep Ha 7869c00600 dnd: Correct drag window positon in drag start
Summary:
If window is rotated, the drag window position is incorrect.

In drag start, the drag window is placed in incorrect position if main window is rotated.
Fix: Update drag window according to window rotation.

@fix

Reviewers: JackDanielZ, raster

Reviewed By: raster

CC: woohyun, seoz

Differential Revision: https://phab.enlightenment.org/D746
2014-04-21 17:27:46 +09:00
wonguk.jeong e1ea913a22 elm_interface_scrollable: fix wanted coordinate calculation
Summary:
boundary check of _elm_scroll_wanted_coordinates_update() is wrong.
boundary was checked with assumption that 0, 0 is top, left
however, 0, 0 could be different according to usages, in case of gengrid, 0, 0 was center left not top left)

Do not assume the min/max value, but use pan min/max value for boundary check

Fixes T1092

Test Plan: elementary_test -> grid -> uncheck multi select mode -> select first item -> click bring in -> resize window

Reviewers: raster, woohyun, seoz, zmike

CC: seoz

Maniphest Tasks: T1092

Differential Revision: https://phab.enlightenment.org/D720
2014-04-21 15:06:28 +09:00
Lukasz Stanislawski a4f3729da0 atspi: Atspi_Action interface implementation @feature
Summary: Enables remote execution of elementary widget actions.

Test Plan: build&install, accerrsiser tests on ubuntu 12.04

Reviewers: raster, seoz

Differential Revision: https://phab.enlightenment.org/D747
2014-04-21 15:04:25 +09:00
Lukasz Stanislawski 85c5216205 atspi: separate atspi mode from access mode.
Since elm_access provides its own support for screen reader, access mode
and atspi mode must be separated.

https://phab.enlightenment.org/D726
2014-04-21 15:01:11 +09:00
wonguk.jeong 495e0771c1 elm_interface_scrollable: fix resize after drag bug.
Summary:
after I drag by using scrollbar, if I resize window, the scroller position was moved to coordication before dragging.
invoke _elm_scroll_wanted_coordinates_update() after position setting in _elm_scroll_scroll_bar_read_and_update();

@fix

Test Plan: elementary_test -> drag scroller to center -> resize window -> scroller shouldn't go back to top

Reviewers: raster, woohyun, seoz

CC: seoz, Hermet

Differential Revision: https://phab.enlightenment.org/D722
2014-04-21 14:17:43 +09:00
Lukasz Stanislawski d3fafebc9a atspi: change a method of calculating atspi VISIBLE state. 2014-04-21 12:55:28 +09:00
Lukasz Stanislawski c3b541bcda atspi: refactor atspi_object class into mixins.
Summary:
Allow to create ATSPI aware objects only by attaching Atspi interface to
Eo object. Apply protected rule to all methods, properties which should
not be available to app developer. Remove public atspi header from Elementary.h.
Make Elm_Widget inherit from Atspi interfaces, Elm_Win inherits additional
Atspi_Window interface.
Unified file names - all atspi related objects/interfaces can be found under
elm_atspi_*
and elm_interface_atspi_*.

Test Plan:
build&install, out-off tree example compilation with gcc and g++,
Orca screen reader tests on Ubuntu 12.04.

Reviewers: raster, seoz, tasn, JackDanielZ

Differential Revision: https://phab.enlightenment.org/D718
2014-04-21 12:46:12 +09:00
Carsten Haitzler 0312fd5b3d fix cursor setting to only set if currently visible
this should fix D715
2014-04-21 12:41:59 +09:00
Carsten Haitzler 9d55fab418 entry: wrong viewport value calculation issue fix
Summary:
Issue: As entire scroller edje co-ordinates was being taken instead of the actual viewport value,
if in scroller edje more parts are added apart from just "elm.swallow.content", then the viewport value
set will be wrong. hence the selection handlers will not hide when they have to hide.

solution: Instead of taking scroller edje's geometry, get the actual viewport values.
To get viewport x,y a new scrollable interface is also added.

signed-off by: Shilpa Singh <shilpa.singh@samsung.com>

@fix

Test Plan: Selection handlers have to hide correctly when the text is scrolled in a scrolled entry, if the scroller edc of entry has more parts added other than elm.swallow.content, then when we scroll the selection handlers are not hidden correctly.

Reviewers: jaehwan, woohyun, seoz, Hermet, raster

CC: govi, rajeshps, thiepha

Differential Revision: https://phab.enlightenment.org/D674
2014-04-21 12:31:49 +09:00
Jaeun Choi 200ec7840e slider: apply key binding
Summary: This patch applies key binding to elm_slider.

Test Plan: None

Reviewers: Hermet, raster

Differential Revision: https://phab.enlightenment.org/D761
2014-04-18 13:39:08 +09:00
ChunEon Park bce93b6342 slider - don't send signals multiple times if the multiple key is pressed/up.
since slider popup has the interval for hide animation(may have, may have not)
just checking visible is not enough but this flag is correct.
2014-04-18 12:00:32 +09:00
ChunEon Park 7809e91bbc slider: fix comment for readability. 2014-04-18 11:55:54 +09:00
Jaeun Choi fcd6880b6c slider: removed unnecessary key value check in case of key up event
Summary:
This patch removes unnecessary codes.
There is no need to check key value in case of key up event,
since any other key down event except direction keys will cancel sliding.
Instead, hide popup if the popup is visible at that point.

Test Plan: None

Reviewers: Hermet, raster

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D760
2014-04-18 11:53:27 +09:00
Jaeun Choi f8a26ed1fa slider: code refactoring in widget_event func
Summary:
This patch improves maintainability and readability through code refactoring.
- complete branch statement instead of goto statement
- removed unnecessary codes

Test Plan: None

Reviewers: Hermet, raster

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D758
2014-04-18 11:45:13 +09:00
Jaeun Choi 69ddd5b7f5 multibuttonentry: change key up callback into key down callback for consistency
Summary:
Every elementary widget's action is triggered by key down event except multibuttonentry.
There's no reason why focus move and deletion should happen on key up in multibuttonentry.
This patch modifies _layout_key_up_cb into _layout_key_down_cb.

Test Plan: None

Reviewers: raster, Hermet, seoz, jpeg

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D755
2014-04-18 11:33:43 +09:00
Daniel Juyung Seo c1613811e7 spinner: Fixed broken focus movement by direction key.
This was broken by c9755bd3c828bcd2453a50542331b201089a7160.
2014-04-18 04:25:43 +09:00
Lukasz Stanislawski c30b49ecaa config: fix crash when finding key bidings
Summary: Crash occured when config was reloaded and hash data become invalid.

Reviewers: raster, seoz, Hermet

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

Signed-off-by: Cedric Bail <cedric.bail@free.fr>
2014-04-17 19:46:25 +02:00
Daniel Juyung Seo a3d9569910 button: Renamed internal variable of button smart data to match with
actual API.
2014-04-18 01:26:01 +09:00
Jaeun Choi 099fbbc79f spinner: apply key binding
Summary: This patch applies key binding to elm_spinner.

Test Plan: None

Reviewers: Hermet, raster

Differential Revision: https://phab.enlightenment.org/D752
2014-04-17 16:03:48 +09:00
ChunEon Park 58ea3efa5d ctxpopup: dimiss ctxpopup if escape key is pressed.
rahter than just hide of the ctxpopup, dimiss will be much better for usability.
because press "Escape" is closed to "Cancel" meaning conceptually.
2014-04-17 15:51:37 +09:00
Jaeun Choi e88c793425 ctxpopup: apply key binding
Summary: This patch applies key binding to elc_ctxpopup.

Test Plan: None

Reviewers: Hermet, raster

Differential Revision: https://phab.enlightenment.org/D754
2014-04-17 15:41:50 +09:00
Jaeun Choi bde04f61e9 ctxpopup: sd->box null check and event_flag set for previous and next focus move.
Summary:
The original code was missing
- null check of sd->box
- event_flag value set
for previous and next focus move.
@fix

Test Plan: None

Reviewers: raster, seoz, Hermet

Differential Revision: https://phab.enlightenment.org/D753
2014-04-17 15:23:00 +09:00
Jaeun Choi f2bb1364e8 spinner: fixed odd behavior of the spinner
Summary:
when multiple key down is coming while increase/decrease the spinner values,
the speed acceleration will be reset by the new key down.

Instead, it stops the increase/decrease the spinner values behavior.

@fix

Test Plan: None

Reviewers: Hermet, raster

CC: seoz

Differential Revision: https://phab.enlightenment.org/D749
2014-04-17 11:51:51 +09:00
Ryuan Choi ed8969e557 elm_web2: Implement select popup interfaces 2014-04-17 00:34:41 +09:00
Ryuan Choi 2a9cd79e6d elm_web2: Implement several interfaces
- elm_web_bg_color_{get|set}
- elm_web_zoom_{get|set}
2014-04-17 00:34:41 +09:00
Jaeun Choi bdf2c672ec spinner: unified two functions with different name and same functionality
Summary:
This patch unifies two functions with different name and same functionality:
_val_inc_stop and _val_dec_stop into _spin_stop.

Test Plan: None

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D748
2014-04-16 20:58:37 +09:00
Jaeun Choi edeea1eb96 flipselector: apply key binding
Summary: This patch applies key binding to elm_flipselector.

Test Plan: None

Reviewers: Hermet, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D745
2014-04-16 17:29:16 +09:00
Jaeun Choi 8b8a4b6922 gengrid: apply key binidng
Summary: This patch applies key binding to elm_gengrid.

Test Plan: None

Reviewers: Hermet, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D744
2014-04-16 17:29:16 +09:00
Jaeun Choi fc491c7c6c genlist: apply key binding
Summary: This patch applies key binding to elm_genlist.

Test Plan: None

Reviewers: Hermet, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D743
2014-04-16 17:29:16 +09:00
ChunEon Park 5044b58cfb flipselector - don't say warning.
set EINA_UNUSED for unused argument.
2014-04-16 11:05:02 +09:00
Jaeun Choi 9d571ef5a4 web: apply key binding
Summary: This patch applies key binding to elm_web.

Test Plan: None

Reviewers: Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D740
2014-04-16 11:03:14 +09:00
ChunEon Park 5ab6a7739f widgets - don't handle the events(key,mouse) if the object is disabled.
we can prevent to handle the widget events from the widget infra,
if the object is disabled.

conceptually, disabled object should not be interacted to user input(key, mouse)
2014-04-16 10:59:43 +09:00
Jaeun Choi 40704d6d43 win: apply key binding
Summary: This patch applies key binding to elm_win.

Test Plan: None

Reviewers: Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D741
2014-04-16 10:38:34 +09:00
Carsten Haitzler cb397f09fc win - add ELM_ACCEL env var to set acel method that is preferred
@feature
2014-04-15 18:41:39 +09:00
Jaeun Choi 48a4a4add7 video: apply key binding
Summary: This patch applies key binding to elm_video.

Test Plan: None

Reviewers: Hermet, raster

Differential Revision: https://phab.enlightenment.org/D738
2014-04-15 16:09:12 +09:00
Jaeun Choi 2411bf5c62 toolbar: apply key binding
Summary: This patch applies key binding to elm_toolbar.

Test Plan: None

Reviewers: Hermet, raster

Differential Revision: https://phab.enlightenment.org/D737
2014-04-15 16:07:52 +09:00
Jaeun Choi 840e1fa07f slideshow: apply key binding
Summary: This patch applies key binding to elm_slideshow.

Test Plan: None

Reviewers: Hermet, raster

Differential Revision: https://phab.enlightenment.org/D736
2014-04-15 16:07:41 +09:00
Jaeun Choi 10fb0a3f30 photocam: apply key binding
Summary: This patch applies key binding to elm_photocam.

Test Plan: None

Reviewers: Hermet, raster

Differential Revision: https://phab.enlightenment.org/D735
2014-04-15 16:07:17 +09:00
Jaeun Choi 660591102a radio: apply key binding
Summary: This patch applies key binding to elm_radio.

Test Plan: None

Reviewers: Hermet, raster

Differential Revision: https://phab.enlightenment.org/D734
2014-04-15 14:54:58 +09:00
Jaeun Choi d8d53f4268 map: apply key binding
Summary: This patch applies key binding to elm_map.

Test Plan: None

Reviewers: Hermet, raster

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D733
2014-04-15 14:52:06 +09:00
Jaeun Choi 3449c44221 image: apply key binding
Summary: This patch applies key binding to elm_image.

Test Plan: None

Reviewers: Hermet, raster

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D732
2014-04-15 14:49:35 +09:00
Jaeun Choi 71149158e2 popup: apply key binding
Summary: This patch applies key binding to elc_popup.

Test Plan: None

Reviewers: Hermet, raster

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D731
2014-04-15 14:47:19 +09:00
Jaeun Choi 16dd06bb8e player: apply key binding
Summary: This patch applies key binding to elm_player.

Test Plan: None

Reviewers: Hermet, raster

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D730
2014-04-15 14:46:39 +09:00
Jaeun Choi e6d6066581 hoversel: apply key binding
Summary: This patch applied key bindiing to elc_hoversel.

Test Plan: None

Reviewers: Hermet, raster

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D729
2014-04-15 14:40:38 +09:00
Jaeun Choi 530fcf2d8c fileselector: apply key binding
Summary: This patch applies key binding to elm_fileselector.

Test Plan: elementary_test > fileselector > check key events

Reviewers: Hermet, raster

Differential Revision: https://phab.enlightenment.org/D728
2014-04-15 13:58:01 +09:00
Jaeun Choi fbcadfd87a list: apply key binding
Summary: This patch applies key binding to elm_list.

Test Plan: elementary_test > list > check key events

Reviewers: Hermet, raster, seoz

Differential Revision: https://phab.enlightenment.org/D727
2014-04-15 13:13:57 +09:00
Jaeun Choi 872a1de3c9 key binding infra change for modifiers
Summary: This patch makes key binding support multiple and inverse modifier set.

Test Plan: None

Reviewers: raster, Hermet

Differential Revision: https://phab.enlightenment.org/D717
2014-04-14 19:47:52 +09:00
Ryuan Choi 5514493f31 elm_web2: Fix build break with latest EFL
Followes Eo2 changes.
2014-04-14 14:53:28 +09:00
Daniel Juyung Seo cfef2a2a12 toolbar: Initialized some internal variables.
This fixes coverity CID 1199658, 1199659.
2014-04-13 02:00:33 +09:00
Daniel Juyung Seo 11ad4e125d scroller: Initialized some internal variables.
This fixes coverity CID 1199657, 1199622, 1199621, 1199620.

@fix
2014-04-13 01:58:43 +09:00
Daniel Juyung Seo a3a3766845 widget: Initialized internal variables.
This fixes coverity CID 1199625 and 1199626.

@fix
2014-04-13 01:44:22 +09:00
Ryuan Choi 9a5bd0a139 elm_web2: Fix build break.
There are some missing implementations whith elm_web implements
but elm_web2 didn't yet.

This patch just added dummy implementations to fix build break.
2014-04-12 05:24:01 +09:00
Daniel Zaoui 72ffb466e5 Menu: Fix warnings. 2014-04-11 09:39:48 +03:00
Jaeun Choi bf7db13385 removed unnecessary field in key binding
Summary: No need to check ev->string if use ev->key instead of ev->keyname.

Test Plan: None

Reviewers: raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D714
2014-04-10 19:29:37 +09:00
Carsten Haitzler 610ad7f44c FIX TOMS BREAKING OF ELEMENTARY! 2014-04-10 18:18:21 +09:00
Tom Hacohen a7c5d02257 Adjust code to use the slightly different Eo2 API.
With Eo2 you can return values directly without the need to use a pointer
(use the C return).

For example:
eo_do(obj, elm_object_text_get(&text));
becomes:
eo_do(obj, text = elm_object_text_get());

@feature
2014-04-10 09:49:22 +01:00
Tom Hacohen 61ae26094d atspi: Made some protected functions protected.
They should be protected and they break compilation if they are not. I'm
pretty sure much more functions should be protected, but this one
definitely.
2014-04-10 09:39:32 +01:00
Tom Hacohen 5332716a59 win: Adjusted to Eo2. 2014-04-10 09:39:31 +01:00
Tom Hacohen 3737cf6140 widget: Adjusted to Eo2. 2014-04-10 09:39:31 +01:00
Tom Hacohen 140f53c05e web: Adjusted to Eo2. 2014-04-10 09:39:31 +01:00
Tom Hacohen dfbffe96de video: Adjusted to Eo2. 2014-04-10 09:39:31 +01:00
Tom Hacohen 0ccbff2cea toolbar: Adjusted to Eo2. 2014-04-10 09:39:31 +01:00
Tom Hacohen 12e4804c06 thumb: Adjusted to Eo2. 2014-04-10 09:39:31 +01:00
Tom Hacohen 0cd7e0e3d2 table: Adjusted to Eo2. 2014-04-10 09:35:02 +01:00
Tom Hacohen 416568b1f5 spinner: Adjusted to Eo2. 2014-04-10 09:35:02 +01:00
Tom Hacohen 849b770160 slideshow: Adjusted to Eo2. 2014-04-10 09:35:02 +01:00
Tom Hacohen a5deb548c2 slider: Adjusted to Eo2. 2014-04-10 09:35:02 +01:00
Tom Hacohen ada45ffbd3 separator: Adjusted to Eo2. 2014-04-10 09:35:02 +01:00
Tom Hacohen 0a7dbcff47 segment control: Adjusted to Eo2. 2014-04-10 09:35:02 +01:00
Tom Hacohen cbf43225f1 scroller: Adjusted to Eo2. 2014-04-10 09:35:02 +01:00
Tom Hacohen 9d713b52f2 route: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Tom Hacohen df61db71d6 radio: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Tom Hacohen 6749d72f24 progressbar: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Tom Hacohen bc14ce0f6c prefs: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Tom Hacohen 84b86621a0 plug: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Tom Hacohen 610c42428b photocam: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Tom Hacohen 372c73a1ef photo: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Tom Hacohen 4ac24b6953 panes: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Tom Hacohen 9bab556ac3 notify: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Tom Hacohen 9503941d9a menu: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Tom Hacohen 9404d296f8 mapbuf: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Tom Hacohen d4108660a8 map: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Tom Hacohen 8f65677fff list: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Tom Hacohen 601b1a0695 layout: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Tom Hacohen a1280cb26f label: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Tom Hacohen 55c7d0aeeb inwin: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Tom Hacohen de9c5486f6 interface scrollable: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Tom Hacohen a1cc384635 interface atspi component: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Tom Hacohen 19b2a1d3dd index: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Tom Hacohen 687762a344 image: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen 16291edbc2 icon: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen 1ced9dd543 hover: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen 0d989232a1 grid: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen e411454696 glview: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen e15f80074e genlist: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen e8d0f9bb14 gengrid: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen 489fbbcc99 frame: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen 8bb57aff47 flipselector: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen a3a295eaaa flip: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen 3a6e755963 entry: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen f51643bad3 diskselector: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen 766aa30a4c dbus menu: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen 5d838bf6dd dayselector: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen 0130522f8c datetime: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen 2cc529dfb1 conformant: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen 1c51dbce13 colorselector: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen b39519aa12 cnp: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen 5ea9873316 clock: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen 9a623e21b1 check: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Tom Hacohen 9fe8786032 calendar: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Tom Hacohen 099ddbf0a4 button: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Tom Hacohen ddd37d7e24 bubble: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Tom Hacohen d616bc4828 box: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Tom Hacohen 7623c27feb atspi bridge: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Tom Hacohen 6a334fb4d5 atspi object: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Tom Hacohen 8e0c7f6cb1 app client view: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Tom Hacohen 1c2d0aaa51 app client: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Tom Hacohen 7a7c299cc7 app server view: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Tom Hacohen 2b27363ae7 app server: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Tom Hacohen a5495e3bee actionslider: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Tom Hacohen 45695cda3f popup: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Tom Hacohen 3e442beffb player: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Tom Hacohen 9c6576d1c6 naviframe: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Tom Hacohen 5a1d105c5e multibuttonentry: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Tom Hacohen 4a3a802a5d hoversel: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Tom Hacohen 83fc130dd4 fileselector entry: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Tom Hacohen 978223b0a1 fileselector button: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Tom Hacohen a7ac744f37 fileselector: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Tom Hacohen 2d802ca794 Ctxpopup: Adjusted to Eo2. 2014-04-10 09:34:58 +01:00
Jaeun Choi 624b278c44 scroller: apply key binding
Summary: This patch applies key binding to elm_scroller.

Test Plan: elementary_test > Scroller > check key events

Reviewers: Hermet, raster

Differential Revision: https://phab.enlightenment.org/D711
2014-04-10 17:10:00 +09:00
Carsten Haitzler b546eec851 fix new access of uninitted memory isue on eo move 2014-04-10 17:03:27 +09:00
Carsten Haitzler df206b852b elm cnip - fix new cnp problem where invalid mem ref done 2014-04-10 15:06:35 +09:00
Tom Hacohen 794f95d7c8 layout: expose a typedef that needs to be public (Content_Alias).
This typedef is used in publicly exposed APIs.
2014-04-10 03:41:52 +01:00
Thiep Ha c1853c5ae0 dnd: Skip drag window when drag starts
Summary:
Currently, when drag starts, drag window is not skipped. It makes ecore_x cannot find dropable window in some cases.

Issue: Dropable window is not found if we drop inside the initialized area of drag window.
(Example: in Dnd Types of elementary test, try to start dragging at right edge of left label and drop to left edge of right label. The drop is failed).
Reason: Ecore_x considers drag window when it tries to find dropable window at specific position. Therefore, it cannot find dropable window.
Resolve: Skip drag window.
@fix

Reviewers: raster, JackDanielZ, seoz

CC: woohyun, seoz

Differential Revision: https://phab.enlightenment.org/D710
2014-04-10 11:20:50 +09:00
Jaeun Choi df2b76dcc1 naviframe: apply key binding
Summary: This patch applies key binding to elc_naviframe.

Test Plan: elementary_test > Naviframe > check key events

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D709
2014-04-10 11:14:59 +09:00
Ryuan Choi c8d412d07f fleselector_button: Implement some missing interfaces of Elm_Interface_Fileselector
Implemented below.
- Elm_Interface_Fileselector::selected_paths::get;
- Elm_Interface_Fileselector::thumbnail_size;
- Elm_Interface_Fileselector::selected;
- Elm_Interface_Fileselector::hidden_visible;
- Elm_Interface_Fileselector::sort_method;
- Elm_Interface_Fileselector::multi_select;
- Elm_Interface_Fileselector::mode;
2014-04-10 00:52:37 +09:00
Bogdan Devichev ac038d7982 elementary: when modal win appears another wins are blocked
Summary:
In win.edc add blocker for its content and programs for it. Add
Eina_Bool blocked and was_enabled to _Elm_Menu_Item for correctly blocking
and unblocking of main_menu. They used for saving state which was before modal
win was apeared. Add callbacks and private functions in menu.c for blocking and
unblocking menu. Add integer modal_count to Elm_Win_Smart_Data for creating
enum of modal wins. Add changes in win.c for blocking content, in_focus callback
and menu while modal win is exist.

Reviewers: cedric, seoz, raster

Reviewed By: raster

CC: reutskiy.v.v, raster

Differential Revision: https://phab.enlightenment.org/D607
2014-04-09 19:04:55 +09:00
Mike Blumenkrantz 8fba6f77e9 genlist event_block_rect needs a smart parent to reduce BITCH 2014-04-08 16:23:07 -04:00
Daniel Juyung Seo 5cc573f361 list: Fixed _elm_list_item_content_focus_set in case the first content
is focused.

The function should return true when the first content of an item is
focused.

@fix
2014-04-07 04:13:01 +09:00
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
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
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 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
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
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 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
Carsten Haitzler e2599a6d4a elm widget - dont get focus if object is not an elm widget
this islences lots of missing method complaints from eo (yes - we
wantmixed elm + non elm widgets to work, thus this has to be handled)
2014-04-01 09:26:24 +09:00