Commit Graph

10864 Commits

Author SHA1 Message Date
Shashank Pandey fb4b8ec146 [Genlist] Added correct container_get callback for filter iterator.
Summary: Warning fixed: Container_get mechanism was wrong. Fixed it.

Test Plan: elementary_test => Genlist => Genlist filter

Reviewers: singh.amitesh, cedric, shilpasingh, SanghyeonLee

Subscribers: shilpasingh

Differential Revision: https://phab.enlightenment.org/D3105
2015-09-24 16:42:37 +09:00
woochan lee a80331c26c calendar: weekday update when first day of week changed.
Summary:
When user call elm_calendar_first_day_of_week_set() to change first day of week.
the marked day has to update.
But, it's not updated, because of internal logic error.
I fixed internal logic for update specific day mark.

@fix

Test Plan:
Called elm_calendar_mark_add()
Then called  elm_calendar_first_day_of_week_set(
Check the mark in not updated.

Reviewers: Hermet, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-23 15:30:18 -07:00
Vivek Ellur c73814da24 elc_popup: ported eo_event callbacks to use eo_event arrays
Summary:
Changed eo_event_callback_add to eo_event_callback_array_add function

Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com>

Reviewers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-23 15:30:18 -07:00
Vivek Ellur c1b05df5a4 elc_player: ported eo_event callbacks to use eo_event arrays
Summary:
Changed eo_event_callback_add to use eo_event_callback_array_add

Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com>

Reviewers: cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-23 15:30:18 -07:00
Vivek Ellur 9f6821d161 elc_multibuttonentry: ported eo_event callbacks to use eo_event callback array
Summary:
Changed eo_event_callback_add to use eo_event_callback_array_add

Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com>

Reviewers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-23 15:30:18 -07:00
Vivek Ellur eedeedaf6e elm_spinner: ported eo_event_callbacks to use eo_event arrays
Summary:
Ported eo_event_callback_add to use eo_event_callback_array_add

Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com>

Reviewers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-23 15:30:18 -07:00
woochan lee 0819e80a3f spinner: delete longpress timer when scroller enabled.
Summary:
If there is a spinner on scroller.
User can scrolling and spinner button longpress at the same time.

Prevent this weird action, delete longpress timer when scroller enabled.

@feature

Reviewers: Hermet, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-23 15:02:29 -07:00
Amitesh Singh 234cc584b4 test_genlist: fix compilation warnings 2015-09-23 22:21:39 +05:30
Shashank Pandey c4a558dd13 Elm_genlist: Add Item filtering support
Summary:
Add Filtering support in genlist based on filter function set by application.

@feature

Test Plan: Genlist filter sample added in elementary_test

Reviewers: raster, shilpasingh, cedric, SanghyeonLee

Subscribers: SanghyeonLee, divyesh, rajeshps, govi, prince.dubey, poornima.srinivasan

Differential Revision: https://phab.enlightenment.org/D2514
2015-09-23 20:50:05 +09:00
Hosang Kim bfff68bb45 elm_toolbar: fix elm_toolbar_select_mode_set API
Summary: Item is unselected when I changed select mode "ELM_OBJECT_SELECT_MODE_DEFAULT" to "ELM_OBJECT_SELECT_MODE_ALWAYS".

Reviewers: Hermet, cedric, raster, seoz, woohyun

Reviewed By: woohyun

Differential Revision: https://phab.enlightenment.org/D3086
2015-09-23 16:20:45 +09:00
Amitesh Singh 3a5f8759e8 gengrid: rename function _elm_gengrid_item_focus_raise to _elm_gengrid_item_focus_update
In function _elm_gengrid_item_focus_raise, we are doing more than just focus_raise.
Rename it to something more meaningful.
2015-09-23 12:46:24 +05:30
Amitesh Singh 91ce72b72a gengrid: move item focus related code to internal _elm_gengrid_item_focused() 2015-09-23 12:42:19 +05:30
Amitesh Singh b5a99fcf46 gengrid: fix duplicate edje signal (elm,state,focused) to item on focus
@fix
2015-09-23 12:22:21 +05:30
Shilpa Singh 4c271ad347 elm_conformant: display mode set fix
Summary:
Set the display mode to none only when both clipboard and keypad is
hidden.

Signed-Off By: Shashank Pandey <shashank.p@samsung.com>
Signed-Off By: Shilpa Singh <shilpa.singh@samsung.com>
@fix

Test Plan: Keypad opened, Clipboard opened, close clipboard

Reviewers: woohyun, CHAN, Hermet

Reviewed By: Hermet

Subscribers: CHAN, Jaehyun, shashank0990

Differential Revision: https://phab.enlightenment.org/D2968
2015-09-23 09:51:04 +09:00
Prince Kumar Dubey b145c9c759 [elm_win] Possible memory leak Fixed.
Summary: Memory assigned to variable "sd->wm_rot.rots" is not freed on window deletion.

Test Plan: Valgrind catch this memory leak.

Reviewers: raster, cedric, Hermet

Reviewed By: Hermet

Subscribers: govi, rajeshps

Differential Revision: https://phab.enlightenment.org/D3041
2015-09-23 09:40:32 +09:00
Carsten Haitzler 97ead86a39 elm - fix focus set on focus in on window due to previous focus fix
this fix is a fix due to the fix in
933dfca5bcda4943ecdd81ab09dc34989234f7f3 whihc fixed other issues. now
focus is properly set where it should be. this affected rage

@fix
2015-09-21 16:13:41 +09:00
Andy Williams a45c1c802c [spinner] Notify when value is edited directly
Previously an edit would trigger internal save but not notify
until the up/down button was tapped.
Now notify when value applied (unfocus). @fix
2015-09-20 11:47:39 +01:00
Amitesh Singh e96771e383 fix typos in APIs doc 2015-09-19 09:13:09 +05:30
Daniel Zaoui ef530149b6 Eo: move Focus Direction to elm_general.eot 2015-09-18 12:40:06 +03:00
Thiep Ha b2772fa5c1 test_dnd: transfer text without markup when drag label
Summary:
In Types Dnd test, if we drag from label to entry, the text is inserted
with "<br/>". The reason is that we drag with type ELM_SEL_FORMAT_TEXT
but the transferred data is markup.
This patch fixes it by changing the transferred data to text.

@fix

Reviewers: JackDanielZ

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D3072
2015-09-18 11:38:39 +03:00
Thiep Ha ea7caad9f4 dnd/x11: correct coordinates in pos callback
Summary:
The x, y coordinates in pos callback should be relative to
the top-left of the object.
This patch corrects the x,y coordinates and adds poscb to elementary test
to clearly show the bug case.

Test:
      Run Genlist Dnd Dflt Anim with the change in this patch.
      Drag an item to other genlist and see the printed out item, x, y.

@fix

Reviewers: JackDanielZ

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D3063
2015-09-18 11:30:23 +03:00
Jaehwan Kim 69272b947f focus: remove checking the focus origin in highlight job.
In some case, it can take misoperation.

@fix
2015-09-18 16:50:13 +09:00
Jaehwan Kim 146d30b738 gengrid: remove EINA_UNUSED 2015-09-16 18:46:10 +09:00
Jee-Yong Um 540c001931 elm_hoversel: add support elm_object_item_part_text_set()
Summary:
There was override for elm_object_item_part_text_get() only.
This patch implements elm_object_item_part_text_set().

Reviewers: Hermet, cedric

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D3054
2015-09-16 10:44:45 +09:00
Shilpa Singh 644cfdf435 elc_multibuttonentry: Input panel should be controlled only if
multibuttonentry is editable

Summary:
Input panel should be controlled only if Multibuttonentry is editable, else causes issues in applications controlling keypad by themselves

@fix

Reviewers: CHAN, Hermet

Reviewed By: Hermet

Subscribers: navnbeet

Differential Revision: https://phab.enlightenment.org/D3050
2015-09-16 10:25:18 +09:00
Hosang Kim 886fc9fd9e slider: slider should be focused, when slider is handled with mouse or touch event.
Summary: slider is not focused after slider is dragged.

Test Plan: elementary_test -> slider

Reviewers: woohyun, seoz, smohanty, cedric, raster

Differential Revision: https://phab.enlightenment.org/D3057
2015-09-16 10:10:32 +09:00
Mike Blumenkrantz 0b1039c003 build: fix header ordering so the library builds
please compile test before making commits.

ref 286ab4d7cf3ca794d88bd06ec027bb2df6401f50
ref 431492ec497eeaa130f5c2da27ce7a4c7eefe7f9
2015-09-15 14:47:52 -04:00
Daniel Juyung Seo 1768dd6436 example/performance: Remove unused variable. 2015-09-16 01:06:38 +09:00
Daniel Juyung Seo 6067c0a910 focus: Add elm_focus_item.h to make header include order correctly.
This fixes the cpp example compile error which was triggered by the commit 431492e.
2015-09-16 01:05:13 +09:00
Daniel Juyung Seo 1207003aee focus: Fix typo in commit 431492e. 2015-09-16 01:02:32 +09: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
jiin.moon fcb26c4b91 elm_image : call the evas_object_image_load_error_get() before calling the image_preload api
Summary:
If file path is wrong, don't need to call the image preload api.

And the result of evas_object_image_load_error_get api is not correct
after calling the image_preload api.
I will check more about it.

Reviewers: cedric, Hermet, jpeg

Reviewed By: jpeg

Differential Revision: https://phab.enlightenment.org/D3039
2015-09-15 10:25:31 +02:00
Carsten Haitzler a13e2759e9 fix elm performance example to init elm properly and not do engine stuff
cleanup of examples
2015-09-15 16:25:20 +09:00
Woochan Lee 8c30b69453 multibuttonentry: Fix box item append rtl when mirror enabled.
Summary:
MBE item append logic changed when mirrored set as true.

The item appended from left side of internal box to right side, even mirrored set as true.

@fix

Test Plan:
Precondition : elm_widget_mirrored_set as true.

Run mbe sample in elementary_test.
Add item.

Reviewers: cedric, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2975
2015-09-14 20:53:34 +09:00
Carsten Haitzler f9b154c5ed elm scroller - improve thumbscroll smoothness even more
this does even more smoothing of scrolling follow on from
939d8ef4c3c48120046560814db63858175a2d12
2015-09-14 14:45:19 +09:00
Carsten Haitzler 915ba802be elm toolbar 0 size items fix if icon not found
this fixes a bug with horizontal style toolbar items and toolbar code
itself simply emitting the wrong signals that causes 0 height items.
this fixes T2710

@fix
2015-09-12 17:16:41 +09:00
Carsten Haitzler 7a58d15e41 elm config - fix labels in config ui for smooth time window 2015-09-12 12:45:25 +09:00
Carsten Haitzler 33e55d512d elm - thumbscroll finger scrolling - make it far smoother
smooth out scrolling and simplifyconfig as well as expose config apis
to configure it all and elm config ui sliders and checkboxes for
related config values etc. etc. - with this it is much smoother if you
use the default values, though latency is a bit worse. it looks nicer
though.

@feature
2015-09-11 23:24:51 +09:00
Carsten Haitzler 9d5b9872fb elm - when focus goes back in to a window dont have scrollers jump
there is an annoyance in elm that when focus goes back toa window it
restores focus to the last focused widget. if that widget happens to
be invisible in a scroller then this is really annoying as the
scrollers reset. this makes restoring optional. only if there is a
hilight object AND it's visible - then restore, otherwise don't and
revert focus to the window itself again.

@fix
2015-09-10 20:04: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
woochan lee c3a93cc440 calendar: fix signal process timing issue when view update.
Summary:
When the calendar view updated(Press next button to activated next month),
a lot of signals process(signal emitted) to calendar edc.

The signals which related with view update, should process in same loop.
If not, the view looks weird.

To ensure signals process same time, i called "edje_object_message_signal_process" after layout sizing eval called.

@fix

Reviewers: Hermet, cedric, woohyun

Subscribers: id213sin

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-09 07:23:24 +02:00
ChunEon Park 204fb1ae00 index: rename elm_index_priority_set to elm_index_standard_priority_set
this change is also for consistency with elm_toolbar_standard_priority_set
conceptually the priority meaning here is same.
2015-09-08 14:50:53 +09:00
Mike Blumenkrantz 2198490c61 win: fix FAKE window geometry updating + resize object adding
users of this will want the win to automatically match the geometry
of the ee in all cases

fix T2692
2015-09-07 13:06:25 -04:00
ChunEon Park 72d214a21f hoversel: rename api scroll_enabled_set to scrollable_set
modify api for consistency.
scrollable_set is more closed to other similar apis.
2015-09-07 20:41:34 +09:00
Hosang Kim a501148a2f elm_test: Add test case for page scroller
Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
2015-09-04 14:00:11 +09:00
jiin.moon b7310bdb87 elm_image: fix image preload issue
Summary:
There are two issues about preload
1. elm_image_preload_disabled_set api does not work.
    Always returned before call the evas_object_image_preload()

2. image preload does not work at file_set time.
    If image's show property is not TRUE, do not call evas_object_image_preload() at file_set time.
    But there is no action when image's show property will be TRUE after call the file_set api.

@fix

Reviewers: Hermet, jpeg

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

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
2015-09-04 13:51:58 +09:00
Lukasz Stanislawski d75bc6d900 elm_web2: fix build break & warnings after migration to eo callbacks. 2015-09-03 10:29:13 +02:00
Davide Andreoli 5b1ffeac94 Label test: split Slide and Ellipsis in two separate tests
this reveal the ellipsis + markup bug as explained in T2709
2015-09-02 21:51:46 +02:00
Davide Andreoli 5c60ca8555 Label: add support for all the fancy tags already provided for entry
Comes with a simple test

@feature

NOTE FOR THEMERS: you must update your theme to support this!
2015-09-02 20:36:52 +02:00
Yakov Goldberg 265a7a1ccd FileSelector Entry: fix behaviour for events
Fix behaviour for changed, activated, press events.
Forwarders must be set on entry's original events,
so they will call corresponding fileselector entry's callbacks.

@fix
2015-09-02 18:49:06 +03:00
Carsten Haitzler 19e8e05f8b elm map - fix crash on badly handled zoom timeout callback
if sd->obj is null then the a zoom timeout has a null data param and
that means we cant get sd data... so dont set up a zoom timeout unless
sd->obj is valid.

@fix
2015-09-02 19:34:06 +09:00
Carsten Haitzler cf3e5af90e elm map - fix module load craziness loading all elm modules
so elm map loads every module it can find in a recursive dir walk of
all elm modules. this si nuts. this can accidentallly load OLD modules
and thats a recipe for disaster. so check module arch dir aagainst
module arch string to load the right version and be quiet if module
doesn thave the right symbols - it's the wrong module type.

@fix
2015-09-02 19:20:04 +09:00
Davide Andreoli b20526c32e Genlist: add homogeneos mode to the tree test
show tree+homogeneous brackage, as explained in T2708
2015-09-01 20:08:42 +02:00
Davide Andreoli a7bcbeb1b4 Genlist test: cosmetics
* add separator comments between different tests
* keep function definitions on 2 lines
2015-09-01 19:34:43 +02:00
Daniel Zaoui 33d21ca560 FileSelector: fix behaviour when the file is chosen
The wrong event was sent on the Ok file selector button when the file is
chosen, leading to not update the upper layer.

@fix
2015-09-01 11:16:58 +03:00
Amitesh Singh 7caa6d6830 genlist: fix indentation & remove whitespaces 2015-09-01 08:45:38 +05:30
Jaehwan Kim 290e0a4ce5 gengrid: fix crash issue.
Sometimes the focused_item can be null.

@fix
2015-08-31 16:21:57 +09:00
WooHyun Jung 04aa8dc109 naviframe: fix a focus issue when deleting the first item
Summary:
When the first item is deleted, focus should not be reverted back
to an object in the content of the item.

@fix
2015-08-31 16:15:55 +09:00
Hosang Kim 74bd15f5bf scroller: fix page calculation logic when looping is enabled.
Test Plan:
1. elementary_test -> scroller
           2. Lopping in x axis
           3. click prev page or next page

Reviewers: SanghyeonLee, singh.amitesh, Hermet, seoz, cedric, raster, jaehwan

Differential Revision: https://phab.enlightenment.org/D2982
2015-08-28 21:12:30 +09:00
Umesh Tanwar 01117dee6c Scroller: Scroll indicatin arrows should be enable if loop is set.
Summary:
When loop is set, the arrows on horizontal/vertical bar
should not be disabled. These arrows show the scrollable direction,
if enabled. Disabled arrows show no more scroll in that direction.

Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com>

Merge branch 'master' of http://git.enlightenment.org/core/elementary

Test Plan: elementary_test -> scroller -> loop in x axis.

Reviewers: raster, Hermet, singh.amitesh

Subscribers: sachin.dev, SanghyeonLee, eagleeye

Differential Revision: https://phab.enlightenment.org/D2953
2015-08-28 20:40:43 +09:00
Andrii Kroitor a15f83cc49 elm_genlist: fix sub-items prepending
Summary:
fix sub-item position after prepending if parent item has no other
sub-items

Test Plan:
1. add genlist
2. add parent item
3. compare results of following actions:
 case 1: append sub-item "child1" and then prepend sub-item "child2"
 case 2: prepend sub-item "child2" and then append sub-item "child1"

ExR results are the same
CuR in case 2 sub-items are placed in wrong position

Reviewers: cedric, raster, reutskiy.v.v, SanghyeonLee, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2965
2015-08-28 20:18:23 +09:00
Vaibhav Gupta 55b361bcc4 Genlist: Dont select first item if its DISPLAY_ONLY
Summary:
Updated genlist to select first item which is not in
DISPLAY_ONLY mode

@fix

Signed-off-by: Vaibhav Gupta <g.vaibhav1@samsung.com>

Test Plan:
Following is the test to verify:
1. Create a genlist
2. Make 1st item as ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY
3. Now bring the focus to genlist by key down
4. It should bring focus on 2nd item and not 1st.

Reviewers: raster, Hermet, SanghyeonLee, singh.amitesh

Subscribers: sachin.dev

Differential Revision: https://phab.enlightenment.org/D2957
2015-08-28 20:03:35 +09:00
Shilpa Singh 6ec080c400 Elc_Multibuttonentry: Item resize issue on text set
Summary:
When text is set on a multibuttonentry item, item does not resize
again based on text.

Signed-off By: Kumar Navneet <k.navneet@samsung.com>

@fix

Test Plan: Set long text to multibuttonentry item, after item is created and shown.

Reviewers: woohyun, CHAN, Hermet

Reviewed By: CHAN, Hermet

Subscribers: navnbeet

Differential Revision: https://phab.enlightenment.org/D2967
2015-08-28 19:52:17 +09:00
Shilpa Singh 6dc7d1b55f Elc_Naviframe: When push is in progress, block pop until push is complete.
Summary:
When push is in progress, block popping until
push is complete to allow animation to complete.

@fix

Reviewers: Hermet

Subscribers: subodh6129, shashank0990

Differential Revision: https://phab.enlightenment.org/D2966
2015-08-28 18:28:20 +09:00
Hosang Kim b4f525e140 Revert "Elm_Interface_Scrollable: Improvement in looping behavior"
Summary:
This reverts commit bba4c217f2ce4f032fca6298cc8b2fc6ff3d7c19.

"x and y position variable assumes values ranging from min to max " is right.
but in looping behavior, x and y are able to have value bigger than max or smaller than min.

@fix

Test Plan:
1. elementary_test -> scroller
           2. on Loop in X axis
           3. scrolling page to left.
           4. page is moved last page directly.

Reviewers: SanghyeonLee, tanwar.umesh07, raster, cedric, jaehwan, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2977
2015-08-28 18:08:15 +09:00
Amitesh Singh 5483d064c7 test_gengrid: add item_select_on_focus_disabled option in gengrid2 test 2015-08-28 13:59:52 +05:30
Vivek Ellur 870565374a elementary: Port evas object smart callbacks to use eo event callbacks
Summary:
Changed evas_object_smart_callback_add APIs to use eo_event_callback_add API

Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com>

Reviewers: cedric, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2995
2015-08-28 16:30:27 +09:00
Vivek Ellur f75903f81d elm_colorclass: Changed evas object smart callbacks to use eo event callbacks
Summary:
Replaced evas_object_smart_callback_add with eo_event_callback_add api

Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com>

Reviewers: cedric, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2998
2015-08-28 16:16:37 +09:00
Vivek Ellur a26270b439 elm_conform: Port evas smart callbacks to eo
Summary:
Changed evas_object_smart_callback_add functions to eo_event_callback_add functions

Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com>

Reviewers: cedric, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2996
2015-08-28 16:14:31 +09:00
Vivek Ellur a75d307b01 elementary: Port evas smart callbacks to Eo callbacks
Summary:
Changed evas_object_smart_callback_add to eo_event_callback_add functions

Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com>

Reviewers: cedric, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2997
2015-08-28 15:58:54 +09:00
Jee-Yong Um 44db6e1c38 elm_hover: Set min size hint for size and offset spacer before moving or resizing hover
Summary:
Size or offset spacer make hover be able to move its swallows to right positions.
In elm_layout_sizing_eval() for hover, moving and resizing spacers are done
after moving and resizing hover.
It causes in hover's move or resize callback, geometry can not be got correctly.

Reviewers: SanghyeonLee, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2999
2015-08-28 15:56:34 +09:00
woochan lee 08cb9b61fd multibuttonentry: Use elm focus for items instead of evas focus.
Summary:
Item layout will be added in elm focus tree.
evas_object_focus_set is no meaning here for MBE operation.
So i changed focus API from "evas_object_focus_set()" to "elm_object_focus_set()"

elm_object_focus_allow_set() already called in item adding function.

@fix

Reviewers: Hermet, cedric

Differential Revision: https://phab.enlightenment.org/D2993
2015-08-28 15:51:16 +09:00
Vaibhav Gupta 261b0b5328 Gengrid: Fix wrong focus movement in _item_single_select_down
Summary:
The focus movement is wrong when down key press
is done of first item of last row, intsead of
taking the focus out, it moves the focus to next
item (right).

@fix

Signed-off-by: Vaibhav Gupta <g.vaibhav1@samsung.com>

Test Plan:
1. Launch elementary_test -> Gengrid 2 sample
2. Add a few items such that there are 2 items in last row
3. Do a down key press on 1st item of last row
4. Observe focus movement

Reviewers: raster, Hermet, SanghyeonLee, singh.amitesh

Subscribers: sachin.dev

Differential Revision: https://phab.enlightenment.org/D3001
2015-08-28 12:04:49 +05:30
Amitesh Singh 3e6351541f gengrid: fix item looping in case of horizontal mode
This mistake is done in a8afaebf3109f1cb8e397e29
2015-08-28 10:34:52 +05:30
Carsten Haitzler d0e081395f elm win - fix to ensure smart calc is done before show
@fix
2015-08-28 12:20:36 +09:00
Carsten Haitzler b13127532c elm test EXPLODE! feature! explore widgets and their content!
hit ctrl+middle mouse on something...
2015-08-28 12:20:01 +09:00
Davide Andreoli 6df567fa17 Genlist: reset item tree expanded state when putting item in cache
Item expandend state need to be resetted (contracted) when the
item goes in the items cache, otherwise when the item will be reused
it will have unwanted state (expanded).

Quite visible in the "Genlist Tree and Decorate All Mode" test

@fix
2015-08-27 21:40:08 +02:00
Amitesh Singh 0a6e5c64d6 toolbar: fix issue of focus not coming to item on mouse click
resize object was not getting focused in case of mouse click.

Steps to reproduce:
1. elementary_test -to "toolbar focus".
2. set focus to toolbar item via mouse.
3. focus does not come to toolbar.

fixes T2697
@fix
2015-08-26 22:38:37 +05:30
Amitesh Singh 44c8e28698 gengrid: no need to loop in case of reorder mode is enabled
There is no need to loop when reorder mode is enabled. This looks
ugly and nobody wants it. This fault was introduced in 7aaa5c8d0a4a5714b4f1bf79e

This patch also fixes following crash
   1. elementary_test -to "Gengrid 2".
   2. Enable all the options available.
   3. Do reorder of item via keys.
   4. Observe segv on reordering edge items.

@fix
2015-08-26 21:04:36 +05:30
Vincent Torri 51451dc91b Add missing documentation of DirectDraw rendering 2015-08-26 16:25:15 +02:00
Amitesh Singh f0f2e7dcaf gengrid: fix item focus movement in case of horizontal mode
Steps to reproduce:
1. elementary -> gengrid focus
2. change mode to horizontal
3. set focus to one of item in 2nd column.
4. Press Left direction key
issue: focus moves out of gengrid.

@fix
2015-08-26 15:36:39 +05:30
Tom Hacohen 9d5aea4d81 Elm win: Fix according to the new behaviour of parent_set.
This new behaviour was introduced in
9c78ee0bf4.
2015-08-26 10:48:16 +01:00
Amitesh Singh d28822560e gengrid: add curly braces to avoid ambiguous 'if' 2015-08-26 14:38:44 +05:30
Seunghun Lee ea29a24327 elm_win: Initilize the variable 'preferred_rot' as a -1 before invoking _elm_win_xwin_update() in _elm_win_finalize_internal().
Summary:
since the variable 'preferred_rot' is checked its validation in _elm_win_xwin_update(),
so, should be initialize it before invoking.

@fix

Reviewers: jypark, woohyun, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2987
2015-08-25 20:42:17 +09:00
Hosang Kim 176f2ba06a progressbar: fix memory leak
Summary: when elm_progressbar_value_set is called, progress_status is always created.

Test Plan: elementary_test -> progressbar

Reviewers: woohyun, Hermet, cedric, raster

Differential Revision: https://phab.enlightenment.org/D2986
2015-08-25 20:05:57 +09:00
Luciana Magno de Almeida 4517e70a5e cxx: Added examples and tutorial for C++ binding
Summary:
Added the following examples:
* bg_cxx_example_01
* bg_cxx_example_02
* bubble_cxx_example_01
* button_cxx_example_00
* button_cxx_example_01
* calendar_cxx_example_01
* calendar_cxx_example_02
* calendar_cxx_example_03
* calendar_cxx_example_04
* calendar_cxx_example_05
* clock_cxx_example
* datetime_cxx_example
* glview_cxx_example_01
* hoversel_cxx_example_01
* icon_cxx_example_01
* location_cxx_example_01
* menu_cxx_example_01
* popup_cxx_example_01
* radio_cxx_example_01
* separator_cxx_example_01
* slider_cxx_example
* spinner_cxx_example
* table_cxx_example_01
* table_cxx_example_02
* thumb_cxx_example_01

Added documentation for the above examples, as well as how using lambdas
with C++ elm binding. How to use autohide feature and how to use the C++
wrappers to create windows, widgets and call Eo functions from them with
automatic C++ type conversion and how to use signals from C++.
2015-08-25 03:42:34 -03:00
Felipe Magno de Almeida 8c5e840278 Added elm_general.eot file to EXTRA_DIST
Fixes distcheck
2015-08-25 02:37:42 -03:00
ChunEon Park 09b2d01a25 theme: mistypo in 2927b6a37990aec0aa9b325a4727bd11ec526986
c:\. not c:/
2015-08-25 14:07:30 +09:00
ChunEon Park b27d821b82 theme: fix theme file path parsing issue on windows.
':' is usually regarded as the delimetr for new theme path
but it uses to look up the drive, ie, c: on windows, on the other hand.
this patch fixes to determine wheter ':' is used for drive name or delimeter.

@fix
2015-08-25 13:10:33 +09:00
Amitesh Singh fe271ff8e6 scroller: fix memory leak on keys traversal
@fix
2015-08-25 09:35:05 +05:30
Jaehwan Kim bb6ac8852b scroller: fix the misstake. change && -> ||
@fix
2015-08-24 13:38:19 +09:00
Amitesh Singh 1e0b1325fb test_genlist: fix a typo 2015-08-21 09:32:45 +05:30
Seunghun Lee 10f5587cd9 elm_win: set wm rotation hints _elm_win_xwin_update().
Summary:
if app sets available rotations before invoking elm_win_alpha_set(),
wm rotation doesn't work.
this patch fixes it.

Test Plan: N/A

Reviewers: jypark

Reviewed By: jypark

Differential Revision: https://phab.enlightenment.org/D2946
2015-08-20 14:11:55 +09:00
Vaibhav Gupta 040a35aae5 test_scroller: Fix item count variable
Summary:
Since the _count variable is static, the buttons which are added
to scroller, get text value ahead of previously added count, instead
of starting from 1 every time a new window is opened for the example.

Signed-off-by: Vaibhav Gupta <g.vaibhav1@samsung.com>

Test Plan:
Following is the test:
1. Open Scroller 3 sample
2. Add some items and note the "Item count value of added buttons
3. Close the sample
4. Re-open Scroller 3 sample, and again add some items
5. Observe the "Item count" text of added buttons.

Reviewers: raster, Hermet, singh.amitesh

Subscribers: sachin.dev

Differential Revision: https://phab.enlightenment.org/D2959
2015-08-19 12:05:49 +05:30
Amitesh Singh 1cbeca359d genlist: remove unnecessary bracket 2015-08-19 10:11:53 +05:30
Carsten Haitzler 9118eaf19d elm popup - simplify if logic to be more compact and readable 2015-08-18 14:34:30 +09:00
Daniel Juyung Seo a21befa405 popup: Exceptionally set since as 1.15.1
This is exceptionall case.
This was not pushed to 1.15 but has to be pushed to 1.15.1 due to a
significant popup bug.
2015-08-18 01:22:20 +09:00
Daniel Juyung Seo 3214aad129 test_table: Add variable padding config in the padding test. 2015-08-18 01:21:36 +09:00
Daniel Juyung Seo 6427c01671 popup: Fix wrong since version in the doc. 2015-08-18 00:32:09 +09:00
Daniel Juyung Seo 6c8356dcd9 spinner: Remove unnecessary temporary variable.
Follow elm_layout_theme_set usage convention.
2015-08-18 00:20:04 +09:00
Stefan Schmidt 4557dd9ab8 multibuttonentry: check return value from elm_layout_theme_set
CID: 1294253
2015-08-17 13:32:14 +02:00
Daniel Hirt efa7d7ebe7 Entry: fix cursor repositioning on theme_apply
Summary:
The original code did not consider the case where the text will be
reapplied by chunks. The repositioning of the cursor should be postponed
to when the idler work is done, or not required at all.
Fixes T2646.
@fix

Reviewers: NikaWhite

Reviewed By: NikaWhite

Maniphest Tasks: T2646

Differential Revision: https://phab.enlightenment.org/D2952
2015-08-17 08:34:21 +03:00
Amitesh Singh ba17c89488 popup: fix content_area resize in case of custom theme
Send elm,scroll,enable/disable signals in theme_apply.
It is a fix of 0891ac5cfc2710d0c89034
Thanks to Dave for reporting this issue.
2015-08-16 00:28:03 +05:30
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
Amitesh Singh fecd577f28 popup: make scroller optional in popup
Summary:
@feature

Resolves: T2651

Test Plan:
1. elementary_test -to "popup"
2. Enable/disable checkbox named "Enable popup scoller"

Reviewers: raster, herb, herdsman, SanghyeonLee, tasn, simotek, cedric, jeffhoogland

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D2945
2015-08-15 21:02:34 +05:30
Cedric BAIL bd6aed3783 view_list: small optimization reducing memory consumption using Eo_Event array of callbacks.
Now that smart callback have been converted to Eo_Event to, there is a lot of place in
our code base where we can do this easy memory optimization.
2015-08-15 12:43:05 +02:00
Jaehwan Kim 3ea0d46fe8 focus: add the comment about focus origin property. 2015-08-14 23:59:06 +09:00
Anand e69b0fb210 elm_gengrid:Added Eolian changes in gengrid reorder Api
Summary:
Modified gengrid reorder Api's(elm_gengrid_reorder_mode_start, elm_gengrid_reorder_mode_stop,
elm_gengrid_reorder_type_set) in Eolian format.

