Commit Graph

12652 Commits

Author SHA1 Message Date
Stefan Schmidt 7ee4b458c6 elm_config: print an eror message if we fail to save the derived config profile 2016-01-14 15:53:53 +01:00
Stefan Schmidt 8bf42c1830 elm_config: handle eet_data_write possible error return
CID: 1347399
2016-01-14 14:22:23 +01:00
Jean-Philippe Andre bbf788cdae examples: fix compilation from command line (file models) 2016-01-14 14:53:51 +09:00
Mike Blumenkrantz d28d2c1cdc box: enforce size recalc during unpack_all()
deleting subobjects here was occurring and triggering sizing eval
prior to removing the objects from the evas box, resulting in a failure
to accurately calculate and set size hints

also set delete_me to block sizing evals during subobj deletion loop
in order to avoid object thrashing during the time when nothing is happening

@fix
2016-01-13 15:47:50 -05:00
Mike Blumenkrantz dfdda0c2ba box: improve aspected layout for non-1:1 ratio aspects
the aspect calc function requires unaliased size params, so don't pass
aliased params

also clamp min axis size to min aspected item size as intended
2016-01-13 15:37:50 -05:00
godly.talias 77c465f1b1 [Hover] Fixed the delaying of hover dismiss on continuous mouse clicks
Summary:
When continous mouse clicks happen hover emits the hide signals continously
to edje. As the embryo program for hiding requires some time to finish the
animation, if within that time another mouse click comes the program gets
invoked again and thus the hiding will get delayed till the mouse clicks ends.
This patch fix that issue by adding a flag for emitting signals.

@fix T3006

Signed-off-by: godly.talias <godly.talias@samsung.com>

Test Plan: elementary_test

Reviewers: cedric, conr2d, prince.dubey, shilpasingh, Princekrdubey

Reviewed By: shilpasingh, Princekrdubey

Subscribers: Princekrdubey, divyesh, govi, rajeshps

Maniphest Tasks: T3006

Differential Revision: https://phab.enlightenment.org/D3526
2016-01-13 15:59:15 +09:00
Stefan Schmidt 9786fa6adb els_cursor: mark internal struct static 2016-01-11 21:57:07 +01:00
Stefan Schmidt 0ce3e099f6 elmn_config: mark some internal variables and functions static 2016-01-11 21:57:07 +01:00
Stefan Schmidt 4c6aa026e3 atspi: mark some internal structs static 2016-01-11 21:57:07 +01:00
Stefan Schmidt 686faed70e examples/combobox: include string.h for strcasestr() 2016-01-11 21:57:07 +01:00
Tom Hacohen 23ac20bfce Widgets: remove duplicate declaration of language,changed signal.
They are already defined in Elm.Widget, and they inherit from it.

Fixes T3208.
2016-01-11 13:49:24 +00:00
Tom Hacohen 5affad30b4 Widgets: remove duplicate declaration of access,changed signal.
They are already defined in Elm.Widget, and they inherit from it.

Fixes T3208.
2016-01-11 13:49:20 +00:00
Stefan Schmidt c4cac416d7 release: Update NEWS and bump version for 1.17.0-beta1 release 2016-01-11 12:58:46 +01:00
Minwoo, Lee 87bac6e625 modules/prefs/elm_entry: Add safety check for NULL pointer and fix memory leak
Summary: Add safety check for NULL pointer and fix memory leak

Reviewers: cedric, woohyun, Hermet, stefan_schmidt, raster

Reviewed By: stefan_schmidt, raster

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D2740
2016-01-11 16:49:29 +09:00
Carsten Haitzler 7c71cf6d59 elm entry: check for null return from eina_rectangle_new
this will handle if eina_rectangle_new can't allocate a rect
(basically never will happen...)

@fix
2016-01-11 16:42:05 +09:00
Larry d210efee2e js: fix examples functions
Summary: update functions in examples @fix

Reviewers: cedric, felipealmeida

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-09 00:31:31 +01:00
divyesh purohit 53546be461 combobox: fix recalc and hover's best_location error
Summary:
1) Recalc error occurs if combobox_hover_begin() was called by the app, it can be reproduced by keeping elm_combobox_hover_begin() in the test_combobox.c
2) Content_set in hover always considered "bottom" as it's best_location as it done during the constructor.
@fix
Signed-off-by: divyesh purohit <div.purohit@samsung.com>

Test Plan:
It can be reproduced by keeping elm_combobox_hover_begin() in the test_combobox.c.
Also the changing the position of combobox in the window would give top/bottom as it's best location.

Reviewers: cedric, shilpasingh

Reviewed By: shilpasingh

Subscribers: rajeshps, govi

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-09 00:27:14 +01:00
Mike Blumenkrantz a2634dfc0f box: update evas box geometry during layout after smart extents calc
smart extents may trigger a recalc during size hint setting, resulting
in the box being moved/resized during layout
2016-01-08 15:03:38 -05:00
Hermet Park 05950e093c hoversel: don't activate if the items were none.
it's wierd to expand hoversel without items.
the behavior made me suprised before i analyzed it.
it looked almost a bug.

if you have any other objections, please ping me.
2016-01-08 20:50:01 +09:00
Hermet Park 4624fd7ae1 hide indicator after mouse wheel activation.
we need to customize the duration of the indicator from api or theme data.

@fix T2348
2016-01-08 15:58:59 +09:00
Hermet Park b464395ada ctxpopup: add geometry,update smart callback.
conceptually, ctxpopup won't give any geometry information of the container.
this event is a way for returning the information of the container for user scenarios.

@feature.

fix @T2042
2016-01-08 15:11:11 +09:00
Chris Michael 579677008f elementary: Fix potential sizeof mismatch
Coverity CID1347398 reports that this could potentially be a
non-portable assumption resulting in a sizeof mismatch. Fix this by
using the actual structure type in the call to calloc.

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-01-07 15:23:45 -05:00
Chris Michael 72aab589db elementary: Fix warnings of uninitialized variable usage
This patch just fixes a compiler warning about using fw/fh
uninitialized if the conditional is false

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-01-07 15:04:09 -05:00
Chris Michael b82446cf5d elementary: Fix calls to ecore_evas_wayland_window_get2
As we've renamed the function, the calls to it should be updated to
use the new function name

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-01-07 15:04:09 -05:00
Mike Blumenkrantz cbf818e211 widget: check next_item existence when focusing before calling widget fns
ERR<eo>lib/eo/eo.c:753 Unable to resolve op for api func 0x7ffff7cc17ce
2016-01-06 17:09:01 -05:00
Mike Blumenkrantz 3d91738f35 layout: do not unset max size hint during sizing eval
previously-applied max size hints should not be unset; these are only
able to be set externally from a parent object, so don't overwrite them
internally

@fix
2016-01-06 17:09:01 -05:00
Mike Blumenkrantz ac06bfdb22 box: use elm_box_recalculate() in smart recalc
ensures that the internal box will calculate and blocks further (recursive)
recalc calls
2016-01-06 17:09:01 -05:00
Umesh Tanwar c8c4f3cd5c elementary_test: remove wrong usage of EINA_UNUSED.
Summary:
If argument variable is not used in function, then only
that variable should be declared as EINA_UNUSED.

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

@fix

Reviewers: Hermet, singh.amitesh

Subscribers: sachin.dev

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-06 11:27:13 -08:00
Subodh Kumar e130780783 segment_control: check item disable
Summary:
Elm segment_control: check item disable

Signed-off by: @adrien

Refer T2883

@fix

Test Plan: NA

Reviewers: cedric

Subscribers: adrien

Projects: #elementary

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-06 11:26:24 -08:00
divyesh purohit 198b1c9e1c combobox: add documentation and example
Summary:
Added Documentation for Combobox Widget
Signed-off-by: divyesh purohit <div.purohit@samsung.com>

Test Plan: execute make doc

Reviewers: shilpasingh, cedric

Subscribers: rajeshps, govi

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-06 10:58:00 -08:00
Stefan Schmidt 84a6476177 elm_sys_notify: add missing since tags for notification server support 2016-01-06 19:38:46 +01:00
Stefan Schmidt 040aa2cc7c elm_notify/popup: add missing since tag for new dismiss symbols 2016-01-06 18:39:48 +01:00
Stefan Schmidt 86c63f47cd elm_combox: add missing since tags for new APIs 2016-01-06 17:33:54 +01:00
Stefan Schmidt 2ab9b102cf elm_win: add missing since tag and correct another one 2016-01-06 17:23:55 +01:00
Youngbok Shin eb703930d2 toolbar: Revert a theme change for shrink mode signals.
Summary:
It was changed for testing shrink mode signals.
But, it was unnecessary change for default theme.

Test Plan: N/A

Reviewers: zmike, jaehwan

Differential Revision: https://phab.enlightenment.org/D3536
2016-01-06 19:38:05 +09:00
Stephen okra Houston 4c70bc82f9 config: Remove stray printf. 2016-01-05 15:34:39 -06:00
Jean Guyomarc'h 3e4d946794 sys_notify: fix shutdown of elm_sys_notify
Summary:
When elm_sys_notify was not needed, its singleton instance
is NULL. Eo complained about passing a NULL pointer.

Thanks to bu5hm4n (Marcel Hollerbach) for the report.

@fix

Reviewers: stefan_schmidt, cedric

Subscribers: bu5hm4n

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-05 11:50:03 -08:00
Stefan Schmidt 3c1bf59d39 release: Update NEWS and bump version for 1.17.0-alpha1 release 2016-01-05 15:24:19 +01:00
Chris Michael 67d8c323ff elementary: Fix elementary not compiling
With the push of 1056b6ed01475817da2439012057d11865d2c5d8, elementary
compile broke due to undeclared variables. This patch fixes elm to
compile again by declaring the missing vars.

