Commit Graph

12503 Commits

Author SHA1 Message Date
Subodh Kumar d3deb1e6a7 Elm entry: Fix selection using handlers.
Summary:
Fix item selection using selection handler

In case of selection using handler, there is a problem in case the entry
has the item, mouse down over handler consider the current down
coordinate to start selection and it becomes very difficult to select in the
situation shown in the test plan. So I consider the next/previous  line
geometry to fix it.

@fix

Test Plan:
1.Enable selection handler
2. Have a look at the setup in the attached image
{F27396}

3. Start selecting from last item and extent to cover the last text.
4.Observe that its impossible to select the last text until you move mouse out of the window
So, in mobile device its almost impossible to select using handlers in this situation.

Please use the attached application to test it.
{F27402}

Reviewers: thiepha, herdsman, tasn

Reviewed By: tasn

Subscribers: shilpasingh

Differential Revision: https://phab.enlightenment.org/D3479
2016-02-02 10:22:30 +00:00
Subodh Kumar 02332b5b3d Elm entry: Use edje api and simplify empty check logic
Summary: Use edje api and simplify empty check logic

Test Plan: NA

Reviewers: herdsman, tasn

Reviewed By: tasn

Subscribers: shilpasingh, cedric

Differential Revision: https://phab.enlightenment.org/D3505
2016-02-02 10:22:30 +00:00
Stefan Schmidt b509610c9f configure: Switch to dev mode again. Merge window for 1.18 is now open. 2016-02-02 11:19:42 +01:00
Stefan Schmidt 7a3468416d release: Update NEWS and bump version for 1.17.0 release 2016-02-02 10:48:10 +01:00
Stefan Schmidt 5ca0c82de3 theme: make sure vertical_separated_bar_disabled.png lands in the dist tarball
A ix for commit 186aeb42eb7e97c07a58a30aafbca5d05c4e2302 which introduced the
image but did not made sure it gets shipped.
2016-02-01 22:48:33 +01:00
Hermet Park d8e157771e layout: test code refactoring.
remove a comment.
pass immediate parents.
remove unnecessary show call.
2016-02-01 22:37:22 +09:00
Jean-Philippe Andre a908bd3646 genlist test: fix invalid free on window close 2016-02-01 20:48:21 +09:00
Jean-Philippe Andre a497b4d225 genlist/gengrid: Fix focus hilight error
The error was due to an invalid cast between real data and Eo ptr.
Thanks @DaveMDS for reporting.

Fixes T3122

@fix
2016-02-01 15:13:30 +09:00
Jean-Philippe Andre 0f4dc0b222 test: reflow check boxes in genlist and gengrid focus tests
Without this, the items never get unrealized, except on
window close. This allows better testing of those widgets.
2016-02-01 13:32:31 +09:00
Andy Williams bd291fe72a [toolbar] Adjust icon size along with text etc.
As discussed on the mailing list elm should scale the whole UI
based on the scale value. Make toolbar icons match this.

@fix
2016-01-30 13:54:24 +00:00
Andy Williams 7c07651d61 [toolbar] don't leak icons into the UI
This cleans up orphan icons being left in the UI if you call icon_set
after the toolbar has been displayed.

This was most noticable if the toolbar or buttons move first

@fix
2016-01-29 15:35:58 +00:00
Jee-Yong Um eb2085c23c elm_focus: refine focus.edc
Summary: remove whitespaces and add programs block

Reviewers: Jaehyun_Cho

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

Conflicts:
	data/themes/edc/elm/focus.edc
2016-01-28 19:01:27 +09:00
Jee-Yong Um 108e15f0cd elm_focus: fix mislocation error during continuous focus movement
Summary:
When focus is moved fast and continuously, newly created animator
conflicts with the animator for previous movement, so focus bounces
among locations.
This patch removes previous animator and move focus to the final
location before creating new animator.

Test Plan:
elementary_test -to focus
elementary_test -to genlist