Test Plan: elementry_test->gengrid->gengrid_focus

Reviewers: seoz, raster, Hermet, JackDanielZ

Subscribers: cedric, JackDanielZ, mvsovani, singh.amitesh, sachin.dev

Differential Revision: https://phab.enlightenment.org/D2510
2015-08-14 09:40:18 +03:00
Yeshwanth Reddivari 7251a154f9 Gengrid: Set focus after item looping
Summary:
After item looping, Gengrid item was getting selected.
So, checked for item_select_on_focus_disable flag and
accordingly set focus state or selected state of Gengrid item.

@fix

Signed-off-by: Yeshwanth Reddivari <r.yeshwanth@samsung.com>

Reviewers: raster, Hermet, singh.amitesh, SanghyeonLee

Subscribers: sachin.dev

Differential Revision: https://phab.enlightenment.org/D2937
2015-08-14 11:20:30 +05:30
Mike Blumenkrantz 5c4ab5d971 cnp: redo wayland drop to nul terminate for text_uri drops and free on every drop
@fix
2015-08-13 15:46:14 -04:00
Jérémy Zurcher f1e9d33bb6 win: declare elm_win_wm_rotation_available_rotations_set
this should not have been removed in a0fdbad
2015-08-13 21:44:25 +02:00
Mike Blumenkrantz 8478b6b84a cnp: only nul terminate wayland drops for text type drops
also move data allocation into block where dropping is guaranteed