@fix

@raster, Please double check this change as I am unsure if it is what
you Really intended here.

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-01-05 08:55:54 -05:00
Carsten Haitzler 8589d1d2ab elm config - monitor JUST the correct files for profile and cfg change
this fixes the config monitoring to not use flush.cfg but to use the
correct profie.cfg or base.cfg in the profile we are using. this is
necessary to do "special" profiles per screen so apps that switched to
another profile because asked by e, monitor THAT profile for changes
specifically and dont also switch profiles since they have been told
what to use now.

@fix
2016-01-05 22:25:20 +09:00
Carsten Haitzler 35c205d704 elm wl cnp - fix paste to not crash anymore
this used the wrong widget - it should have used requestwidget. this
fixes that.

@fix
2016-01-05 22:24:58 +09:00
Carsten Haitzler 922b5dca74 elm config - add the ability to have derived configurations from others
this adds the ability to have one profile automatically be derived
from another with modifications applied. right now it only can do a
very limited modification - multiple scale. over time this will
expand. this is only inteded otbe sued by a DE like enlightenment, so
it's not going to be documented fully at this point.

@feature
2016-01-05 22:24:58 +09:00
Carsten Haitzler c2f6ece2d7 elm config - add function to check if profile exists
this adds a method to see if a profile exists.
elm_config_profile_exists().

@feature
2016-01-05 22:24:58 +09:00
Carsten Haitzler 76c528a5c3 elm config tool - dont need to call save if flush is saving anyway
tis would also make behavior more consistent with the tool as before
sometimes it flushed + saved, sometimes just flushed which would lose
settings. now since this works right in elm config in the lib, we dont
need to save if we flush as flush saves too.
2016-01-05 22:24:58 +09:00
Carsten Haitzler eb649ff9c3 elm config - allow the ability to save out to another hidden profile
support the ability to have hidden profiles that begin with a dot (.)
char like all hidden files/dirs. to do this we need to also be able to
create profiles with a given name (a hidden name) without switching to
them, so add the ability to save out to a specific profile name
without switching to it. of course this means to list profiles we need
to list them or list ALL includiing hidden profiles.

@feature
2016-01-05 22:24:58 +09:00
divyesh purohit 4a33cee27f combobox: add new widget.
Summary:
Combobox is a combinational widget of a drop-down list and single line entry.
Based on the text entered in the entry, the list items are filtered accordingly.
Signed-Off By: Cedric Bail <cedric.bail@free.fr>
Signed-Off By: Divyesh Purohit <div.purohit@samsung.com>

Test Plan: test_combobox.c is added to elementary test

Reviewers: raster, shilpasingh, cedric, jpeg, stefan_schmidt

Reviewed By: raster, shilpasingh, cedric

Subscribers: SanghyeonLee, shashank0990, singh.amitesh, tasn, raster, seoz, poornima.srinivasan, rajeshps, govi

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 15:24:49 -08:00
divyesh purohit e6b686b493 hover: fix segfault when smart direction is used in content_set in hover
Summary:
when using elm_object_part_content_set(hover, "smart", content); it would cause segfault, this patch would fix T3004

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

Test Plan:
please open the hover3 example in elementary for testing it, the hover
content shouldn't leave the window as "smart" direction is used.

Reviewers: shilpasingh, raster, cedric, Hermet

Subscribers: rajeshps, govi

Maniphest Tasks: T3004

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 15:21:46 -08:00
Jee-Yong Um 9fd9a33b7a hoversel: auto update hoversel after dismiss animation finished.
Summary:
If auto_update feature changes hoversel width,
dismiss animation seems awful because hoversel contents move to
changed position in an instant.
This patch makes hoversel update its content with clicked item
after dismiss animation finished.

Test Plan: elementary_test hoversel

Reviewers: raster, cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 15:17:26 -08:00
divyesh purohit 666bc393eb hoversel: fix hover position in hoversel, when it goes out of the viewport
Summary:
Hoversel Widget is designed in such a way that it accepts top/bottom/left/right directions , internally it uses hover widget which does not take care if its content goes of it's parent (Elm_Win in most cases) . this patch ensures that the drop-down content remains restricted in visible hover_parent. it would fix  T2965
Signed-off-by: divyesh purohit <div.purohit@samsung.com>
Signed-off-by: Jee-Yong Um <conr2d@gmail.com>

Test Plan:
Open entry widget and right click to show a hoversel widget, check if the hoversel or hover content goes out of the window.

this is what hoversel would look like after this patch {F27551}

Screenshots of top-left / top-right/ bottom-left and bottom-right corners in entry after this patch

{F27553}

{F27554}

{F27555}

{F27557}

Reviewers: shilpasingh, conr2d, raster, cedric, Hermet

Subscribers: rajeshps, govi

Projects: #elementary

Maniphest Tasks: T2965

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 15:08:52 -08:00
Sung-Taek Hong d305e2790a button: add color classes
Summary:
The following color classes are added.
 - "button_bg", "button background color"
 - "button_bg_pressed", "button pressed background color"
 - "button_bg_disabled", "button disabled background color"
 - "button_bg_disabled", "button disabled background color"
 - "button_text_pressed", "button pressed text color"
 - "button_icon", "button icon color"
 - "button_icon_pressed", "button pressed icon color"
 - "button_icon_disabled", "button disabled icon color"

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 15:06:55 -08:00
woochan lee 66c6305519 multibuttonentry: add color classes and text classes.
Summary:
The following new color classes and text classes
for multibuttonentry widget are added.

"multibuttonentry_bg", "Multibuttonentry Background"
"multibuttonentry_item_bg", "Multibuttonentry Item Background"
"multibuttonentry_item_bg_selected", "Multibuttonentry Item Selected Background"
"multibuttonentry_item_text", "Multibuttonentry Item Text"
"multibuttonentry_item_text_pressed", "Multibuttonentry Item Pressed Text"
"multibuttonentry_item_text_disabled", "Multibuttonentry Item Disabled Text"

@feature

Reviewers: raster, cedric, Hermet, kimcinoo, woohyun

Subscribers: SanghyeonLee, eagleeye, id213sin

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 14:55:54 -08:00
Hosang Kim 1109e27fb5 scroller: add color classes
Summary:
The following new color classes
for scroller widget are added and changed.

Reviewers: raster, cedric, Hermet, kimcinoo, woohyun

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 14:54:31 -08:00
taehyub 99e4f86bab ctxpopup: add color class
Summary:
Apply ctxpopup color class
 - ctxpopup_bg

Test Plan:
  1. change ctxpopup bg color class in colorclass.edc
  2. run elementary test
  3. check the color of ctxpopup bg

Reviewers: Hermet, kimcinoo, woohyun, raster

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 14:52:12 -08:00
taehyub af4bce7a45 popup: apply popup color class
Summary:
Apply popup color class
 - popup bg
 - popup title bg
 - popup title text
 - popup text

Test Plan:
  1. change popup color class in colorclass.edc
  2. run elementary test
  3. check the color of popup

Reviewers: Hermet, kimcinoo, woohyun, raster

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 14:49:12 -08:00
woochan lee b9672e6d2a spinner: add color classes and text classes.
Summary:
The following new color classes and text classes
for spinner widget are added.

"spinner_bg", "Spinner Background"

@feature

Reviewers: raster, cedric, Hermet, kimcinoo, woohyun

Subscribers: SanghyeonLee, eagleeye, id213sin

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 14:48:31 -08:00
woochan lee 71a2576531 index: add color classes and text classes.
Summary:
The following new color classes and text classes
for index widget are added.

"index_bg", "Index Background"
"index_item_bg", "Index Item Background"
"index_highlight_text," "Index Highlight Text"
"index_item_text," "Index Items Text"
"index_item_text_selected," "Index Selected Items Text"

@feature

Reviewers: raster, cedric, Hermet, kimcinoo, woohyun

Subscribers: SanghyeonLee, eagleeye, id213sin

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 14:40:07 -08:00
Youngbok Shin 4984cecc16 entry: add new text classes and color classes for Entry widget
Summary:
Add new text classes and color classes for Entry widget according to
consistency with other widget's class.
And it removes legacy classes. If we need to support backward
compatibility, the legacy classes have to be maintained in each widget.

Test Plan: N/A

Reviewers: cedric, woohyun, jaehwan, kimcinoo, raster

Subscribers: CHAN

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 14:37:59 -08:00
woochan lee d2b291586e datetime: add color classes and text classes.
Summary:
The following new color classes and text classes
for datetime widget are added.

"datetime_bg", "Datetime Background"
"datetime_separator_text", "Datetime Separator Text"
"datetime_separator_text_disabled", "Datetime Separator Disabled Text"

@feature

Reviewers: raster, cedric, kimcinoo, Hermet, woohyun

Subscribers: SanghyeonLee, eagleeye, id213sin

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 14:37:51 -08:00
Youngbok Shin 3a1bff6959 calendar: add color classes and text classes.
Summary:
The following new color classes and text classes
for calendar widget are added.
"calendar_year_text"         - Year Text in Title Area
"calendar_month_text"        - Month Text in Title Area
"calendar_weekday_text"      - Weekday Text
"calendar_day_text"          - Day Text
"calendar_day_text_holiday"  - Holiday Text
"calendar_day_text_today"    - Today Text
"calendar_day_text_disabled" - Disabled Day Text
"calendar_day_selected"      - Selected Day Effect
"calendar_day_highlighted"   - Highlighted Day Effect
"calendar_day_checked"       - Checked Day Effect
@feature

Test Plan: N/A

