Commit Graph

256 Commits

Author SHA1 Message Date
Taehyub Kim 55a6bd7fbb elc_popup: add escape key binding
Summary:
There are no methods to close the popup with key down.
So I added the escape key binding to close the popup with escape key.

Test Plan:
1. patch this code
2. delete /home/{user}/.elementary to refresh the config value
3. launch elementary_test -to "popup"
4. click one example of the list and press escape key
5. see closing the popup

Reviewers: cedric, raster, jpeg, Jaehyun_Cho, Hermet

Reviewed By: Hermet

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

Conflicts:
	src/lib/elementary/elm_priv.h
2016-05-18 22:15:08 +09:00
Yeshwanth Reddivari 26316058f0 Index : Use orientation interface APIs instead of horizontal set/get APIs
Test Plan: elementary_test

Reviewers: singh.amitesh, jpeg, cedric, raster, Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D3954
2016-05-18 18:33:53 +09:00
Yeshwanth Reddivari 5f87f5f673 index: Avoid SIGSEV in elm_index_item_sorted_insert
Summary:
Avoid SIGSEV in elm_index_item_sorted_insert when cmp_data_func returns >=0
After deleting eo_item and making it NULL in above case, view(it) is created which resulted in crash.

Test Plan: elementary_test -to 'index 2'

Reviewers: singh.amitesh, jpeg, cedric, raster, Hermet

Reviewed By: Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D3956
2016-05-18 18:33:07 +09:00
Cedric Bail 45bc4f30eb efl: change name of animator,tick event in C. 2016-05-18 02:20:13 -07:00
Jee-Yong Um 80c42bc3a5 elm_list: perform a null check before accessing its member
Summary:
In inline function _elm_list_item_free, null check is performed
after accessing its member.

@fix

Reviewers: cedric, Hermet

Reviewed By: Hermet

Subscribers: jpeg

Differential Revision: https://phab.enlightenment.org/D3955
2016-05-18 17:56:47 +09:00
Carsten Haitzler 43661180f7 efl - key/data/value/obj attach to eo objects - make these properties
the key data now is a property so they come out in bindings really
nicely like:

  obj.key_data["blah"] = x;

  x = obj.key_data["blah"];

etc.
2016-05-18 02:02:45 +09:00
Daniel Kolesa 7782c0bcb9 eolian: add event_prefix and have classes follow that or eo_prefix by default
Previously events used to use class name as a prefix and ignored eo_prefix
when specified. This is no longer the case. Events follow eo_prefix by default
now. In order to get around this for classes where this is undesirable, a new
field event_prefix was added which takes priority over eo_prefix. If neither
is specified, class name is used like previously.

@feature
2016-05-17 17:50:43 +01:00
Amitesh Singh f007380fb9 Panes: Use orientation interface APIs instead of horizontal set/get APIs
Differential Revision: https://phab.enlightenment.org/D3919
2016-05-18 00:36:09 +09:00
Tom Hacohen 546ff7bbba Eo: Remove eo_del() and make eo_unref() the replacement.
We used to have eo_del() as the mirrored action to eo_add(). No longer,
now you just always eo_unref() to delete an object. This change makes it
so the reference of the parent is shared with the reference the
programmer has. So eo_parent_set(obj, NULL) can free an object, and so
does eo_unref() (even if there is a parent).

This means Eo no longer complains if you have a parent during deletion.
2016-05-17 16:23:23 +01:00
Shuhrat Dehkanov cab208e83f docs: progressbar: correct minor typos
Reviewers: q66, stefan_schmidt

Subscribers: cedric, seoz, jpeg

Differential Revision: https://phab.enlightenment.org/D3950
2016-05-17 15:05:37 +02:00
Cedric Bail a5216d4f79 elementary: mapbuf is legacy for now and should be automatic in the future. 2016-05-17 05:17:53 -07:00
Jinyong Park 1b765359ee popup: add popup default scrollable flag config for other profiles.
Summary:
The default scrollable flag of popup can be different in each profiles.
So I added the scrollable configuration of popup.
@feature

Test Plan:
1. Before
 1) elementary_test -to popup
 2) resize window to smaller
 3) Click 15th item, "popup-center-title + genlist content + 1 button"
 4) Then popup will show, but its list is very long, only small part of popup could be shown.