@fix
2015-08-13 15:27:14 -04:00
Mike Blumenkrantz a598a75444 cnp: end wayland drag on allocation failure
@fix
2015-08-13 15:18:55 -04:00
Mike Blumenkrantz b46ef28fda cnp: pass wayland drop event size to handler, do not nul terminate drop data
performing strlen() on potential non-string data is not recommended and can
even lead to crashes. nul terminating non-string data is pointless and enables
bad application behavior such as calling strlen() on potentially non-string data

@fix
2015-08-13 15:10:52 -04:00
Mike Blumenkrantz 3096e62408 cnp: fix wayland drop format selection
previously the drop format was chosen in a manner unrelated to what
the offered format was, leading to applications receiving either the correct
data with the wrong format, the wrong data with the wrong format, or
the wrong data with the correct format. by comparing the drop handler
types with the offered type and ensuring that there is a match, the
correctness of the format that the application receives is more reliable

@fix
2015-08-13 14:53:52 -04:00
Mike Blumenkrantz 2ace38aba0 cnp: initialize Elm_Selection_Data.action for wayland drops
wayland drops are probably always copy, though there's no real functional
equivalent for the x11 meaning of this

@fix
2015-08-13 14:53:52 -04:00
Mike Blumenkrantz d343487f94 cnp: init wayland dnd handlers upon creating the first drop target
previously this would only init when the app was initiating the drag,
which would result in an app being unable to receive drags