Reviewers: woohyun, raster, cedric, kimcinoo, jaehwan

Subscribers: CHAN

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 14:34:10 -08:00
Jee-Yong Um 482a5dc369 inwin: remove a meaningless line in sizing_eval
Summary:
minw and minh are overwritten in the next line at once.
This patch removes a meaningless line.

Reviewers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 14:09:36 -08:00
Lukasz Stanislawski eac2c2e512 gengrid: add scrollto BOTTOM alignment type.
Summary:
Add new scrollto type allowing to align gengrid item to bottom of viewport.
Feature compleates and closes list of all alignment types for gengrid items.

Reviewers: seoz, cedric, SanghyeonLee

Subscribers: seoz

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 14:06:24 -08:00
Lukasz Stanislawski 0a7d24dab1 genlist: new SCROLLTO_BOTTOM alignment
Summary:
Add new scrollto type allowing to align genlist item to bottom of viewport.
Feature compleates and closes list of all alignment types for genlist items.

@feature

Test Plan: elementary_test => Genlist Show/Bring

Reviewers: cedric, seoz, SanghyeonLee

Subscribers: seoz

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 14:05:32 -08:00
Jean Guyomarc'h 42cb79017d sys_notify: support several notification servers
Summary:
An Eo class Elm.Sys_Notify acts as a manager of notification
servers. A manager registers and unregisters notification servers.

Notification servers implement the Elm.Sys_Notify_Interface
which allows to send and close notifications.

Currently, only the DBus server is implemented (legacy code).

Even though there are many changes in the code, there should
be no API nor ABI breaks.

Reviewers: naguirre, seoz, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 11:49:16 -08:00
Lukasz Stanislawski 2f5bed1886 index: accessibilitize index items
Expose elm_index items as accessiblie buttons. Provide name
and "activate" action.
2016-01-04 12:00:40 +01:00
SangHyeon Lee 6e90616d06 genlist : add size_calc forcely about content when elm_layout.
Summary:
If the content object of genlist item is 'elm_layout' class,
minimum size cannot get directly becuase layout do the delay calculating.
So to make proper genlist size calc, before the swallowing,
forcely do the size calc about layout class contents in genlist.

@fix

Test Plan: N/A

Reviewers: raster, cedric, singh.amitesh, Hermet

Reviewed By: Hermet

Subscribers: seoz, conr2d, eagleeye

Differential Revision: https://phab.enlightenment.org/D3478
2016-01-04 18:02:11 +09:00
Youngbok Shin 761e503d03 toolbar: Send a signal when shrink mode is changed.
Summary:
It is useful for changing item's state according to shrink mode.
@feature

Test Plan:
It includes a use case for the patch in toolbar default theme.
Run "elementary_test -to toolbar2".

Reviewers: jaehwan, woohyun, cedric, raster

Subscribers: eagleeye

Differential Revision: https://phab.enlightenment.org/D3481
2016-01-04 10:43:35 +09:00
Mike Blumenkrantz 820b1bafdb box: re-set max extents sizes to -1 during recalc
0 is a "valid" max size, so using it as the default value
results in a box being 0x0 if there are no explicit max size
hints set on any child objects

ref aef9d23550bbcd74829a5d75d5226ba394a9da87
2016-01-02 11:45:19 -05:00
Hermet Park 3d028e1493 tooltip : prevent blowing memory up in the middle of function.
user may remove a tooltip in their callbacks.
this patch is just a sort of the defensive code.
2016-01-02 21:51:57 +09:00
Mike Blumenkrantz 80fc568aed box: implement aspected item layout
tl;dr: if you haven't used aspect hints on objects packed into boxes,
this commit has no effect on anything you've done

in some cases, using weight+align hints are not sufficient in order to
do a simple box packing of objects.
one example of this is when a box's size is not explicitly determined,
such as if it is packed with EXPAND into another container and contains
only objects with no min size hint, such as images. in this case, the box
will determine that its min size is extremely small, resulting in nearly-hidden
contents inside the box.

using aspect hints, this outcome is noticeably different. the expanded/filled
potential size of a box item is used to calculate the aspected size, and this
size, if it fits within min/max constraints, is then used to calculate the min
size of the box.

as a more concrete example:
* create box with maximum size 100x50
* pack 2x image into box
 - set VERTICAL aspect, EXPAND, FILL
have 2x 50x50 images

also I added some docs

@feature
2015-12-31 16:08:41 -05:00
taehyub d36f570bc1 popup: add popup dismiss function for hide effect
Summary: add popup dismiss function for hide effect

Test Plan:
 1. applied this patch
 2. launch elementary_test
 3. run "popup" -> "popup-center-title + text + 1 button + hide effect"
 4. click the "close" button and check the hide effect

Reviewers: Hermet, woohyun, kimcinoo, raster

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

@feature
2015-12-31 13:13:55 +09:00
Chidambar Zinnoury f6db79f205 elementary spinner: Disable dragging over the decrease and increase buttons in the default theme.
Previously, clicking and holding the decrease or increase button would start the drag mode, which made the buttons pretty much unusable on a touchscreen.

 Now, it is only set over the text button as expected.

 For the record, dragging is unusable for a small count of discrete values as the value will change for each and every pixel movement–have a go at the months spinner test.
2015-12-29 18:55:56 +01:00
Chris Michael 1053feafa1 elementary: Fix formatting
NB: No functional changes

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2015-12-29 10:24:08 -05:00
Vincent Torri 3fd1b2555b Fix compilation after dlfcn integration into Evil 2015-12-29 22:10:50 +09:00
Carsten Haitzler 087b81a2e6 elm - cursor - fix job handling to not leave rogue jobs
valgrind pointed out an issue in elm cursor handling. this fixes that.
the handle was lost, yet it was still around due to it being
overwritten without deletion.

@fix
2015-12-28 17:39:50 +09:00
Chris Michael 8075831e35 elementary: Comment out unused functions
Seems these 2 functions are currently unused inside elm_calendar. For
now, let's just #if 0 them out

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2015-12-24 16:51:30 -05:00
Daniel Juyung Seo a0414cf2bd genlist: Remove genlist clear scenario from the basic genlist test.
It was a bad idea to add this test to the basic genlist test. Moving the
focus with arrow keys faced unexpected genlist clear to testers. We have
"genlist del" test so it's ok to remove this.
2015-12-25 03:34:28 +09:00
Daniel Juyung Seo 56b5e43f2d genlist: Make more realistic scenario.
With this, we can test with arrow keys and find more bugs.
2015-12-25 03:31:17 +09:00
Lukasz Stanislawski ffbe03545f widget: remove redundat resize_object_set call
Summary:
This code is wrong and enforces developers to manipulate
resize_obj filed directly, instead of using elm_widget_resize_object_set.

Test Plan:
check if objects inheriting from elm_widget do not set field
directly.

Reviewers: cedric, raster, seoz

Subscribers: seoz

Projects: #elementary

Differential Revision: https://phab.enlightenment.org/D3362
2015-12-24 14:03:54 +09:00
Jee-Yong Um 36193a72fd elm: fix the default value for size_hint_min
Summary:
The default value of size_hint_min is 0, but in sizing_eval of
some elm widgets, default min value is set to -1.

Reviewers: cedric, Hermet

Reviewed By: Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D3451
2015-12-24 13:46:17 +09:00
woochan lee ccb48ddcd6 spinner: Internal code refactoring.
Summary:
Even doing almost same thihgs in inc_XXX fucntions, dec_XXX fucntion.
It was separated up.

So i merged those functions for code size reduce.

Test Plan:
Run elementary_test
Execute spinner sample.

Reviewers: cedric, Hermet

Differential Revision: https://phab.enlightenment.org/D3455
2015-12-24 13:42:32 +09:00
Felipe Magno de Almeida 4f44ca0a16 efl-js: JavaScript Eolian binding
To configure elementary sources with bindings to use in nodejs add
––with-js=nodejs in configure flags in EFL compilation to generate
node files, then compile elementary normally:

path/to/efl$ configure --with-js=nodejs
path/to/efl$ make
path/to/efl$ make install

path/to/elm$ configure
path/to/efl$ make
path/to/efl$ make install

To use, you have to require elm:

elm = require('elm')

The bindings is divided in two parts: generated and manually
written. The generation uses the Eolian library for parsing Eo files
and generate C++ code that is compiled against V8 interpreter library
to create a elm.node file that can be required in a node.js instance.

@feature
2015-12-23 22:23:46 -02:00
Hermet Park 81bf2796c6 rename an author 2015-12-24 09:19:47 +09:00
Subodh Kumar 7f38944ac6 Elm entry: Fix to hide magnifier when menu is disabled.
Summary:
Fix to hide magnifier when menu is disabled

@fix

Test Plan:
1. Enable magnifier
2. Disable menu
3. Long press and mouse up
4. observe magnifier is not hidden.

Reviewers: tasn, herdsman, thiepha

Subscribers: shilpasingh

Differential Revision: https://phab.enlightenment.org/D3490
2015-12-23 13:05:11 +00:00
Mike Blumenkrantz d512b185bf box: implement Evas.Object_Smart.calculate
this allows boxes to be manually calculated

ref T2836
2015-12-22 13:46:30 -05:00
Youngbok Shin 8d756fe505 calendar: Apply elm_button widgets instead of manually implemented spinner buttons.
Summary:
The spinner buttons in elm_calendar widget can be replaced by elm_buttons.
Then, using elm_button widgets makes it much easier to maintain.
And the buttons has to be focusable with "tab" key just like elm_spinner widget.
The lagacy callbacks for signals from edje is not removed for backward compatibility.
@feature

Test Plan: elementary_test -> calendar, calendar2, calendar3