Reviewers: raster, jpeg, cedric, Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3611
2016-01-28 18:12:30 +09:00
Jee-Yong Um 87422a763c remove incorrect references of insert_before/after in EDC
Summary:
This patch removes unavailable references to nonexistent parts
from default theme.

Reviewers: raster, jpeg, cedric

Differential Revision: https://phab.enlightenment.org/D3609
2016-01-27 14:56:50 +09:00
Divyesh Purohit d9651168cd combobox: avoid calling item_selected and dismissed signal on show
Summary:
After this patch https://phab.enlightenment.org/rELM0f6e1a46a402fd9cf848ffb1bd47c6b406eb7ffa
calling item,selected and dismissed signals should be avoided on combobox show.
Signed-off-by: Divyesh Purohit <purohit.div@gmail.com>

Test Plan: please run combobox example from elementary_test

Reviewers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-26 13:05:28 -08:00
Divyesh Purohit 04cff68f41 combobox: fix continuous clicks on hover
Summary:
Continouous clicks on hover would need to ensure that variable
on_dismiss of combobox_vertical style in hover.edc should 0 when slot is being shown, otherwise events
would be disabled on hover even though swallow content is shown.

@fix

Signed-off-by: Divyesh Purohit <purohit.div@gmail.com>

Test Plan:
Click continouosly on combobox and events on hover would be
disabled.

Reviewers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-26 13:05:28 -08:00
divyesh purohit 3af4a727cc combobox: fix disabled state
Summary:
Apply gray-scale to vertical_separated_bar_glow image and increase the opacity
of the button, so that the text on the entry is visible.
@fix T3075
Signed-off-by: divyesh purohit <div.purohit@samsung.com>

Test Plan: please run combobox example from elementary_test

Reviewers: shilpasingh, cedric, raster

Maniphest Tasks: T3075

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-26 13:04:55 -08:00
Hermet Park f5f18032a5 Fix toogle icon sizing issue.
Strangely, toggle couldn't afford it's icon space
at elementary_test -> check toggle.

Following to default style which is normal to avoid this wierd look.
2016-01-26 19:41:49 +09:00
Davide Andreoli 1e78bc662b Elm Image: fix usage of animated gif on the same image object more than one time
This patch @fix this usage example:

0. image obj create
1. file_set(an animated gif)
2. animated_set(TRUE) + animated_play_set(TRUE) to make the gif play
3. file_set(a normal image)
... at this point elm_image is confused because it still think that the image is animated
4. file_set(an animated gif)
5. animated_set(TRUE) + animated_play_set(TRUE) to make the gif play
...this now do not work because elm think that the image is already animated
2016-01-25 22:17:36 +01:00
Stefan Schmidt 81d76979f1 release: Update NEWS and bump version for 1.17.0-beta3 release 2016-01-25 20:00:58 +01:00
Mike Blumenkrantz e1effc05f3 shelf: add "noshadow" data item to indicate no shadow should be used 2016-01-25 12:32:54 -05:00
Chris Michael 6fafc39709 elementary: Add missing EINA_UNUSED in combobox function
_elm_combobox_elm_genlist_filter_set function does not use the Eo *obj
parameter so mark it as EINA_UNUSED to remove compiler warning

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-01-25 07:43:03 -05:00
Jaehyun Cho 313a2e55ca naviframe: Update documentation of item_pop_cb_set and item_pop_to. 2016-01-25 18:14:59 +09:00
Jean-Philippe Andre fcc4c7c002 elm_test: Show popup error when Plug can't connect 2016-01-25 16:24:16 +09:00
Davide Andreoli 0c76155942 Genlist: do not select the item two times in case of a double click.
In the case of a genlist set as ELM_OBJECT_SELECT_MODE_ALWAYS the "selected" cb was called 2 times. This @fix that by skipping the selection code in case the click is not the first one (EVAS_BUTTON_NONE).