@fix
2015-08-13 14:53:52 -04:00
Daniel Kolesa e69bd0ec1b win: convert docs
With this, documentation conversion in elm is complete.
2015-08-13 16:46:57 +01:00
Daniel Kolesa 84fcf40c56 gengrid: convert docs 2015-08-13 16:05:38 +01:00
Daniel Kolesa cddca56dc1 layout: convert docs 2015-08-13 14:21:49 +01:00
Jaehwan Kim 1bc01460c4 focus: item focus moves by geometry.
In the widget code, focus origin is added. It can know
the focus movement is originated by which action.
The widgets can choose the item focus moves to last focused item
or geometrically nearby item by focus origin.
In gengrid, focus moves to last focused item if focus origin is
ELM_FOCUS_REVERT. It moves to nearby item if focus origin is from
ELM_FOCUS_UP to ELM_FOCUS_LEFT.

TODO: widgets have items should add the direction feature if it
want the focus to move to nearby item.

@feature
2015-08-13 13:58:04 +09:00
Jaehwan Kim 085734310a test_gengrid: change the min size of gengrid 2015-08-13 13:33:50 +09:00
Amitesh Singh 19fa47b95f entry: fix since tag for entry_input_panel_show_on_demand_set() 2015-08-12 23:43:29 +05:30
Daniel Kolesa 8786685991 map: convert docs 2015-08-12 17:12:24 +01:00
Chris Michael a9ede4a9fd elementary: Fix Copy and Paste test to actually paste clipboard text
Summary: The Elm Copy and Paste test was not actually pasting the
copied text into the entry when the Paste button was clicked. This
patch fixes that issue.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-08-12 10:18:41 -04:00
Daniel Kolesa 01b523d944 datetime: convert docs 2015-08-12 13:45:30 +01:00
Daniel Kolesa 83fca6423b web: convert docs 2015-08-12 12:45:31 +01:00
Daniel Kolesa 6d805b731e genlist_item: convert docs 2015-08-12 12:22:14 +01:00
Jaehwan Kim b3a86fc230 focus: add the focus region show mode
When the focus is move to the object in scroller, it is scrolled
to show the focus region as a widget.
If the focus region want to be shown as an item,
set the mode ELM_FOCUS_REGION_SHOW_ITEM.
If then, it will be scrolled as an item.
TODO: Widgets have items are added on_focus_region function.