Reviewers: seoz, Hermet, kimcinoo, cedric, woohyun

Reviewed By: woohyun

Subscribers: CHAN

Differential Revision: https://phab.enlightenment.org/D3198
2015-12-22 18:48:16 +09:00
Shinwoo Kim e1ca60f5c0 [config] fix static analysis issue
Summary: Fix static analysis issue

Fix possible pointer mis-use in elm profile string handling

@fix

Test Plan: Static analysis

Reviewers: cedric, jpeg, raster

Reviewed By: raster

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D3474
2015-12-22 08:04:31 +09:00
Tom Hacohen 2b8c9217e8 Entry: clean up single line init function. 2015-12-21 14:45:34 +00:00
Subodh Kumar 1adf598584 Entry: Add newline filter for single line entry
Summary:
Add newline filter

Using the present filter infra
a newline or paragraph separator filter
is being added for single line entry.

@fix

Test Plan:
Copy multiline text from
and paste it to single line entry.

it will fix T2660

Reviewers: herdsman, tasn

Subscribers: thiepha, DaveMDS

Maniphest Tasks: T2660

Differential Revision: https://phab.enlightenment.org/D3109
2015-12-21 14:41:28 +00:00
Marcel Hollerbach 860baa4657 Elm config: use a name instead of elm_widget_type_get
Summary:
The use of elm_widget_type_get here is pretty harmfull, for the usecase
of inheriting a widget elm_widget_type_get is something else than
before. But the key binding should still work.

@fix T2891

Reviewers: tasn

Reviewed By: tasn

Maniphest Tasks: T2891

Differential Revision: https://phab.enlightenment.org/D3470
2015-12-21 12:57:15 +00:00
Subodh Kumar aadac4388d Elm entry: Fix a typo
Summary:
Fix a typo.

Test Plan: NA

Reviewers: tasn, herdsman

Differential Revision: https://phab.enlightenment.org/D3476
2015-12-21 11:41:47 +00:00
Mike Blumenkrantz d0c95e2eef image: do not block null image loading in the elm layer
this is handled correctly in evas. checking load errors from
the engine/loaders is sufficient, but the printed ERR messages
for these cases have been improved

partially reverts 865383aa0da5d1eb6d29f4ed5447a73f63800a33
reverts ee7d5425628942a45e23a2cb6be253db8ec0b3fd
ref 840dcc618ead292414b0de64a7a3ae38d778311f
ref a915229dc87606472480a8b2eacce9514055ac27

fix Titalia
2015-12-20 11:10:41 -05:00
Jaehyun Cho ae27542219 elm_win: Remove unnecessary layer set for elm_win. 2015-12-18 19:18:51 +09:00
Lukasz Stanislawski eb9a1049fa popup: enable to dismiss popup with accessibility API
Clean up elm_popup actions. Move actions should not be used
from accessibility API. Only dismiss seems to be resonable
action which could be triggered.
2015-12-17 12:13:20 +01:00
Lukasz Stanislawski 9a47568685 tests: adjust atspi roles. 2015-12-17 11:44:25 +01:00
Lukasz Stanislawski 7b690b61d1 atspi: return previous name in overloaded getters
Some overloaded accessible name getters did not respect
values set by developer.

@fix
2015-12-17 11:38:43 +01:00
Thiep Ha 435a8bcd24 wayland cnp: check selection owner before calling losscb
The selection is cleared by losscb when we set it.
As result, selection is not done.
To avoid it, we should check if the new selection owner
is current selection owner or not and only call losscb
if the new selection owner is not the current one.

Test Plan:
In wayland, select text in entry (e.g double click, ctrl-a).
2015-12-17 18:13:17 +00:00
SangHyeon Lee 71cdc2f269 genlist : fix genlist build errors 2015-12-17 17:13:43 +09:00
Sung-Taek Hong 1ea1bba734 elm_photocam: add NULL check
@fix

Reviewers: woohyun, jaehwan, eunue

Differential Revision: https://phab.enlightenment.org/D3429
2015-12-17 16:18:09 +09:00
SangHyeon Lee 278df0cc76 genlist: remove unnecessary data creation
Summary :
after using hash, sd is not needed on block_recalc
so it must be removed.

@fix
2015-12-17 16:15:11 +09:00
Sung-Taek Hong a5eed521fe elm_layout: fix typo in error message
Summary: fix "box part" to "table part" in _elm_layout_table_pack()

Reviewers: woohyun, jaehwan, Jaehyun, Hermet

Differential Revision: https://phab.enlightenment.org/D3453
2015-12-17 15:56:27 +09:00
SangHyeon Lee 9c58a193b0 genlist : fix size hash issue when genlist layout sizing evaluated
Summary :
When genlist compressed, size width must updated after sizing eval,
but still hash is not changed after sizing eval, so wrong width are
applied.

so when sizing eval called, free all buckets to get updated width.

@fix
2015-12-17 15:27:59 +09:00
Lukasz Stanislawski ce741b8e55 widget: limit emission of state-changed:showing
Sending atspi events notyfying about visibility change during
widget destruction is pointless.
2015-12-16 16:52:05 +01:00
Lukasz Stanislawski 40eb680d97 naviframe: set better accessibility role and name 2015-12-16 16:28:21 +01:00
Lukasz Stanislawski 8e3b8d947e multibutton_entry: improve atspi support
Expose multibutton items as push buttons supported with three
possible actions: activate, longpress and delete.
2015-12-16 14:00:10 +01:00
Jean-Philippe Andre 01f5083cab image: Lock access to thread variables
Fixes CID 1343345 "Data race condition"
2015-12-16 20:46:09 +09:00
Tom Hacohen 91859748e3 Elm win: Fix potential NULL deref.
Looking at other parts of the code, this could actually be
NULL.

CID1343344
2015-12-16 10:39:20 +00:00
Lukasz Stanislawski 1e0304ea43 hoversel: accessibility enhancements
Allow to dismiss hover using accessibility API.
Change accessibiility role to popup.
2015-12-15 13:30:52 +01:00
Lukasz Stanislawski 328c7d6ba7 hoversel: change accessibility role to popup 2015-12-15 13:30:20 +01:00
SangHyeon Lee 08277c48e5 genlist: supporting homogeneous mode about each item class.
Summary:
previously, homogeneous was only supported for one type of items or group items,
so if user want to use various item styles with different height,
they should set homogeneous false.

This patch is increase usability of homogeneous to make possible homogeneous for
each item class, with the assumption that every item in same class have same height.

Now the item class not only define it's style and class funcitons, also define the
shape properties of item including height and width also.

@feature

Test Plan: Already exist test case in genlist group

Reviewers: raster, cedric

Differential Revision: https://phab.enlightenment.org/D3396
2015-12-14 12:03:07 +09:00
Vaibhav Gupta 394a7e1d4d Entry: Context Menu is now configurable
Summary:
Added a config variable Context_Menu_Disabled to make the appearance
of the context menu configurable.

@feature

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

Reviewers: Hermet, SanghyeonLee, raster, singh.amitesh

Subscribers: stefan_schmidt, alok25, cedric, thiepha, sachin.dev

Differential Revision: https://phab.enlightenment.org/D2463
2015-12-11 16:08:54 +09:00
Mike Blumenkrantz 5a3ca38701 win: redo resize deferral to trigger during pre render
using a job results in the resize occurring after render in the same loop,
meaning that anything which depends on resizes to happen in a certain
time will not have synchronized display vs toolkit geometries

fixes all issues related to wayland window geometries
2015-12-10 15:53:31 -05:00
Mike Blumenkrantz 3efa05c52a win: run wayland region updating during RENDER_FLUSH_PRE
regions have not yet been calculated during RENDER_PRE, and commit
happens during the outbuf flush, so this callback should be the latest
possible time at which window geometry can be sent
2015-12-10 14:20:16 -05:00
Yakov Goldberg c6c3a7f78a Fileselector entry: fix a case when file was not selected
Expected behavior: when Cancel or X is pressed in Filesector
don't change entry.
Wrong behavior: entry is cleaned.
If no file was selected 'file' variable is NULL,
and elm_entry_utf8_to_markup(NULL) returns empty string.
Thus this empty string was set to entry.

@fix
2015-12-10 16:41:08 +02:00
Vincent Torri b51e267447 Fix compilation on Windows (and propably also on Mac)
Reviewers: cedric

Differential Revision: https://phab.enlightenment.org/D3419
2015-12-10 16:10:46 +09:00
Daniel Hirt 616a0c1832 Elm entry: fix null item in item provider.
Item anchors can have null items likes <item size=10x10>. That is,
there is no "href". The problem is that Elm Entry segfaults as it
expects a non-null item. I prefer this fix over passing "" from Edje
Entry, and leave the decision to be made by Elm Entry. It will now just
show the error emoticon if there is no "href".

@fix
2015-12-09 13:38:21 +02:00
Tom Hacohen fbaac7c231 Examples genlist 5: Fix children aspect of the test not working.
This code is obviously wrong and could never have worked.
The parent that is being kept between iterations is being overwritten on
ever iteration, leading to the wrong result.

CID1327358.
2015-12-08 13:18:37 +00:00
Tom Hacohen 6eb2edfbd9 Examples performance: Fix wrong always true condition.
This is again obviously wrong. This code tries to check if the type is not
one of three, what it does instead is checking if it's either not the
first two, or is the third, which is always true (because format can't
be too different values at the same time) and always wrong.

CID1327361
2015-12-08 13:10:33 +00:00
Tom Hacohen ca041fc99c Examples performance: Fix resource leak + potential null deref.
This example is completely broken and doesn't make much sense. Should be
overhauled and probably rewritten/dumped.

This is just to fix the more obvious errors (some pointed out by coverity).