2. After Patch
 1) change "popup_scroller" value to 1 in base.src, then run elementary_test -to popup or ELM_POPUP_SCROLLABLE=1 elemantary_test -to popup
 2) resize window to smaller
 3) Click 15th item, "popup-center-title + genlist content + 1 button"
 4) Then popup will show, popup's genlist will be in scroller, so entire popup can be shown.

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

Subscribers: Hermet, minkyu, herb, jpeg

Differential Revision: https://phab.enlightenment.org/D3856
2016-05-17 10:22:07 +09:00
Andy Williams b92029f422 elementary: Fix icon name to standard 2016-05-16 09:12:21 +01:00
Ji-Youn Park 0c2ad7ff10 elm_win: move quickpanel feature from eo to legacy
all quickpanel APIs were only supported in X.
quickpanel property can be managed by name property.
zone set canbe managed by aux_hint
minor, and major set are not used anymore
2016-05-16 15:36:58 +08:30
Davide Andreoli d7c9790450 Revert "popup: default scrollable option change to TRUE"
This reverts commit 2ddbc5fc9a.

You cannot change default behaviour of released code!
In this way you make applications behave differently on different
efl version.
2016-05-15 18:56:57 +02:00
Carsten Haitzler c8c61d2e85 efl - ui box - remove unised deficit variable 2016-05-15 23:59:14 +09:00
Carsten Haitzler 408e15d78c elm - map: fix warning with possibly uninitted vars 2016-05-15 23:59:14 +09:00
Chris Michael 08c9c70c27 elementary: Cleanup compiler warnings when not using X11
This patch cleans up various unused variables and unused function
parameters when not building for X11.

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-15 09:53:16 -04:00
Chris Michael d857445571 elementary: Conditionally define functions based on x11/wayland
These functions are only used if we are compiled with X11 support, so add
an #ifdef to remove it from wayland builds

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-15 09:53:16 -04:00
Chris Michael 8ed0aa02cf elementary: Don't define handlers if we are not going to use them
These handlers are only used when building for X11, not for Wayland,
so conditionally compile them in/out

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-15 09:53:16 -04:00
memeka b01af6e57c elementary: Fix build issue when x11 is disabled
When we compile efl using --with-x11=none, then
_tempfile_new and _tmpinfo_free end up being undefined, however these
functions are used by wayland too so they need to be defined regardless.

@fix
2016-05-14 06:44:39 -04:00
Andy Williams 6551aa4471 elementary: Use standard down arrow 2016-05-14 11:20:41 +01:00
Jinyong Park 2ddbc5fc9a popup: default scrollable option change to TRUE
Summary:
Usually, popup have a scroll bar when its content is too long to display in popup's size.
But now, default option is unscrollable.
So change default option and popup's test case.

Reviewers: jaehwan, Hermet, herb

Subscribers: cedric, singh.amitesh, jpeg

Differential Revision: https://phab.enlightenment.org/D3941
2016-05-13 14:49:18 +09:00
Youngbok Shin 91437fafb0 Elementary toolbar: Don't call "clicked" callback when item is just selected
Summary:
"clicked" callback must be called when an item is really clicked.
But, toolbar had called it whenever an item was selected.
Even, it could be triggered by "elm_toolbar_item_selected_set()" API.
So, "clicked" callback will be called when only an item is clicked.
Also, it changed confusing names of related internal functions.
@fix

Test Plan: N/A

Reviewers: jaehwan, woohyun, cedric

Subscribers: jpeg