@feature
2015-08-12 17:30:44 +09:00
Davide Andreoli 0aa54f3756 Fix docs for elm_object_tooltip_orient_set
The function is not visible in docs,
this should make it visible
2015-08-12 09:17:56 +02:00
Jaehwan Kim e9afa67f2b gengird: change focus move mechanism in gengrid.
This commit is related to 4d553d2bcf2157053433994ca3facb56bd670da9.
It doesn't work if item_select_on_focus_disable is 1.
So _item_focus_down is changed like _item_single_select_down.

@fix
2015-08-12 11:09:17 +09:00
Daniel Kolesa 25eb9e69ee slider: convert docs 2015-08-11 16:57:08 +01:00
Daniel Kolesa 37e81db584 toolbar_item: convert docs 2015-08-11 15:27:06 +01:00
Tom Hacohen 0ebe02213b Toolbar: migrate docs. 2015-08-11 14:46:55 +01:00
Jyotiprakash Sahoo 078185b2cb gengrid: extends D2418 to horizontal mode.
Summary:
do not return yet in case of edge items if looping
is disabled. try to select/focus last item.

Signed-off-by: Jyotiprakash Sahoo <jp.sahoo@samsung.com>

@fix

Test Plan: elementary_test -> Gengrid 2

Reviewers: raster, singh.amitesh, cedric, SanghyeonLee

Reviewed By: SanghyeonLee

Differential Revision: https://phab.enlightenment.org/D2865
2015-08-11 22:10:09 +09:00
Jaehwan Kim a905e7a33b scroller: fix the focus move bug in scroller.
When the focused object is out of the viewport and the key direction
is only the direction focus is out, it should find the next focus.