Also merge the conditions of two consecutive "if" in a single statement.
2016-01-24 16:44:57 +01:00
Davide Andreoli 913c9f3c6c Genlist/grid: do not set again the focus on double/triple click
Focus is already setted on first mouse-up, no need to set again in double and triple click up events

@Fix the issue reported in previous commits
2016-01-24 16:11:13 +01:00
Davide Andreoli 047e9c35f7 Reveal the same focus bug of previous commit also in genlist.
See previous commit for instructions on how to reproduce in "Genlist Focus" test.
2016-01-24 15:44:48 +01:00
Davide Andreoli 6503b1fdfd Add a test to reveal a focus bug in Genlist/Gengrid
To reproduce:
 * elm_test -to "GenGrid Focus"
 * turn on the "Focus Highlight" checkbox
 * double-click an item to show a popup that should have the focus

As you can see the mouse-up event on the gengrid item steal the focus from the popup.
When, instead, the item is activated with the keyboard the popup correctly keep the focus.

I have this problem in both genlist and gengrid, so probably the error is not in the gengrid code, but somewhere else that I cannot find.

...any help appreciated
2016-01-24 14:35:49 +01:00
divyesh purohit 8c6f8843d4 combobox: apply proper style
Summary:
Initially combobox used hover's default style, this patch would make combobox use hoversel_vertical style.
@Fix T3075 for 2nd point.

Signed-off-by: divyesh purohit <div.purohit@samsung.com>

Test Plan: please run combobox example from elementary_test

Reviewers: shilpasingh, cedric, raster

Subscribers: rajeshps, govi

Maniphest Tasks: T3075

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-22 12:10:14 -08:00
divyesh purohit 8bba97b469 combobox: "return" key handled correctly and removed unreachable code.
Summary:

_key_action_activate was triggered when "return" was pressed, _key_action_move
contained the "return" key handling, which is unreachable code.
@fix T3075 (1st point).

Signed-off-by: divyesh purohit <div.purohit@samsung.com>

Test Plan: please run combobox example in elementary_test

Reviewers: shilpasingh, cedric, raster

Subscribers: rajeshps, govi

Maniphest Tasks: T3075

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-22 12:10:14 -08:00
Cedric BAIL e01f66b816 combobox: move responsibility to define filter and content to the user of a combobox
Before this patch, the filter was set inside the combobox. This is confusing for the
user of the object as it can't define a custom filter except on strings. It is also
impossible to bind as binding require to know what was put in and they can't differentiate
between a genlist filter being set from the binding to one being set internally by
the combobox.

@fix
2016-01-22 12:10:14 -08:00
SangHyeon Lee 36191ee691 genlist : fix tree item floating issue when homoegeneous mode is enabled
genlist item is flaoting upon the expanded item when homoegeneous mode
is enabled.
when item block is recalculated by tree expanding, new item didn't
update their properties and values becuase of size hash, but edc
actaully need to be recaculated after swallowing tree size padding.

solve the issue by adding expand depth check in size hash.

you can check the previous issue in T2708
elementary_test->genlist tree->homoegeneous check

@fix
2016-01-22 16:55:41 +09:00
Davide Andreoli ab8b65f6fa Adjust "context_menu_disabled" configuration.
This @fix three (yes 3!) errors from commit cafda5928f9bf8116564219dc03d12c3a6e131b3

1. the initial value in the standard config is wrong, causing ctx menu to be disabled for everyone!
2. the argument of the api should be named "disabled" (like all the other disable API in this context)
3. (minor) fixed doc for elm_config_context_menu_disabled_set

NOTE: there are no configuration gui for this option, if you cleared your elm config recently you probably now have the ctx menu disabled everywhere, only solution is to wipe your config (to let elm create a new correct one)