Differential Revision: https://phab.enlightenment.org/D3937
2016-05-13 14:06:18 +09:00
Tom Hacohen 6bdf4af016 Add legacy_prefix now that the default has changed to null. 2016-05-12 17:27:35 +01:00
Tom Hacohen 96c4c88070 Efl: Remove "legacy_prefix: null;" as it's now the default. 2016-05-12 17:27:35 +01:00
Daniel Kolesa 7e94eb22b4 eolian: mark pure virtual funcs outside of implements
This is a better syntax and should've been like this in the first place.
2016-05-12 16:15:24 +01:00
Tom Hacohen 345a02eac0 Elm segment control item: Fix namespacing to use . and not _. 2016-05-12 12:22:10 +01:00
Tom Hacohen b7cf001c31 Evas image orient: Fix namespacing to use . and not _. 2016-05-12 12:20:34 +01:00
Tom Hacohen 8183d6363e Elm image: Fix namespacing to use . and not _. 2016-05-12 12:20:34 +01:00
Tom Hacohen 739ccea3d9 Eo event description: Fix namespacing to use . and not _. 2016-05-12 12:20:34 +01:00
Tom Hacohen 5a93ae6b0f Efl ui box: Fix namespacing to use . and not _. 2016-05-12 12:20:34 +01:00
Tom Hacohen 6760e05968 Elm interface atspi editable text: Fix namespacing. 2016-05-12 11:45:46 +01:00
Tom Hacohen 646839ce4b Elm interface fileselector: Fix namespacing to use . and not _. 2016-05-12 11:37:57 +01:00
Tom Hacohen 45d96b1c21 Elm interface atspi: Fix namespacing to use . and not _. 2016-05-12 11:37:43 +01:00
Tom Hacohen 5defd35cef Efl image: Fix namespacing to use . and not _. 2016-05-12 11:35:21 +01:00
Tom Hacohen 278b16b058 Evas smart: Fix namespacing to use . and not _. 2016-05-12 11:33:59 +01:00
Tom Hacohen 6a3bd5c5fb Elm win standard: Fix namespacing to use . and not _. 2016-05-12 11:23:43 +01:00
Tom Hacohen 726f399b9c Elm view: Fix namespacing to use . and not _. 2016-05-12 11:23:13 +01:00
Tom Hacohen 227af4751b Elm pans: Fix namespacing to use . and not _. 2016-05-12 11:22:05 +01:00
Tom Hacohen ef6c88435b Elm items: Fix namespacing to use . and not _. 2016-05-12 11:21:36 +01:00
Tom Hacohen db5c38f93d Elm atpsi: Fix namespacing to use . and not _. 2016-05-12 11:19:36 +01:00
Tom Hacohen 9a9eea680f Elm app: Fix namespacing to use . and not _. 2016-05-12 11:18:43 +01:00
Tom Hacohen 56eee19102 Efl pack: Fix namespacing to use . and not _. 2016-05-12 11:14:03 +01:00
Tom Hacohen 0253d91ade Evas object smart: Fix namespace to use . and not _. 2016-05-12 11:12:15 +01:00
Youngbok Shin e49d84f057 entry: add elm_entry_select_allow_set/get APIs
Summary:
There is no way to allow/deny the text selection feature.
It is only controlled by disabled state. But, some UX does
not want to allow the text selection on editable entry widget.
@feature

Test Plan:
Run the following test case. You can see "Select Allow" check box.
elementary_test -to entry

Reviewers: tasn, herdsman, cedric, thiepha

Reviewed By: thiepha

Subscribers: jpeg

Differential Revision: https://phab.enlightenment.org/D3934
2016-05-12 11:10:42 +09:00
SangHyeon Lee 782f28e9a1 genlist : fix content cache issue by content_get
Summary:
genlist content_get sometimes work weird after reusable_content_get pushed.
cached content is shown even content_get function is not exist or
return NULL.
now cache check item_class instead of item style string.

Test Plan: check genlist cache in elementary_test

Reviewers: Hermet, cedric, raster

Subscribers: Jaehyun_Cho, jpeg

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

Conflicts:
	src/lib/elementary/elm_genlist.c
2016-05-12 07:12:18 +09:00
Thiep Ha e7805d97b6 elm cnp: simplify data preparer
Use eina_strbuf to simplify the data preparer for uri.
This helps remove the complex for loop and also
reduce the memory allocated for uri array.
This also removes redundant checking.
2016-05-11 18:00:19 +09:00
Thiep Ha 3e2e5b6111 elm win: change to use legacy api for cocoa engine
Some APIs are move from eo to legacy as in ab3058d3,
but not all api calls are changed. This causes build break
in mac with cocoa backend.
This patch fixes it.

@fix
2016-05-11 11:20:33 +09:00
Mike Blumenkrantz ec3cb83185 Revert "elm entry: remove unused funtions"
This reverts commit 2e68debe7b.

ref T3455
2016-05-10 13:23:05 -04:00