@fix
2015-08-11 20:53:14 +09:00
Tom Hacohen d2339321e4 Interface scrollable: migrate docs. 2015-08-11 12:48:37 +01:00
Tom Hacohen 3d6524d8bf List: migrate docs. 2015-08-11 09:02:09 +01:00
Tom Hacohen 3925b5cfd5 Multibutton entry: migrate docs. 2015-08-11 08:35:55 +01:00
Mike Blumenkrantz 31a5766018 cnp test: add callback to print info when paste button is clicked 2015-08-10 16:22:23 -04:00
Mike Blumenkrantz 1092fe5363 cnp: add docs for Elm_Selection_Data members 2015-08-10 16:22:23 -04:00
Tom Hacohen 391addedee Image: migrate docs. 2015-08-10 18:37:13 +01:00
Tom Hacohen 0437f1137c Prefs: migrate docs. 2015-08-10 15:00:27 +01:00
Tom Hacohen de3682a7d0 Spinner: migrate docs. 2015-08-10 14:17:49 +01:00
Tom Hacohen c6b0b53afd Genlist: migrate one missing doc string. 2015-08-10 12:51:51 +01:00
Tom Hacohen 48142c11e2 Gengrid item: migrate docs. 2015-08-10 12:51:00 +01:00
Davide Andreoli b937433374 Add a new (failing) test for table padding
This test expose a bug in table as explained in T2655
2015-08-09 18:59:14 +02:00
Davide Andreoli fd95ba8362 Add a no-wrap mode to the "Entry Style Default" test
I'm trying to reproduce an issue, not spotted by this,
but can still be usefull.
2015-08-08 17:08:45 +02:00
Daniel Kolesa 74ae853fd4 glview: convert docs 2015-08-07 15:55:01 +01:00
Tom Hacohen fe7b26ab54 Progressbar: migrate docs. 2015-08-07 15:49:14 +01:00
Daniel Kolesa 9a46fbfc23 genlist: convert docs 2015-08-07 15:47:40 +01:00
Tom Hacohen c6c22e2f07 Segment control: migrate docs. 2015-08-07 15:36:47 +01:00
Tom Hacohen f308423f1a Index: migrate docs. 2015-08-07 15:19:21 +01:00
Tom Hacohen fc10f955dd Widget item: migrate docs. 2015-08-07 15:04:48 +01:00
Tom Hacohen 84e5b5f0ef Inwin: migrate docs. 2015-08-07 15:04:48 +01:00
Daniel Kolesa 7f66232f23 gesture_layer: convert and fix docs 2015-08-07 14:44:58 +01:00
Tom Hacohen 279af85a61 Interface atspi image: migrate docs. 2015-08-07 14:31:03 +01:00
Tom Hacohen 071a5dd3d5 Interface atspi value: migrate docs. 2015-08-07 14:31:03 +01:00
Tom Hacohen 7ecf91186d Interface atspi selection: migrate docs. 2015-08-07 14:31:03 +01:00
Tom Hacohen a494b4c122 Interface atspi component: migrate docs. 2015-08-07 14:31:03 +01:00
Tom Hacohen f052cd9d9c Interface atspi action: migrate docs. 2015-08-07 14:31:03 +01:00
Tom Hacohen dc120ad628 Interface atspi text: migrate docs. 2015-08-07 14:31:03 +01:00
Daniel Kolesa 7493310eb5 popup: convert docs 2015-08-07 14:24:45 +01:00
Tom Hacohen 5c32c34045 Widget: migrate docs. 2015-08-07 14:16:55 +01:00
Tom Hacohen 0cca6007f9 Label: migrate docs. 2015-08-07 14:11:09 +01:00
Daniel Kolesa 4b9f1ebedd table: convert docs 2015-08-07 14:08:01 +01:00
Daniel Kolesa 72db46ce9e slideshow: convert docs 2015-08-07 13:50:21 +01:00
Daniel Kolesa abee9b89f2 flip: convert docs 2015-08-07 13:30:50 +01:00
Tom Hacohen b34db8299f Naviframe: migrate docs. 2015-08-07 13:30:05 +01:00
Tom Hacohen 4f2e5d6c11 Interface fileselector: migrate docs. 2015-08-07 13:19:35 +01:00
Vivek Ellur 70ba901aa2 elm_entry: Convert eo docs to new format
Summary:
Changed elm_entry.eo docs to the new format

Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com>

Reviewers: cedric, q66

Reviewed By: q66

Differential Revision: https://phab.enlightenment.org/D2924
2015-08-07 13:04:27 +01:00
Amitesh Singh 248b6beeee intf scroll: handle wheel logic in post event cb.
Summary:
@Fix

Resolves: T2216

Reviewers: seoz, raster, JackDanielZ, Hermet

Reviewed By: Hermet

Subscribers: cedric, eagleeye, SanghyeonLee, seoz, sachin.dev

Maniphest Tasks: T2216

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

Conflicts:

	src/lib/elm_interface_scrollable.c
2015-08-07 17:34:20 +09:00
woochan lee 23d5820468 spinner: Add to support spinner value %d format.
Summary:
When user set min max as 50, 150 with %d format, then value set as 100.
The spinner value set as '0'
Because the sd->val type is double.
Spinner entry has same problem.

@fix

Test Plan:
Set spinner format as %d.
Check the spinner value.
It's not supported.

Reviewers: Jaehyun_Cho, cedric, Hermet

Reviewed By: Hermet

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

Conflicts:

	src/lib/elm_spinner.c
2015-08-07 17:02:39 +09:00
Sung-Taek Hong a8a79fd828 elm_toolbar: fix icon_size to consider edje base scale
Summary:
When icon is set, icon size is calculated without considering
edje base scale. This can lead to a miscalculation when
base scale is set other than 1.0.
@fix

Reviewers: seoz, woohyun, cedric, Hermet

Reviewed By: Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2798
2015-08-07 16:42:30 +09:00
ChunEon Park 89709482b2 win: remove usage of deprecated api. 2015-08-07 15:30:49 +09:00
ChunEon Park 30a3a152b1 win: code refactoring.
simplify code.
2015-08-07 15:29:49 +09:00
Youngbok Shin 7ba3140373 multibuttonentry/spinner: Fix memory leak when eina_strbuf_string_steal is misused.
Summary:
_elm_access_say() does not free the given text.
But, the text from eina_strbuf_string_steal() is not cared
from outside of _elm_access_say(), too.
It should be changed to eina_strbuf_string_get().

Test Plan: N/A

Reviewers: cedric, woohyun, kimcinoo, JackDanielZ, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2918
2015-08-07 15:15:45 +09:00
ChunEon Park 84c481a75f config: add missing since tag in doc. 2015-08-07 15:11:59 +09:00
jiin.moon de3fa2c676 elm_win: add new condition about engine set when generate the elm_win object
Summary:
Calling the elm_config_accel_preference_get api with "none" as parameter,
it means user does not want to use acceleration.

Reviewers: Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2920
2015-08-07 15:10:03 +09:00
Stefan Schmidt a1543bcf4e tests: Correct ATSPI role check for popup.
ctxpopup is using ELM_ATSPI_ROLE_POPUP_MENU while the normal popup uses
ELM_ATSPI_ROLE_NOTIFICATION.

ref T2028
2015-08-06 19:38:59 +02:00
Stefan Schmidt 07aa742513 elm_module: Load not installed modules from build dir with ELM_RUN_IN_TREE
If we want to run from the local build dir without make install before
elm_module would fail to load the modules as it is expecting them in the
final install location.

We can now change this by setting ELM_RUN_IN_TREE to force it load the not
yet installed modules.

ref T2028
2015-08-06 19:38:58 +02:00
Stefan Schmidt 1bcc441f2f tests/build: Make sure tests are finding the theme file
Our tests require a theme file. So far they picked this just from the system
where it was installed to in a previous run. We have situations where this would
not work though. Running make check before install on a new system or during
distcheck comes to mind.

With AM_TESTS_ENVIRONMENT we make that the theme is also looked for in the not
yet installed builddir.

Thanks to Lukasz Stanislawski for pointing me to this.

ref T2028
2015-08-06 19:38:58 +02:00
Tom Hacohen d4cfcbdad3 Eo files docs: replace all @c/@p with $.
This is part of the new syntax.
2015-08-06 15:12:31 +01:00
Tom Hacohen bc8730acee Eo files: Replace all occurances of EINA_TRUE/FALSE to true/false. 2015-08-06 15:11:22 +01:00
Tom Hacohen 94eca6c747 Elm segment control item: migrate docs. 2015-08-06 15:09:51 +01:00
Tom Hacohen a8d6564f2e Elm index item: migrate docs. 2015-08-06 15:09:45 +01:00
Tom Hacohen 7dbbbca898 Elm slideshow item: migrate docs. 2015-08-06 14:56:47 +01:00
Tom Hacohen 46fc75210b Atspi accessible: migrate docs. 2015-08-06 14:53:50 +01:00
Tom Hacohen e77b152bd8 Atspi widget action: migrate docs. 2015-08-06 14:52:01 +01:00
Tom Hacohen e5e74eb856 Hoversel item: migrate docs. 2015-08-06 14:48:25 +01:00
Tom Hacohen 801b4d1195 Hoversel: migrate docs. 2015-08-06 14:47:09 +01:00
Tom Hacohen bbb2d91891 Eo files: Use Elm.Widget_Item instead of Elm_Object_Item.
This is the correct Eolian type. Elm_Object_Item is dead.
2015-08-06 14:30:34 +01:00
Tom Hacohen f5fd3d1701 Multibuttonentry item: Migrate docs to new eolian format. 2015-08-06 14:25:44 +01:00
Jaehyun Cho 3ba29fc402 elm_config: Add flag to control pushing naviframe prev button automatically.
It is decided that the naviframe prev button is automatically pushed or not
by the flag "naviframe_prev_btn_auto_pushed" in config.