CID1327356
2015-12-08 13:06:04 +00:00
Tom Hacohen c60f8fbae3 Colorselector: Fix some coding style issues. 2015-12-08 12:56:45 +00:00
Tom Hacohen 4df0ca1168 Colorselector: Fix out of bound read.
high should be the last item of the array, not the length of the array.
As part of this change, I also changed the code to use the better way of
getting the array size.

CID1339827
2015-12-08 12:55:33 +00:00
Tom Hacohen 2c686c83c8 Genlist: Add NULL item check to *_item_next_get().
It's there for _item_prev_get(), so I guess it's expected.
2015-12-08 12:55:26 +00:00
Tom Hacohen 467814278f Genlist: Put null check before the deref.
CID1339825
2015-12-08 12:55:20 +00:00
Tom Hacohen 3a9d8ed30f Elm spinner: Fix potential null deref in decimal get function.
This whole code reeks. This generating and parsing strings as a value
store is hacky and could use an overhaul.

This just fixes the more obvious possible errors (that are maybe not
        even possible, just look possible).

CID1339828
CID1339829
2015-12-08 12:47:46 +00:00
Lukasz Stanislawski bdcfa7974b slider: minor accessibility events fix
Emit accessibility events if slider value was chagned through API.
Moreover emit accessibility event more rarely if value is being
changed by the user.
2015-12-08 10:41:36 +01:00
Umesh Tanwar 58b9f34035 gengrid: fix Logic in _item_single_select_left and _item_single_select_right.
Summary:
In _item_single_select_left/right functions if logic is corrected from && to ||.
The previous thing is like: if "there is a generation mismatch" and "item is
disable" then only get the next gengrid item. This seems logically incorrect.

The suggested logic is if "there is generation mismatch" OR "item disabled" then
go for the new item. Whether we get a generation mismatch or item disable, we
should look for next item. So there should be || logic instead of && logic.

@fix

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

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

Subscribers: cedric, sachin.dev

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-07 16:39:40 -08:00
taehyub 51355d307e popup: add popup default align config for other profiles.
Summary:
The alignment of popup can be different in each profiles.
So I added the align configuration of popup.
@feature

Reviewers: cedric, woohyun

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-07 16:39:40 -08:00
Shilpa Singh 99e58b8a43 spinner: add possibility to enter negative value.
Summary:
Even if spinner's min max values range from -ve to +ve, it wasn't possible to enter
-ve values in spinner.

@fix T2915

Test Plan:
1. Launch Elementary Test
2. Launch spinner demo
3. Tap on the editable area of first spinner
4. Enter negative value

'-' is not allowed to enter even though the min max value of spinner ranges from -5000 to +5000.

Reviewers: CHAN, cedric

Reviewed By: cedric

Maniphest Tasks: T2915

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-07 16:39:40 -08:00
Chris Michael 94996d6952 elementary: Update ecore wayland window geometry
As Elementary handles the window border theme, we can more accurately
set ecore_wl2 window geometry from here. The window geometry is
defined as the "visible bounds" from the user's perspective, so the
values we set here should come from the theme.

@fix

ref T2919

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-07 15:34:19 -05:00
Yeshwanth Reddivari c5c228d5be Theme: label - Add fixed to silent warnings.
Summary:
Fix the edje calc error message.
ERR<41630>:edje lib/edje/edje_util.c:3465 _edje_object_size_min_restricted_calc()
file /usr/local/share/elementary/themes/default.edj, group
elm/label/base/slide_short has a non-fixed part 'elm.text'.
Adding 'fixed: 1 1;' to source EDC may help. Continuing discarding faulty part.

Test case:
elementary_test -to 'label slide' --> change sliding speed

Reviewers: cedric, singh.amitesh, herdsman, jpeg

Subscribers: mvsovani, alok25, sachin.dev

Differential Revision: https://phab.enlightenment.org/D3399
2015-12-07 18:25:15 +09:00
Mike Blumenkrantz 6081148d32 elm border: also change shadow program signal name... 2015-12-04 13:53:31 -05:00
Mike Blumenkrantz cd075d0d73 elm border: change shadow toggle program signal source e -> elm
@fix
2015-12-04 13:49:57 -05:00
Chris Michael 605823be21 elementary: Don't call ecore_wl2_shutdown unless we have a display
During _elm_config_sub_shutdown we were explicitly calling
ecore_wl2_shutdown. We should only be doing this if we are actually in
a wayland environment.

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2015-12-04 10:48:45 -05:00
Vincent Torri 7728ab47c0 cursor: add cursor support on Windows.
@feature

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:44:16 -08:00
Vincent Torri 333ff6d481 win32: call ecore_win32 shutdown as part of the shutdown subsystem.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:38:11 -08:00
Vincent Torri 8042bc82d3 cnp: add Copy & Paste support for Windows
It needs the clipboard management in Ecore_Win32

@feature

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:36:50 -08:00
Jean Guyomarc'h aa93516e5f elementary_test: fix memory leak
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:06:37 -08:00
Jean Guyomarc'h 469f90bc67 priv: centralized and safe inclusion of Ecore_Cocoa.h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:06:16 -08:00
Jean Guyomarc'h 9c8dcc5b7d win: add Cocoa support for elm_win_window_id_get() API
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:05:58 -08:00
Jean Guyomarc'h 8c8e811b29 win: use EINA_UNUSED instead of void casting.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:04:58 -08:00
Jean Guyomarc'h 1ef5874225 cnp: cocoa support for copy and paste (text only).
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:04:42 -08:00
Jean Guyomarc'h 20e7090f0f cursor: add support for Cocoa system cursors.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:04:28 -08:00
Jean Guyomarc'h 073beec9ff config: add error messages when profile or config could not be saved.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:04:10 -08:00
Nicolas Aguirre 7408bc7bfa cocoa: call ecore_cocoa_init as part of the init process.
This mimic what x and wayland do. This is need if you want
that ecore_event was inited early.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:03:55 -08:00
Chris Michael bc6184479f elementary: Remove misuse of EINA_UNUSED
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 10:22:37 -05:00
Chris Michael 436e9e91f8 elementary: Port elementary config code to use Ecore_Wl2 library
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 10:22:37 -05:00
Chris Michael 7519a39736 elementary: Port elementary copy/paste code to use Ecore_Wl2 library
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 10:22:37 -05:00
Chris Michael 7e1ca56236 elementary: Port elementary window code to use Ecore_Wl2
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 10:22:37 -05:00
Chris Michael 67033e85ba elementary: Port elementary cursor code to use ecore_wl2 library
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 10:22:37 -05:00
Chris Michael b3af99a3ea elementary: Include header for Ecore_Wl2 and add external display
variable

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 10:22:37 -05:00
Chris Michael d33b27af9e elementary: Use ecore_wl2 library for elementary
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 10:22:37 -05:00
Daniel Hirt 929cb0ad45 Entry: add "selection,reset" state
This change will hide the cursor once there is an actual change, and
there is a difference between the selection cursors. If there is no
difference, then it is better to show the cursor again.
2015-12-03 10:10:47 +02:00
woochan lee 70a888cc03 spinner: prevent scrolling when longpress timer enabled.
Summary:
Spinner on scroller case.

Scroll should be freeze when spinner button in long press state.
If not, the scolling will be started after delete longpress timer.

Like a other widgets, scroll not allowing is correct action for this.

@fix

Reviewers: jaehwan, Hermet, eagleeye, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-02 14:56:40 -08:00
Shilpa Singh e69eeef28c elm: set language to edje when elm_language_set is called.
Summary:
Application set language using elm_language_set and when elm_language_set is called
language should be set to edje as well

@fix

Test Plan:
Call elm_language_set and check language should be set to
edje as well.

Reviewers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-02 14:55:12 -08:00
Lukasz Stanislawski ea4f743551 menu: enhance accessibility support 2015-12-02 12:04:56 +01:00
Lukasz Stanislawski ce286ab6e1 box: skip box in accessibility tree by default 2015-12-02 11:56:45 +01:00
Lukasz Stanislawski d1baa35b1a atspi: always use widget's subobj as accessible children
Patch fixes issue when widgets could be orphaned in accessibility tree
due to overloaded accessible_children_get methods in widgets returning
Elm_Object_Items. Widgets like genlist, gengrid, list and toolbar returned
only items as its accessibility children so if some widget was attached
directly to those widgets (like ctxpopup/popup) it become orphaned
in accessibility tree.
2015-12-02 11:43:58 +01:00
Lukasz Stanislawski 0b1cfd791c bg: do not make background accessibility object. 2015-12-01 16:12:18 +01:00
Lukasz Stanislawski cf7323ef9a atspi: add type of accessibility object
Type API provides possibility to skip/ignore widgets in accessiblity
tree. It make sense to ignore object if it do not provide any valuable contextual
information for disabled users. Skipped objects are usually container objects
and are ommited in parent-child relationship.