Big SPANK to the author, the commiter and all the reviewers of D2463!!!
2016-01-21 22:21:30 +01:00
Jean-Philippe Andre 48b561b8e0 elm: Replace EO_EV_ by EO_BASE_EVENT_
EO_EV_ stuff is deprecated
2016-01-21 14:45:05 +09:00
Jee-Yong Um 43f646f642 elm_hoversel: fix calculation to make items fit to dropdown box
Summary:
While applying scroller on hoversel, several lines for item size
calculation were added, but they failed to have item get proper size.
Now redundant codes are removed and some are fixed, and hoversel will
be shown more well-ordered.

Test Plan: elementary_test hoversel

Reviewers: jpeg, raster, cedric

Differential Revision: https://phab.enlightenment.org/D3589
2016-01-20 21:29:12 +09:00
Minkyu Kang 2a1f4ada6e elm_widget: use internal function for clearing the focus
Summary:
This patch will remove duplicate logic

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>

Reviewers: seoz, Hermet, cedric

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D3573
2016-01-20 17:15:45 +09:00
Hermet Park b91e5ea890 update author 2016-01-20 17:10:16 +09:00
Minkyu Kang 6fa6c3026a elm_widget: cleanup _elm_widget_on_focus function
Summary:
This patch will reduce duplicate codes and code depth for readability

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>

Reviewers: seoz, Hermet, cedric

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D3574
2016-01-20 17:06:22 +09:00
Davide Andreoli 026196fe1f Combobox: rename the "selected" event to "item,selected" as it should be.
Also updated the test to reflect this change
2016-01-19 20:33:47 +01:00
Chris Michael dc22117232 elementary: Fix elm_win_window_id_get function
When using this function with wayland windows, we should be returning
the matching Ecore_Wl2_Window id, not the surface_id

ref T3058

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-01-19 10:48:19 -05:00
Davide Andreoli dae6d87af4 Hoversel: add a test for the populate-on-click scenario 2016-01-18 19:49:28 +01:00
Stefan Schmidt 92964cf8c1 release: Update NEWS and bump version for 1.17.0-beta2 release 2016-01-18 14:10:24 +01:00
Vincent Torri 44ef707d81 win32: Fix link of binaries which use functions in Evil
Reviewers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3578
2016-01-18 13:55:39 +09:00
Daniel Juyung Seo eddc931d0c gitignore: Add new example to gitignore list. 2016-01-18 04:26:28 +09:00
Daniel Juyung Seo e7ac0a8c4d examples/combobox: Remove unused functions. 2016-01-18 04:24:16 +09:00
Davide Andreoli 16b16b7128 Gengrid: improve item_region_show code
There is no need to recalc row and col position of the item, they are already stored in the item struct.

The old implementation was calculating wrong values and also was storing this wrong values in it->x and it->y, resulting in wrong results for the elm_gengrid_item_pos_get() function.

so, at the end,  this is a @fix for the pos_get() function.

Also changed a bit the test to let the gengrid fill the window and thus testing behaviour on col/row changes.

I didn't find any regression in all the gengrid tests after this, let me know if it broke something for you.
2016-01-17 15:11:29 +01:00
Andy Williams df74a34942 config: Correct defaults in upgrade of popup conf
After bumping version we need to create a new IFCFG block.

@fix

T3008
2016-01-15 21:52:08 +00:00
Amitesh Singh bab5b61aa7 slider: fix segfault in case of obj is deleted before wheel timeout timer expires
Issue:
1. elementary_test -> slider
2. move mousewheel on slider and popup gets shown.
3. close the slider window very fast or increase the wheel_timeout to 4 seconds
4. observe crash
2016-01-15 17:45:24 +05:30
Jean-Philippe Andre 3d62767f18 SegmentControl: Fix theme to avoid text move on select
GLOW and SHADOW_BOTTOM have different paddings, which changes the
geometry of the object. This compensates that.
2016-01-15 18:15:50 +09:00
Cedric BAIL 73a2d0e231 config: try to properly update config for popup new align value.
This idea has been suggested by Andrew Williams and I hope it does work
just fine. Please report any problem.

@fix

T3008
2016-01-14 15:49:22 -08:00