@feature
2015-08-06 15:27:56 +09:00
Daniel Hirt 4fc69f0f44 entry: Add null safety check in _elm_entry_entry_paste function.
Summary: Add null safety check for the given text.

Reviewers: tasn, woohyun, thiepha, herdsman

Reviewed By: herdsman

Subscribers: thiepha, JackDanielZ

Differential Revision: https://phab.enlightenment.org/D2868
2015-08-06 09:12:24 +03:00
Daniel Kolesa 8b4fab0196 mapbuf: convert docs 2015-08-05 12:01:44 +01:00
Daniel Kolesa 8859053a0a menu: convert docs 2015-08-05 11:49:28 +01:00
Daniel Kolesa e801937cea list_item: convert docs 2015-08-05 11:44:39 +01:00
Daniel Kolesa c79fdab884 naviframe_item: convert docs 2015-08-05 11:38:55 +01:00
Daniel Kolesa 34f3771a79 hover: convert docs 2015-08-05 11:31:06 +01:00
Amitesh Singh 87e841d7b7 test_popup: set popup content correctly
internal object content_area was not swallowed into popup
since elm_object_part_content_set() was used.

Steps to reproduce:
1. clouseau elementary_test -to popup
2. open subpopup example.
3. observe orphan content_area object in clouseau widget list.
2015-08-05 15:07:08 +05:30
Daniel Zaoui 70ea7962f9 Tooltip: reset content delete callback directly after invocation
The deletion of the content object can lead to invoke the delete
callback twice.

@fix
2015-08-05 10:41:38 +03:00
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
Jaehwan Kim aee3de2306 focus: add del callback always.
When the window treats focused object, it should always check
that it is deleted.

@fix
2015-08-05 14:48:20 +09:00
Amitesh Singh 7c0246c870 popup: fix resize issue in case of custom part text set
@fix
2015-08-04 21:22:39 +05:30
Cedric BAIL c6c4f23c04 examples: fix attrib name due to change in Evas Canvas3D API. 2015-08-04 16:49:45 +02:00
Shilpa Singh 190c774d04 mbe: remove unnecessary keypad hide call from multibuttonentry.
Summary:
When editable set is set to FALSE, there is no need to specifically
hide the keypad as keypad will automatically hide when entry is hidden.

@fix

Signed-off By: Kumar Navneet <k.navneet@samsung.com>

Reviewers: woohyun, Hermet, CHAN, cedric

Reviewed By: cedric

Subscribers: subodh6129, navnbeet

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 16:49:45 +02:00
Sung-Taek Hong 97d3b02a49 elm_colorselector: modify to select no item when create colorselector
Summary:
Currently, the first item is marked selected when
the colorselector is added. However, this is not normal behavior
since the first item is not shown selected.
Moreover, always selecting the first item during creation does not
sound natural.

Reviewers: cedric, Hermet, woohyun

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 16:49:44 +02:00
j_yong.hwang e6723de0b2 elm_macros: fix for lack of precision with double due to order of operation.
Summary:
The numerical formula below is calculated with the double type.
-> ELM_SCALE_SIZE(x) (int)(((double)(x) / elm_app_base_scale_get()) * elm_config_scale_get())

But if number of significant figure of the return value goes over 15, the epsilon error will happen.
Because of that, it is better to divide to do later.

Reviewers: woohyun, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 16:49:44 +02:00
woochan lee c54f765ec9 index: fix index object got a wrong min value.
Summary:
The evas box swallowed in "elm,swallow,index" part.
Then the each index item will be appended into evas_box when elm_index_go called.

If user make the line or dot for that swallow part for resize same as internall box.
edje_size_min_calc always give the '0'value for it.

Box will be swallowed the only on swllow part for desicion index layout size.
So the index min value should follow the box size.

Test Plan:
Run any index sample.
Get the index min size and check the value.
It gets always wrong before.

Reviewers: cedric, Hermet, woohyun

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 16:49:44 +02:00
woochan lee 79242eb4cc multibuttonentry: item object scale set is not need when theme applied.
Summary:
An item size calculated with scale value when item appended.
This code is not need.

@fix

Reviewers: Hermet, woohyun, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 16:02:29 +02:00
woochan lee e22bf93a67 index: add index item priority APIs for support multilingual
Summary:
I add the APIs for supporting multi language on index.

"elm_index_item_priority_set()" API can give the priority value for each item.
it will be grouping with each priority items when index start to draw the item.
It can get a 0 or 1 (default : -1) -1 priority item show always even priority changed.

"elm_index_priority_set()" API can changed the current priority in manually.
priority will be up automatically when user send move event into last of priority 1 group item.
otherwise, priority will be down automatically when user send move event into first of priority 0 group item.

"elm_index_priority_get()" API can get a current index priority.
@feature