@feature
2015-12-01 16:06:51 +01:00
Stefan Schmidt 8d92d32676 elm_font: correct argument order for calloc()
calloc() expects count first and the actual size to allocate as second
argument. Say Thank You to smatch for finding this issues for us.
2015-11-30 21:58:39 +01:00
Stefan Schmidt 337c51c946 test: correct argument order for calloc()
calloc() expects count first and the actual size to allocate as second
argument. Say Thank You to smatch for finding this issues for us.
2015-11-30 21:57:58 +01:00
Stefan Schmidt 3a4c2a9b45 test_gesture_layer: correct argument order for calloc()
calloc() expects count first and the actual size to allocate as second
argument. Say Thank You to smatch for finding this issues for us.
2015-11-30 16:24:58 +01:00
Stefan Schmidt d4e5c76b11 atspi: correct argument order for calloc()
calloc() expects count first and the actual size to allocate as second
argument. Say Thank You to smatch for finding this issues for us.
2015-11-30 16:24:58 +01:00
Stefan Schmidt e0148bb076 test_access: correct argument order for calloc()
calloc() expects count first and the actual size to allocate as second
argument. Say Thank You to smatch for finding this issues for us.
2015-11-30 16:24:58 +01:00
Chris Michael 5ee3227847 elementary: Fix test_colorclass function
The test_colorclass function (and prototype) were incorrect in that
they did not have the proper function parameters defined. This lead to
a warning when building elementary tests.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-11-30 09:54:03 -05:00
Daniel Hirt a77cee43d3 Entry: add markup cnp handlers
In Elm_Cnp, a markup data preparer was missing, which resulted
in _x11_notify_handler_targets not requesting
"application/x-elementary-markup" (requested "UTF8_STRING" instead) when
trying to paste markup text from one entry to another (or itself).

Also, there was a missing handling in the selection data callback for
ELM_SEL_FORMAT_MARKUP data format.

This fixes issues like not being able to paste "item" formats to the
entry widget.

@fix
2015-11-30 16:41:50 +02:00
Stefan Schmidt bc05cd81bd elm_widget: correct declaration of function with no parameters
We have to use void in a function declaration if we want no function
parameters. Using just empty parenthesis means the function takes an
unspecified number of parameters.

We had it correct for most declarations and this series fixes it for
the rest.

Thanks for the sparse semantic parser for pointing this out.
2015-11-26 17:51:50 +01:00
Stefan Schmidt b53aeeb3ee test: correct declaration of function with no parameters
We have to use void in a function declaration if we want no function
parameters. Using just empty parenthesis means the function takes an
unspecified number of parameters.

We had it correct for most declarations and this series fixes it for
the rest.

Thanks for the sparse semantic parser for pointing this out.
2015-11-26 17:51:50 +01:00
Stefan Schmidt 3698cd5375 elm_prefcs_cc: correct declaration of function with no parameters
We have to use void in a function declaration if we want no function
parameters. Using just empty parenthesis means the function takes an
unspecified number of parameters.

We had it correct for most declarations and this series fixes it for
the rest.

Thanks for the sparse semantic parser for pointing this out.
2015-11-26 17:51:50 +01:00
Lukasz Stanislawski da7bb272c5 atspi: remove useless "GetDefaultAttributeSet" method
This method exists in atspi spec, however is not implemented
in libatspi library. Drop it for now as it seems useless.
2015-11-26 09:07:09 +01:00
Mike Blumenkrantz c2f1673ac9 comp base: allow mouse events to propagate through comp base -> wallpaper
@fix
2015-11-25 12:36:03 -05:00
Lukasz Stanislawski 450d154fd0 atspi: fix default text attribute signature 2015-11-25 14:06:53 +01:00
Amitesh Singh 387206a151 notify: remove duplicate call of _sizing_eval.
we are already calling _sizing_eval() inside _calc().
2015-11-24 16:30:42 +05:30
Aditya Raj dc91c42346 Popup Example: Fix size calculation issue in popup
Summary:
The function evas_object_resize(win, 480, 800) was being called after evas_object_show(popup)
so size calculations of popup were going wrong(height was 0).
It should be called before creating popup as win is parent of popup,
This fix needs to be done only here as in other cases window is already present before creating popup
but here both are being created for exmaple purposes.

Signed-off-by: Aditya Raj <aditya1.raj@samsung.com>

Reviewers: singh.amitesh, raster

Subscribers: jpeg, tanwar.umesh07, sachin.dev

Differential Revision: https://phab.enlightenment.org/D3360
2015-11-24 13:27:53 +09:00
Mike Blumenkrantz 6325a30a3a table: implement Evas.Object_Smart.calculate
this allows tables to be manually calculated

ref T2836
2015-11-23 12:28:47 -05:00
Mike Blumenkrantz 49b286c473 ibar: stop mouse-in animation after current animation completes
previously, mousing out of an icon during the pulse animation would
instantly stop the animation. this looks strange and is quite noticeable
when mousing through a bar
2015-11-23 12:28:47 -05:00
indefini 64467c0c32 Entry focus region : if single line, show the whole object.
Summary:
If the entry is a single line, rather than return the cursor height,
it is better to return the height of the object.

Reviewers: herdsman, tasn

Differential Revision: https://phab.enlightenment.org/D3169
2015-11-23 16:44:57 +00:00
Jee-Yong Um a5908fc856 theme: add DBG() message when style is set to default (fallback)
Summary:
When _elm_theme_set() failed to set given style, it sets style
as "default".
However, setting style to "default" can be unintended behavior,
so developer should have the chance to get to know fallback.

Reviewers: cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-23 08:45:33 +01:00
woochan lee f21ebbcf04 datetime: fix field arrange code for dynamically field sequence change case.
Summary:
This is for support dynamically field sequence changing case

for example
User sets datetime format as "%d/%b/%y" first.
Then change the format dynamically in runtime to "%I:%M %p"

Previous format datetime items still there.
It breaks view(object dulicated on same geometry)

@fix

Test Plan:
Run datetime sample.
Add changed callback.
Change format in changed callback function.
Check the bug state.

Reviewers: jaehwan, id213sin, Hermet, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-23 08:45:33 +01:00
woochan lee f0e3e97ff6 multibuttonentry: internal entry cnp mode set as "ELM_CNP_MODE_PLAINTEXT".
Summary:
To prevent pasted markup text in entry.
User want tags removed text when paste text into entry.

@fix

Reviewers: jaehwan, Hermet, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-23 08:45:33 +01:00
woochan lee bccb4efe1c multibuttonentry: change default format count.
Summary:
There is no need ellipsis, space as well before "%d".
The "%d" will show the actual invisible item count.

@fix

Reviewers: jaehwan, Hermet, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-23 08:45:33 +01:00
Lukasz Stanislawski 74626eafd2 atspi: typo fix 2015-11-21 16:19:53 +01:00
Lukasz Stanislawski 1f3aa9be36 atspi: support key modifers in bridge.
@feature
2015-11-21 14:01:54 +01:00
Lukasz Stanislawski ccc4cefdab atspi: move root object creation to atspi class. 2015-11-20 12:27:19 +01:00
Amitesh Singh fc6de45f4a notify: fix hide animation
This feature has been added long time ago but it never worked before.
I delayed the parent object hide call when hide signal is present
in theme.

Test:
1. elementary_test -to notify
2. Click Left and wait for timer to expire
3. Click Left and click "close" button on notify. Now hide animation
happens when notify hides.

@fix
2015-11-20 16:53:12 +05:30
Amitesh Singh 77cf67c283 notify: fix broken timeout feature in elm_notify
Add missing signal "elm,action,hide,finished" in notify theme
and hide the notify object when hide is finished.

fixes T2853
@fix
2015-11-20 14:27:45 +05:30
Lukasz Stanislawski 00cc3d22f3 atspi: unprotect subset of methods
Unprotect methods which are ment to be a part of public API.
This methods were initially unprotected, however it looks like
during eo refactoring @protect tags were added by mistake.

@fix
2015-11-18 16:36:28 +01:00
Youngbok Shin ebbc66a25c gengrid: Prevent duplicated selected function calls when item is unselected in the function.
Summary:
If item is unselected in a selected function,
selected function will be called once more from _elm_gengrid_elm_widget_on_focus.
It is happened when elm_gengrid object has no focus and one of item is selected by mouse up event.
To fix this issue, we need to set focus to item and keep the address of selected item before calling selected function.
@fix

Test Plan:
1. Install & Run efbb (Escape From Booty Bay: https://git.enlightenment.org/games/efbb.git/)
2. Select a level in the main menu. (It is using elm_gengrid).
3. See duplicated target images.

Reviewers: cedric, SanghyeonLee

Reviewed By: SanghyeonLee

Differential Revision: https://phab.enlightenment.org/D3323
2015-11-18 19:39:13 +09:00
Subodh Kumar 7f8973ede6 Elm entry: Keep cursor at inserted position after dnd.
Summary:
Keep cursor at inserted position after dnd.

For good user experience, after dnd users expect
the cursor should be at the last inserted position.

@feature

Test Plan: NA

Reviewers: thiepha, herdsman, cedric, tasn

Subscribers: shilpasingh

Differential Revision: https://phab.enlightenment.org/D3267
2015-11-18 11:57:49 +09:00
Mike Blumenkrantz 332f1cd626 win: only perform maximize frame state updating during ecore-evas callback
running this during csd button activation leads to state mismatches when
maximize is not triggered from the csd button

@fix
2015-11-17 18:20:04 -05:00
Daniel Zaoui fd3d6488f6 Clouseau: handle case when the library is not installed
Eina module errors are printed on the screen when the library is not
installed in the system and Clouseau debug is enabled.

The module pointer is not NULL checked, leading to an error message when trying
to load this NULL module.

@fix
2015-11-12 08:39:46 +02:00
Stefan Schmidt 3580978391 elm_prefs: mark some local symbols static and align thus with their declaration 2015-11-11 17:47:57 +01:00
Stefan Schmidt 0ea4c7b13c elm_prefs: remove some unused functions 2015-11-11 17:45:13 +01:00
Stefan Schmidt 160d740fc3 elm_transit: mark some local symbols static 2015-11-11 17:31:48 +01:00
Stefan Schmidt 6a7423b6ae elm_map: mark some local symbols static 2015-11-11 17:27:29 +01:00
Stefan Schmidt b8b2d6288b elm_main: mark some local symbols static 2015-11-11 17:23:59 +01:00
shashank.p 38191397a7 Genlist: Fixed a possible crash in filter iterator and a typo.
Summary:
1. If the sd->items list is empty any time and container_get is used on filter iterator, it will lead to crash. Solution is to not rely on sd->items and maintain a pointer to container when iterator is created.

2. There was a typo while filter feature was added earlier. Fixed it

@fix

Test Plan: NA

Reviewers: SanghyeonLee

Reviewed By: SanghyeonLee

Subscribers: rajeshps, shilpasingh

Differential Revision: https://phab.enlightenment.org/D3319
2015-11-11 15:30:58 +09:00
godly.talias 087529298b hoversel: add item disabling support.
Summary:
Hoversel items can be disabled using elm_object_item_disabled_set
@feature

Test Plan: elementary_test

Reviewers: prince.dubey, shilpasingh, raster, Hermet, conr2d, cedric

Subscribers: poornima.srinivasan, rajeshps

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-10 15:15:31 -08:00
Hosang Kim 100ca86669 slider: fix slider focus bug
Summary: when slider is focused and slider's indicator mode is not ELM_SLIDER_INDICATOR_VISIBLE_MODE_ON_FOCUS, slider's indicator popup blinked.

Test Plan: elementary_test -> slider -> focus out -> click slider again

Reviewers: seoz, cedric, raster, Hermet, woohyun, CHAN, id213sin

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-10 14:31:06 -08:00
woochan lee 78dc004d14 spinner: code clean up for readability.
Summary: Line change by meaningful paragraph.

Test Plan: N/A

Reviewers: Hermet, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09 16:29:07 -08:00
woochan lee ac4b0bc789 spinner: add entry filter for accepted only digits and "."
Summary:
When spinner activated with entry, user can input any characters in entry.
It degrades the usability.

Add filter for only can input numbers and "." for case of decimal point existing.

I will add entry filter for limit size as well after this commit.
This spinner features may help for app developer and users too.

@feature

Test Plan:
Run elementary_test
Test various spinner format for check this.

Reviewers: Hermet, cedric

Subscribers: id213sin, shilpasingh

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09 16:28:22 -08:00
Jean Guyomarc'h cd6ddbdb3f segment_control: fix variable affectation
Summary:
When an Elm_Segment_Control object is created, the constructor calls
the smart_add() behind the scenes. It then calls _update_list() which
calls _position_items(), with the sd->obj unset (because it was set
after calling super constructors). This led to a CRI() (and therefore
to a backtrace) on the creation of each Elm_Segment_Control.

@fix

Test Plan: elementary_test

Reviewers: stefan_schmidt, cedric, raster

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09 16:13:19 -08:00
Subodh Kumar d0497272d1 hoversel: refactor a bit to avoid code duplication.
Summary:
Avoid code duplication

Two dismissal signals at two different places
created some confusion and also code is duplicated.
Also removed some extra space.

Test Plan: NA

Reviewers: cedric

Differential Revision: https://phab.enlightenment.org/D3269
2015-11-09 16:06:26 -08:00
shashank.p 1e2b58a8c8 genlist: modified first/last/prev/next get API for filtered list.
Summary: elm_genlist_first_item_get(), elm_genlist_last_item_get(), elm_genlist_item_prev_get(), elm_genlist_item_next_get() should return the next filtered item if filter is applied on the genlist.

Test Plan: test_genlist.c => Genlist Filter demo updated

Reviewers: shilpasingh, cedric, SanghyeonLee

Subscribers: divyesh, rajeshps

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09 16:03:08 -08:00
Shinwoo Kim 278ceaa12e conform: retry connect to indicator when confrom fails connect.
Summary:
An application starts before the indicator has. In this case,
the application should try to connect again with the indicator.

Test Plan:
1. Start an application without the indicator service.
2. Start the indicator service.

Reviewers: raster, Hermet, woohyun, jaehwan, cedric

Subscribers: seoz

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09 16:00:19 -08:00
Shilpa Singh f1f1ed290c naviframe: subtitle,show signal not sent
Summary:
1. When subtitle is set using actual part name "elm.text.subtitle",
subtitle,show signal is not sent issue fix.
2. Remove unnecessary checks, maintain code readability.

@fix

Test Plan:
Set text using edc part name elm.text.subtitle

Reviewers: Hermet, cedric

Reviewed By: cedric

Subscribers: shashank0990

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09 14:34:40 -08:00
woochan lee 41bfc98606 index: internal item's edje object handling logic changed to improve performance.
Summary:
The box_clear, box_fill internal functions called when almost every internal chage happend.
(resize, theme apply, item append, item delete etc...)
Then those APIs delete/create item's edje object for all of the items.

It's very not good action for performance.
So, i changed this just edje object box unpack/pack instead of delete/create.

@fix

Test Plan:
Working test on elementary_test
and Call all of the index APIs for check this change.

Reviewers: Hermet, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09 12:37:09 -08:00
Youngbok Shin 6bfe82cc77 toolbar: reduce changing widget parent-child relationship when an item is added.
Summary:
It is an legacy of old code. When the view object of item was edje,
I think there was no meaningless parent-child relationship changes.
But, now, the view object is elm_layout and if we add object in proper order,
we don't need to make an useless parent-child realationship in any moments.

Test Plan: None

Reviewers: woohyun, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09 12:37:09 -08:00
Shilpa Singh 043a7e1210 toolbar: add item_signal_emit.
Summary:
Application cannot send signals to toolbar item using elm_object_item_signal_emit API.

@feature

Test Plan: Send signal to toolbar item from app using elm_object_item_signal_emit widget.

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09 12:37:09 -08:00
Youngbok Shin 73dbb059c1 toolbar: remove a legacy code.
Summary:
The icon is already sub object of VIEW(item) by content_set.
We don't need to make icon as a sub object of obj again.
It was used when VIEW(item) is Edje object.

Test Plan: None

Reviewers: Hermet, eagleeye, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09 12:37:09 -08:00
Shilpa Singh 8f3e250418 colorselector: read color names instead of RGBA when accessibility is set
Summary:
Issue: When accessibility is set, individual color item's RGBA values are read
instead of actual color names.
Solution: Read color names by matching the color RGBA from the array.

Test Plan:
enable accessibility
run elementary test
select colorselector demo
click on individual color palette items

Reviewers: cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09 12:37:09 -08:00
Jee-Yong Um 8ffd8d190d hover/hoversel: clean up code for getting edje_object_data
Summary:
There are several lines to get edje_object_data from elm_hover
or elm_hoversel like edje_object_data_get(elm_layout_edje_get(obj), "key");
These codes can be replaced with elm_layout_data_get(obj, "key");

Reviewers: Hermet, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09 12:37:09 -08:00
Prince Kumar Dubey 02906c7865 conform: if window is in background, indicator must not update the plug information.
Summary:
When the window is in background, for associated conformant, indicator must not update the plug information.
To fix this issue, On window goes to background, the associated plug handled by confromant is deleted.

Test Plan:
On any device (like handset) which should have indicator support, this scenario can be reproduce. I tested on a handset
with gdb attach to running process having window and confromant with indicator support.

Reviewers: raster, Hermet, cedric

Reviewed By: cedric

Subscribers: rajeshps, govi

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09 12:37:09 -08:00
Shilpa Singh c713fe4bc3 calendar: weekdays do not get translated when language is dynamically changed issue fix
Summary:
When calendar widget is already created and if we change language,
weekdays do not get translated because weekday string is statically
stored only during create.
Update the weekdays again when object is changed.

@fix

Test Plan:
1.Create and show calendar widget
2.Change the language
Weekdays do not get translated

Reviewers: Hermet, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09 12:37:09 -08:00
godly.talias 8042242b3d hoversel: do item view creation at the time of item addition.
Summary:
Currently hoversel creates the item view when user clicks on hoversel,
So it will cause a delay for the hover to come depending on number
of items as the items in hover have to be created. If item creation
is done during item_add that delay can be avoided and pressed effect also
will become smooth (item_add will be taking more time with this change, but
it happens only once). If applications prefer memory usage more than execution
time, then applications can do item_add in hoversel clicked callback.

Test Plan: elementary_test

Reviewers: raster, Hermet, conr2d, prince.dubey, shilpasingh, cedric

Reviewed By: cedric

Subscribers: rajeshps, poornima.srinivasan

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09 12:37:09 -08:00
Daniel Kolesa 7a89984e1d build: don't provide --eo to eolian_gen 2015-11-09 20:36:15 +00:00
Stefan Schmidt 62b641b93f configure: Switch to dev mode again. Merge window for 1.17 is open now 2015-11-09 11:46:30 +01:00
Stefan Schmidt 5dd0aef273 release: Update NEWS and bump version for 1.16.0 release 2015-11-09 11:08:34 +01:00
Stefan Schmidt 116e4c0326 po: update po files for release 2015-11-09 11:04:36 +01:00
Wonsik Jung 0c64dc46e6 win : Prohibiting auto-rendering, until elm_win is shown.
Summary:
Although elm_win is only created and evas_object_show with elm_win is not called,
evas_rendering works sometimes.
This rendering is not necessary. Because on one is shown and just back buffer is allocated.
This patch is the prohibiting auto-rendering, if elm_win is shown by calling evas_object_show()
It is effective for power consumption and reducing memory.

@fix

Test Plan:
1. elementary_test : checking all menus's working
2. modifed bg_example_02 : updated elm_bg's color by animator without evas_object_show(elm_win)

Reviewers: jpeg, jypark, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D3282
2015-11-05 20:39:39 +09:00
Lukasz Stanislawski 93d9489819 atspi: add missing SELECTED changed signals
@fix
2015-11-05 10:56:44 +01:00
Jean Guyomarc'h 6c462c653b elm_segment_control: fix invalid parameter
Summary:
Eo complained about an invalid type 'Edje_Object' passed to
elm_widget_sub_object_add(). It is the segment control itself
that should be the subject of the call to this function.

@fix

Test Plan: elementary_test: no more Eo errors

Reviewers: cedric, stefan_schmidt

Differential Revision: https://phab.enlightenment.org/D3277
2015-11-05 16:12:44 +09:00
Carsten Haitzler 0d81f89fe7 genlist tree test - minor - show all callbacks called so people know
act as "docs" so people can see what is called when. minor just in elm
test.
2015-11-05 11:44:16 +09:00
chris 891e8c33bb autoscroll focus: pass the object region position relative to the scroller.
Summary:
The region position passed to region_show and region_bring_in used to be
relative to the object position, not the scroller.

This fixes T1686.

@fix

Reviewers: seoz

Maniphest Tasks: T1686

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-04 16:23:32 -08:00
Hosang Kim dfefdde8f8 interface_scrollable: delete unnecessary smart callback call.
Summary:
When _elm_interface_scrollable_page_bring_in is called, page is not changed yet.
So "page,changed" smart callback is unnecessary.

Sometimes "page,changed" smart callback is called twice.
Because "drag,stop" and "anim,stop"is called it.
So I add updating current page code.

Test Plan:
elementary_test -> scroller

1. using wheel.
2. using "prev page" and "next page".
3. draging sceen

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

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-04 16:23:32 -08:00
Shilpa Singh 480d54d5d9 colorselector: picker spinner UI not proper issue fix.
Summary:
Picker spinner UI not proper, showing blank buttons issue fix.

@fix T2401

Test Plan:
1. Launch elementary_test
2. Select colorselector
3. Tap on picker
4. observe, spinner UI not proper.

Reviewers: cedric, subodh6129

Reviewed By: subodh6129

Maniphest Tasks: T2401

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-04 16:23:32 -08:00
Jean-Philippe Andre a4e0a789d0 notify: animate on hide
There was all the necessary code, except that the default
theme did not implement properly the signal & required data.

There is still a problem though, as the "timeout" smart callback
will be called at the start of the animation, so it's not possible
for an app to hide() or del() at this point (that would get
rid of the animation). But there's no other callback after
the animation ends.

elementary_test -to Notify > "Bottom" illustrates this issue.
2015-11-04 17:24:53 +09:00
Cedric BAIL b17287397a Revert "elm: Add eglfs backend support."
This reverts commit 0d6aedbf44e5c371bddfa2b6b61c9409ed2184e3.

This patch landed a little bit to early.
2015-11-02 15:54:41 -08:00
Nicolas Aguirre a392441fca elm: Add eglfs backend support. 2015-11-03 00:15:09 +01:00
Felipe Magno de Almeida 440ab875fb Remove #include for config.h from C++ public header
Removed #include for elementary_config.h if HAVE_CONFIG_H is
defined. Which causes errors with external projects. Instead,
defined the necessary macros to use the Eo API.
2015-11-02 19:39:55 -02:00
Yeshwanth Reddivari bdf70f176e Hoversel: Fix dismiss callback
Summary: Dismiss callback was getting called on hover object instead of hoversel object.

Reviewers: raster, Hermet, alok25, mvsovani, conr2d, singh.amitesh

Reviewed By: singh.amitesh

Subscribers: sachin.dev

Differential Revision: https://phab.enlightenment.org/D3261
2015-11-02 19:29:57 +05:30
Amitesh Singh c86b0c08c4 test_explode: use evas_object_clipees_has instead
fixes memory leak and better performance
2015-11-02 08:58:15 +05:30
Lukasz Stanislawski 56400822f0 widget: update child_can_focus flag on focusability change
Summary:
Previously child_can_focus flag could be only updated when
child is deleted from object's subobject list. This patch
additionally updates child_can_focus flag when focusability
is changed with elm_widget_focus_can_set function.

Patch solves child_can_focus issue in similar situations:

elm_icon_add(layout);
elm_object_content_set(layout, icon);
elm_widget_child_can_focus_get(layout); // returns EINA_TRUE

icon = elm_icon_add(win);
elm_object_content_set(layout, icon);
elm_widget_child_can_focus_get(layout); // returns EINA_FALSE

@fix

Reviewers: cedric, stefan_schmidt

Subscribers: seoz

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-30 07:22:08 +01:00
woochan lee d7b2b4facc multibuttonentry: fix internal entry be an orphan when editable set API called.
Summary:
When user called "elm_multibuttonetnry_editable_set()" API as false.
the internal entry will be unpacked from box.

Then called that API as true again.
the internal entry just show without box packed.

Also, editable set API should not work in MBE shrink mode.

Test Plan:
Alternately Call elm_multibuttonentry_ediable_set API as true, false.
Then check the internal entry state.

Reviewers: Hermet, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-30 07:05:12 +01:00
Shilpa Singh ffaee8f599 multibuttonentry: when item is clicked/selected, select function not called issue fix.
Summary:
The select function set in item_append does not get called on item selection issue fix.
As per documentation, the function has to get called.

@fix

Test Plan: elementary_test is updated with the demo

Reviewers: navnbeet, Hermet, CHAN, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-30 07:05:12 +01:00
Jee-Yong Um d0b244313e hoversel: remove scrollable_set/get() API
Summary:
Hoversel scrollability can be considered as default behavior of hoversel.
These APIs are not necessary any more.

Reviewers: cedric, DaveMDS

Subscribers: DaveMDS, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-30 07:05:12 +01:00
Amitesh Singh 9aff275143 test_gesture_layer: use bigger font size for entry 2015-10-30 10:17:01 +05:30
Lukasz Stanislawski ca3fcf1481 win: reemit atspi "focused" event on bridge connection
At-spi clients assume that object:state-changed:focused event is emitted
on application start. By the time atspi_bridge will establish
connection on at-spi bus all focused events are already emitted.
To fix this we reemit "focused" event in bridge connection callback.

This fixes a bug when Orca screen reader do not read first element after
application launch.

@fix
2015-10-29 11:41:59 +01:00
Daniel Juyung Seo 24797adcf5 elm: Fix typos fun! 2015-10-29 02:08:16 +09:00
Stefan Schmidt d01380a4bd release: Update NEWS and bump version for 1.16.0-beta3 release 2015-10-26 03:59:15 +01:00
Stefan Schmidt 6cf4cbcf77 po: update po files 2015-10-26 03:50:28 +01:00
Jee-Yong Um e71b32cf60 hoversel: expands scrollable hoversel as large as it can
Summary:
In D2063, "max_size" data item is added to limit the number of items
to show at a time when hoversel is expanded.
However, it limits the number of items too few, so makes scrollable
function useless.
This patch removes limitation of hoversel size with pixels,
but if it needs, developers can set the limitation yet.
(By theme customization)

Test Plan:
elementary_test "hoversel"
click the second hoversel

Reviewers: DaveMDS, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-26 01:47:46 +01:00
woochan lee 859e9a91ce multibuttonentry: fix label packed many times in internal box.
Summary:
The Internal box can has a lot of label for child when user set text many times.
Fix this wrong implement. It has to get only one label for child.

@fix

Test Plan:
Call elm_object_text_set() many times for MBE.
Check the label got a wrong geometry.

Reviewers: Hermet, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-26 01:20:56 +01:00
woochan lee 637254ef60 gesture_layer: fix long tap gesture has wrong timestamp.
Summary:
The timestamp has 0 value when n_long_tap_start callback called.
Then timestamp is same on each n_long_tap_move callback functions.

For fix this bug, update timestamp before called state_set function.
Also update timestamp in every timeout.

Test Plan:
Run test_gesture_layer2.c
Print timestamp in every n_long_tap_XXX callback.

Reviewers: tasn, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-24 04:05:24 +02:00
Andrii Kroitor b922dbd0cb elm_colorselector: fix color selection with spinners
Reviewers: cedric, Hermet, raster, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-24 04:05:24 +02:00
Jee-Yong Um 033820031c elm_hoversel: remove unused internal functions
Summary:
remove unused internal functions
(that added for scrollability, but not used any more)

T2765

Reviewers: Hermet, cedric

Maniphest Tasks: T2765

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-24 04:05:23 +02:00
Cedric BAIL 0d95415b7e Revert "elementary: Comment out (#if 0) unused functions"
This reverts commit 74a7661119d122ec52844ad58c0901db739949f1.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-24 04:05:23 +02:00
Jee-Yong Um 4b7617063f elm_hoversel: change API name (label_auto_changed -> auto_update)
Summary: elm_hoversel_label_auto_changed_set/get() API names are not clear.

Reviewers: Hermet, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-24 04:05:23 +02:00
Jee-Yong Um 33f803a170 elm_hoversel: change Elm_Hoversel_Data member name from scroll_enabled to scrollable
Summary:
elm_hoversel_scroll_enabled_set/get() API were changed to
elm_hoversel_scrollable_set/get().
However, the name of member of Elm_Hovsersel_Data related to those API
are not changed.
It can confuse developers later, so change it same to the name defined
in elm_hoversel.eo file.

Reviewers: Hermet, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-24 04:05:23 +02:00
Vivek Ellur 03747a7ef6 elm_index: Fix memory leak issue in realloc failure
Summary:
@Fix

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

Reviewers: cedric

Differential Revision: https://phab.enlightenment.org/D3214
2015-10-22 12:40:19 -07:00
Vivek Ellur d2d831ddd3 dayselector: fix warning related to argument type
Summary:
@fix

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

Reviewers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-22 12:37:47 -07:00