Test Plan:
I added the test application in test_index with give the name as "test_index3"
(It's for only show how to handle the priority APIs and show the how does it works for multi language
so it doesn't operate with genlist.)
You can check the how it works and how APIs works for it as well.

Reviewers: eunue, seoz, woohyun, Hermet

Subscribers: SanghyeonLee, eagleeye

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 15:56:53 +02:00
Jee-Yong Um a249d77d1d elm_hoversel: add elm_hoversel_scroll_enabled_set/get() API
Summary:
Currently, hoversel shows all items at the same time, but to limit
the size of contents and make it scrollable is neccesary to some users.
elm_hoversel_scroll_enabled_set/get() API makes the contents of hoversel
scrollable or not.

Test Plan:
The newly added scroll function is enabled for the second hoversel
in "hoversel" sample of elementary_test.

Reviewers: Hermet, raster, herdsman, cedric, tasn

Subscribers: JackDanielZ, cedric, Hermet

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 15:51:39 +02:00
j_yong.hwang e42264e1af elm_theme: string function change for the exceptional file name
Summary:
If name of theme has ".",example "abc.def.edj", it would fail to check the file name.
So, I changed the strchr functions to strrchr function.

Reviewers: seoz, raster, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 15:39:39 +02:00
Amitesh Singh deeace9377 genlist: port "changed" evas smart callback to Eo. 2015-08-04 15:21:40 +02:00
SangHyeon Lee d29a12d187 genlist: Refactoring genlist item cache logics.
Summary:
This patch is code refactoring for genlist item cache logic
as same as gengrid item cache and removing unnecessary
Item_Cache properties.
{selected, disabled, expanded} exist in Item_Cache,
but _item_cache_find ignore those flagged properties,
so _elm_genlist_item_status_update will not working with
itc properties(all itc properties are EINA_FALSE).

Test Plan: Need to check elementary_test genlist sample working properly.

Reviewers: raster, Hermet, seoz, jaehwan, cedric

Reviewed By: cedric

Subscribers: cedric, singh.amitesh, eagleeye

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 15:21:40 +02:00
Woochan Lee 8ca5d9c333 multibuttonentry: add horizontal, vertical padding between items.
Summary:
There is no way to give padding between each items, previously.
So i added horizontal, vertical padding here.

I will add APIs for set, get padding size set, get.

@feature

Test Plan:
Change the horizontal, vertical paddidng value in multibuttonentry.edc
Run elementary_test
Execute multibuttonentry sample.
Add items.
Check the padding between items.

Reviewers: woohyun, seoz, Hermet, raster

Reviewed By: Hermet, raster

Subscribers: raster

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 15:21:40 +02:00
Subhransu Mohanty 67844a781c radio: add "elm,activate,radio,on" and "elm,activate,radio,off" signal to support value change animation.
Summary:
Currently when user clicks on the radio, and when api value_set() called by
the developer we emit "elm,state,radio,*" signal. To support value change animation when
user interacts with radio. There is no way to distinguish the action in EDC.
This "elm,activate,radio,*" is a way which edc can make use to distinguish the state change signal
by the user action or due to api call.

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 15:21:40 +02:00
Subhransu Mohanty 427ffbc1b3 check: add "elm,activate,check,on" and "elm,activate,check,off" signal to support state change animation.
Summary:
Currently when user clicks on the checkbox, and when api state_check() called by
the developer we emit "elm,state,check,*" signal. To support state change animation when
user interacts with check box. There is no way to distinguish the action in EDC.
This "elm,activate,check,*" is a way which edc can make use to distinguish the stae change signal
by the user action or due to api call.

Reviewers: woohyun, raster, cedric, Hermet

Reviewed By: Hermet

Subscribers: id213sin

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 15:21:40 +02:00
Lukasz Stanislawski 456ea179bb hoversel: add key binding for widget activation
Test Plan:
1. Install previous version of elementary
2. Remove config from homedir
3. Build new config with elemetnary_config app
4. Install patched version of elementary
5. run elementary_test Hoversel test
6. Space end Enter should open hovesel

Reviewers: seoz, jaehwan, singh.amitesh, cedric

Reviewed By: cedric

Subscribers: seoz

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 15:21:39 +02:00
SangHyeon Lee ddc73095b2 genlist: add SIG_CHANGED("changed") smart callback in genlist.
Summary:
SIG_CAHANGED notify user to
genlist is now changed their items and properties and all
calculation is finished, so user can get correct values in
that callback.

This SIG_CHANGED smart callback already supported in gengrid.

Test Plan:
N/A
This patch is addition of new smart callback.

Reviewers: raster, seoz, singh.amitesh

Subscribers: Hermet, cedric, eagleeye

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 15:21:39 +02:00
woochan lee fcce7736d8 spinner: entry text makes to registered special value instead of number.
Summary:
Entry has only number text when activated and value changed, Even user registered special value to each spinner value.
If the user registered special value, we should check then showing the special value instead of number text.
Its will more helpful to expect the result when user set a spinner value using spinner entry.

@fix

Test Plan:
There is a spinner sample in elementary_test.
Changing editable value as TRUE for the last spinner object.
Click the spinner to activated entry and check the result.

Reviewers: Hermet, Jaehyun, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 15:21:39 +02:00
Amitesh Singh b9e915dbe8 test_popup: add popup with content area only example 2015-08-03 22:55:51 +05:30
Amitesh Singh ee7ffb9fe6 test_cnp: remove explicit type castings.
In C, the explicit typecasting is not required.
2015-08-03 21:34:09 +05:30
Nicolas Aguirre da2ecb5fff Revert "Adds eglfs support"
This reverts commit de52ee0192b5b6d8ad542fb2fd9e4185b39b6518.
2015-08-03 14:39:54 +02:00
Nicolas Aguirre 3ef8e44493 Revert "Removes ELM_CHECK_BACKEND[EGLFS] which searches for an ecore-eglfs"
This reverts commit aff92d581ed052413aa36785a9291e47315eb518.
2015-08-03 14:39:38 +02:00
Florent Revest 2ac6f86eb2 Removes ELM_CHECK_BACKEND[EGLFS] which searches for an ecore-eglfs 2015-08-03 14:20:41 +02:00
Florent Revest 91095b93f3 Adds eglfs support 2015-08-03 14:20:40 +02:00
Amitesh Singh 667ec47586 popup: fix resize issue when action area and title area is absent.
Summary:
set scroller size in content_set.

Resolves: T2623
@fix

Test Plan:
1. run ecrire
2. Add some text in newfile
3. Close ecrire
4. a almost zero size popup.

Reviewers: tasn, herdsman, raster, SanghyeonLee, stefan_schmidt

Reviewed By: stefan_schmidt

Subscribers: stefan_schmidt, herb, seoz

Maniphest Tasks: T2623

Differential Revision: https://phab.enlightenment.org/D2901
2015-08-03 10:28:55 +01:00
ChunEon Park 69441625b1 prefs: add empty field to avoid build warning.
this addition is a trick to avoid g/gcc compile warning.
warning: empty struct has size 0 in C, size 1 in C++.
2015-08-03 13:56:01 +09:00
Amitesh Singh ad5d9e23d4 test_disable: rename window name & title according to test name 2015-08-01 23:41:53 +05:30
WooHyun Jung 8da6c9cdda colorselector: fixed up the selected process
When mouse moves out of the color item area,
mouse up should not give selected smart callback.

@fix
2015-08-01 13:15:05 +09:00
Tom Hacohen a9b60ec124 panes: Migrate docs to new Eolian format. 2015-07-31 16:16:13 +01:00
Daniel Kolesa 077339bce1 grid: convert docs 2015-07-31 15:46:21 +01:00
Daniel Kolesa 61a9917a3d menu_item: convert docs 2015-07-31 15:23:56 +01:00
Daniel Kolesa 5bb43d7edf panel, pan: convert docs 2015-07-31 15:17:40 +01:00
Daniel Kolesa a07c213e59 plug: convert docs 2015-07-31 15:14:34 +01:00
Daniel Kolesa 73223214fb photocam: convert docs 2015-07-31 15:12:30 +01:00
Daniel Kolesa c3c4c660fb thumb: convert docs 2015-07-31 15:00:58 +01:00
Daniel Kolesa 3e17ecc315 view_form, view_list: convert docs 2015-07-31 14:50:24 +01:00
WooHyun Jung e20662fb9d diskselector: return when the new item is NULL 2015-07-31 19:03:21 +09:00
Amitesh Singh 7bbfe4b1b3 cnp: use ELM_SAFE_FREE 2015-07-31 11:12:53 +05:30
Amitesh Singh 64901de655 test_hoversel: add example of setting focus to item 2015-07-31 09:18:23 +05:30
Chris Michael fd28ad3824 elementary: Fix calls to ecore_wl_window_update_location
Summary: This fixes a build break from previous commit

NB: Note to self: COMPILE FIRST !!

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-30 15:32:37 -04:00
Chris Michael 8631845083 elementary: Call ecore_wl_window_update_location function when opaque region gets updated
Summary: This fixes T2624 where ecore_wl_window_update_location was
being called inside the Ecore_Evas too often. It is now only called
from the Elementary window whenever we update the opaque region. This
should help to fix the resize issue that we are seeing in wl.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-30 15:26:39 -04:00
Amitesh Singh bff68b156a hoversel: use elm_object_focus_set to set focus on subobjects.
We should steal the focus while setting focus to subobjects from parent.
This issue is reproducable in case of setting focus on one of items of hoversel
on expanded cb of hoversel.

@fix
2015-07-30 16:10:47 +05:30
Subodh Kumar 85e55ed89d elm: simulate the clicked event over the object only.
Summary:
Two different behaviour are observed with clicked event.
1. When scroller is not present:
   a. Mouse down over object,
   b. mouse move outside the object
   c. mouse up, clicked happens
2. When scroller is  present:
   a. Mouse down over object,
   b. mouse move outside the object
   c. mouse up, clicked NOT happens

So clicked callback should happen over the object only i.e when mouse move out of the objcet clicked should be ignored, and behaviour will be consistent

@fix

Test Plan: NA

Reviewers: shilpasingh, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-07-29 21:18:20 +02:00
Cedric BAIL 9d40fa4cb8 elm_radio: remove implementation of elm_widget_disable as it doesn't do anything else than calling parent virtual function. 2015-07-29 20:23:37 +02:00
Sung-Taek Hong 5dc84fb1c7 elm_radio: enable state change when radio is disabled
Summary:
Currently, radio is set EINA_FALSE when radio is disabled.
This causes unexpected behavior when the radio is selected and
get disabled. Using elm_radio_value_get() API will return
the value of disabled radio. This is not consistent with setting
EINA_FALSE when radio is disabled. Thus, disabled radio should
also have selected and unselected states.

Reviewers: woohyun, smohanty, Hermet, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-07-29 20:20:23 +02:00
Daniel Kolesa 4674aa3a7c label: convert to int first (avoid compiler warning) 2015-07-29 15:33:33 +01:00