Commit Graph

12736 Commits

Author SHA1 Message Date
Mike Blumenkrantz fd6f12de5d config: add more frames for scrolling options
this looked weird having options outside a frame

@fix
2016-02-18 12:53:52 -05:00
Carsten Haitzler f60527f3ff elm win: fix window redraw if norender is enabled on withdrawn windows
we dont set this config by default so we dont see this - but a window
starts as withdrawn then becomes normal. this means the window starts
not rendering and may take 0.5 seconds to START because the eval is
deferred by 0.5 sec to avoid rapid switch to/from norender and other
states.

@fix
2016-02-18 18:17:27 +09:00
Carsten Haitzler 09d51174ad elm win: fix excess resize callbacks on windows when not really resizing
this fixes excess callbacks on window (and content) objhects resizing
down then back up again when windows are forcibly resized like
fullscreen, maximized and remembered windows.

@fix
2016-02-18 18:17:27 +09:00
Vyacheslav Reutskiy 0822ad2195 elm_widget: do not set NULL as parent for object
When widget has no parent object, it breakes usage of a custom
Elm_Theme. This commit fixes it.

@fix
2016-02-18 10:59:36 +02:00
SungTaek Hong 25a8ada79a map: add scale_cb for map module
Summary:
- in elm_map's _source_mod_cb(), scale_cb is needed to
  load MAP tile module.
- currently, test_map mod.c lacks this scale_cb
  and fails to load Map Tile source.

Reviewers: woohyun, Hermet, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-17 17:05:39 -08:00
Jee-Yong Um f34b1d40fa elm_gen: highlight itself when there are no items
Summary:
When there are no items in genlist/gengrid, highlight stays at one dot of
top-left corner. This patch makes genlist/gengrid itself highlighted
when there are no items.

Reviewers: jpeg, SanghyeonLee

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-17 17:05:39 -08:00
SungTaek Hong 89f07527cd edje_external: fix wrong logic in index
Summary:
- Eina_Bool active_exists is to check whether Eina_Bool active
  is valid or not.
- Setting active_exists to autohide_disabled_set is apparently wrong.

Reviewers: Hermet, cedric, jpeg, woohyun

Subscribers: conr2d

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-17 17:05:39 -08:00
Youngbok Shin 39f3af47d7 entry: add elm.swallow.background part to all of groups
Summary:
elm.swallow.background part will be a default part for
widget's background image.
When entry widget's scrollable status is changed,
the background object will be moved to scr_edje or entry_edje.

Test Plan: N/A

Reviewers: kimcinoo, woohyun, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-17 17:05:39 -08:00
Youngbok Shin d9cf8c037d calendar: add elm.swallow.background part to all of groups
Summary:
elm.swallow.background part will be a default part for
widget's background image.

Test Plan: N/A

Reviewers: woohyun, kimcinoo, cedric, Hermet

Subscribers: Hermet

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-17 17:05:39 -08:00
Shilpa Singh 41a5cb2b04 spinner: add invalid input validity filter
Summary:
Do not allow invalid input in to spinner.
Invalid Input can be:
1. '-' should not be inserted anywhere but the starting position, and no more than one '-' can be inputted.
2.  No more than one '.' can be inserted.

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

@feature

Test Plan:
1. Launch elementary test
2. Run spinner demo
3. Enter invalid inputs like inserting more than one '.', '-' or insert '-' anywhere else part from 1st position.

Reviewers: raster, CHAN, subodh6129, cedric

Subscribers: govi, buds

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-17 17:05:39 -08:00
Mike Blumenkrantz 5caa2df05b cursor: do not unconditionally unset cursor before setting an engine cursor
this is unnecessary: every single engine unsets the cursor when the object
has been deleted

this deletes enlightenment's cursor object

ref 678437003f219f783ba14859a805ea27997470fd

@fix
2016-02-17 18:41:18 -05:00
Mike Blumenkrantz 24a61a25d1 ctxpopup: completely disable focus-setting on show
this was previously disabled for internal list objects, and now
it is disabled for all subobjects of ctxpopup. applying focus here
invokes every possible focus bug in elementary and prevents the application
from being useful in any way

ref 974c8b05a4c97367b636593f5420ff01e8364aac
ref T3088

@fix
2016-02-17 16:00:42 -05:00
Vitalii Vorobiov 440ee69335 elm_spinner: do not SIGSEV on NULL format
Usually NULL was correct value, so lets return it back again
2016-02-16 14:05:16 +00:00
SangHyeon Lee 55e8c3b743 gengrid: add all contents unset API for content unset and reusing
Add elm_gengrid_item_all_contents_unset API for support content reuse
and unset. User can get back content objects in unrealized smart callback in item.
see elm_genlist_item_all_contents_unset also.

@feature
2016-02-16 15:36:51 +09:00
Hermet Park d90f2119de transit: rename from elm_transit_revert_go() to elm_transit_revert()
elm_transit_revert_go() sounds like it triggers animation on reverse way.

but this api acutally just change a current state.
It doesn't trigger the transtion.
2016-02-14 20:48:23 +09:00
Mike Blumenkrantz 486f3d51bc genlist: bump item class version to 3 to fix abi breakage
when adding new methods to public interface structs (such as item class),
the version must be bumped and checked in the new interface method calls
in order to avoid breaking abi for previously-compiled apps

ref 4c86a66f28876b68e92a90c8f741eed1130dd034
2016-02-13 14:38:26 -05:00
Mike Blumenkrantz 23ee7c9843 tooltip: set pass events on the tooltip, not the content
tooltip content is swallowed, meaning that edje will be setting pass events
based on the theme

@fix
2016-02-12 18:24:18 -05:00
Shilpa Singh 135802ad1f spinner: crash on illegal format set issue fix.
Summary:
Set any illegal format, spinner crashes, the format set to spinner
has to be valid hence a check is added initially itself to check for validity of
label formats.

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

Test Plan:
1. Set illegal format to spinner for e.g: elm_spinner_label_format_set(sp, "d");
2. Run spinner demo
Crash is observed

Reviewers: cedric

Subscribers: govi, buds

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-12 21:13:06 +01:00
Subodh Kumar f9f4030433 spinner: fix vertical drag style and logic
Summary:
Fix vertical drag style and logic.

For vertical spinner graggable should move
in y direction and since drag value is inverse
of spinner increment and decrement so delta should be inversed.

@fix

Test Plan:
1. Elementary test
2. Vertical spinner

Reviewers: cedric

Projects: #elementary

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-12 21:00:53 +01:00
SungTaek Hong f3166f1c51 layout: send signal when content is set to bg
Summary:
 - elm.swallow.background is a part reserved for customized bg.
 - When default bg image is already set, default bg has to be hidden when customized bg is set.
 - Emitting signal when a content is set to this part makes this hiding process a lot easier.

Reviewers: kimcinoo, cedric

Subscribers: cedric, kimcinoo

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-12 20:59:47 +01:00
Jee-Yong Um 723f2a0f6e box: add support size hint padding
Summary: This patch adds suppoting size hint padding for elm_box.

Reviewers: raster, cedric, Hermet

Subscribers: cedric, kimcinoo

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-12 20:45:28 +01:00
Shilpa Singh dd9ff4aa96 spinner: add min, max filter
Summary:
In spinner's entry allow numbers only with in min/max range
Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>

@feature

Test Plan:
1. Set min/max value to spinner
2. Enter numbers beyond min/max value

Reviewers: CHAN, cedric

Reviewed By: cedric

Subscribers: subodh6129, buds, govi, CHAN, cedric, raster, id213sin

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-12 20:38:40 +01:00
SangHyeon Lee 4607109531 genlist: add reusable_content_get item class function for support automatical content reusing in genlist.
Summary:
   Add new Item Class function reusable_content_get for improve genlist
   performance.
   If user want to reuse specific part contents, return old content
   which was passed by parameter of rreusable_content_get function.
   genlist will automatically caching those contents when item unrealized,
   and reusing it on item realizing.

   reusable_content_get will be performed content_get with old object caching.
   But if user return NULL in reusable_content_get, content_get is called to
   get new object.

   This feature is refered in Task T2813

   @feature

Test Plan: add test in genlist 1 case.

Reviewers: raster, singh.amitesh, cedric

Reviewed By: cedric

Subscribers: smohanty, seoz, woohyun, Hermet, eagleeye

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-12 20:36:16 +01:00
Hermet Park 3ca0135de1 widget: don't access a widget focus if the object is not a widget. 2016-02-13 01:43:56 +09:00
Youngbok Shin b01d3c9e1b entry: add elm_entry_select_region_get() API
Summary:
Already, there is a way to set a selection region:
elm_entry_select_region_set()
The get() API also useful and there is needs for this
inside of elm_entry.c. Add the API and replace codes
in atspi_text_selection_get with the API.
@feature

Test Plan:
1. Run "elementary_test -to entry3"
2. Make a selection on text.
3. Press "Sel" button.

Reviewers: tasn, herdsman, cedric, woohyun, Jaehyun, Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D3639
2016-02-12 20:18:05 +09:00
Jee-Yong Um e1a0dc5518 els_box: fix item sizing error
Summary:
Although items' size hint align are not set to fill,
Elm.Box expands its items.
This patch fixes item sizing error.

Test Plan: attached sample

Reviewers: cedric, jpeg, Hermet, Jaehyun, Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3667
2016-02-12 19:50:55 +09:00
Prince Kumar Dubey f420ed7707 [gengrid] possible crash issue fixed.
Summary: reset show_it, bring_in_it and corresponding flags on item deletion

Test Plan: delete item with animation and rotate the handset display.

Reviewers: raster, cedric

Subscribers: shilpasingh, godlytalias, govi, rajeshps

Differential Revision: https://phab.enlightenment.org/D3672
2016-02-12 19:43:11 +09:00
Youngbok Shin 6fec93c62d label: add elm.swallow.background part to all of groups
Summary:
elm.swallow.background part will be a default part for
widget's background image.

Test Plan: N/A

Reviewers: woohyun, cedric, kimcinoo

Differential Revision: https://phab.enlightenment.org/D3675
2016-02-12 19:39:53 +09:00
Daniel Kolesa 80db303157 eolian helper: add --silent-types to mirror EFL 2016-02-10 16:07:06 +00:00
Vitor Sousa f8c468b55f elementary: Use new object name "Elm.Widget_Item" instead of old name
Replace the old name "Elm.Object.Item" by the new name of the class
"Elm.Widget_Item" in all .eo files.
2016-02-09 14:14:09 -02:00
Larry 7b5e8cb0c3 Elm_Image: moved undefined types to eolian file 2016-02-09 14:14:09 -02:00
Vitor Sousa d27fd97582 elm win: replace Evas_Modifier_Mask by Evas.Modifier.Mask in elm_win.eo 2016-02-09 14:14:09 -02:00
Vitor Sousa dc98aed5a6 elm genlist: use Eolian conventions for Elm.List.Mode in elm_genlist.eo
Use Eolian names for types and values of the enumeration Elm.List.Mode,
instead of legacy names, in elm_genlist.eo.
2016-02-09 14:14:09 -02:00
Larry 50a636efba Elm.Map: move emun Zoom Mode, Source Type and Route Type to Eolian 2016-02-09 14:14:09 -02:00
Larry 3ff853c105 move enum e structs defines of elm_atspi_text to eolian 2016-02-09 14:14:08 -02:00
Vitor Sousa bbde4caccd elementary: move types to elm_interface_atspi_accessible.eo
Move structs, enums and typedefs definitions from
elm_interface_atspi_accessible.h to elm_interface_atspi_accessible.eo.
Give them namespace names to conform with Eolian policies.

Replace all occurrences in elm_interface_atspi_accessible.eo with the
Eolian names.

Adjust include order in elm_interface_atspi_accessible.h to avoid
errors.
2016-02-09 14:14:08 -02:00
Larry be2f2f526f elm_glview: move enums to eolian files 2016-02-09 14:14:08 -02:00
Larry 20609b0520 elm_gesture_layer: move enums to .eo 2016-02-09 14:14:08 -02:00
Vitor Sousa 71cd792bd8 elm gengrid: replace Ecore_Pos_Map with Ecore.Pos_Map in elm_gengrid.eo
Replace Ecore_Pos_Map with Ecore.Pos_Map in elm_gengrid.eo to correctly
use the Eolian name of the type.
2016-02-09 14:14:08 -02:00
Vitor Sousa 3c29a7845b elementary: move definition of Elm_Glob_Match_Flags to elm_general.eot
Move definition of Elm_Glob_Match_Flags from elm_gen.h to
elm_general.eot.
Use the Eolian name Elm.Glob.Match_Flags and replace the older name
by it in all .eo files.

Keep the legacy prefix "ELM_GLOB_MATCH".
2016-02-09 14:14:08 -02:00
Vitor Sousa f8b5b375ea elementary: use the Eolian name for Elm.Genlist.Item.Type in .eo files
Replace Elm_Genlist_Item_Type with Elm.Genlist.Item.Type in .eo files
to use the proper Eolian name of this enumeration.
2016-02-09 14:14:08 -02:00
Vitor Sousa a2f29b86c5 elementary: move definition of Elm_Gen_Item_Class to elm_general.eot
Move the definition of Elm_Gen_Item_Class from elm_gen.h to
elm_general.eot.
Also move the definition of its aliases Elm_Gengrid_Item_Class and
Elm_Genlist_Item_Class from elm_gengrid_common.h and
elm_genlist_common.h to elm_general.eot.

Rename these types to Elm.Gen.Item.Class, Elm.Gengrid.Item.Class and
Elm.Genlist.Item.Class to follow Eolian standards. And rename all
occurrences in .eo files accordingly.

Put elm_gen.h include above elm_general.h to allow the callback fields
to be defined in elm_general.eot.
2016-02-09 14:14:08 -02:00
Vitor Sousa e1881b05f4 elm_calendar,elm_datetime: move struct tm typedefs to .eo files
Move elm_calendar and elm_datetime struct tm typedefs to theirs
respective .eo files.
Use Ecore.Time, an alias to struct tm, to refer to this type in the
.eo files.

Use namespaced names for these typedefs, in order to follow Eolian
standards.
2016-02-09 14:13:59 -02:00
Vitor Sousa 222f3704b3 elementary: move definition of Elm_App_View_State to elm_general.eot
Move the definition of the enumeration Elm_App_View_State from
elm_app_common.h to elm_general.eot, and give it the the Eolian name:
Elm.App.View_State.

Replace Elm_App_View_State with Elm.App.View_State in
elm_app_client_view.eo and elm_app_server_view.eo.
2016-02-09 13:34:37 -02:00
Vitor Sousa 1dd8fbcda9 elm gengrid: fix Elm.Gengrid.Item.Scrollto_Type usage in .eo file
Use the proper Eolian name "Elm.Gengrid.Item.Scrollto_Type" instead of
Elm_Gengrid_Item_Scrollto_Type in functions in elm_gengrid_item.eo.
2016-02-09 13:34:37 -02:00
Vitor Sousa 45e9a15bd4 elm entry: Move the declaration of Elm_Cnp_Mode to elm_entry.eo
Move the enumeration Elm_Cnp_Mode to elm_entry.eo to make it more
accessible for binding generation.
Also rename it to Elm.Cnp_Mode.
2016-02-09 13:34:37 -02:00
Vitor Sousa 8a5d0a38f2 elementary: Rename Elm_Icon_Type to Elm.Icon.Type in .eo files
Correct the usage of the type Elm_Icon_Type by replacing it with its
Eolian name (Elm.Icon.Type) in .eo files.
2016-02-09 13:34:37 -02:00
Vitor Sousa 82e91cb805 elementary: rename classes in Eo files to use Elm as a namespace, not a prefix
Rename classes in Eo files that still uses "Elm" as a prefix to use it as a
namespace.
2016-02-09 13:34:37 -02:00
Stefan Schmidt de0c29b87c theme: fix typo for adding background in ctxpopup
Introduced in 6cf09175874cca9e5859d580a5bad706012b8880. Thanks a lot to Davide
Andreoli for spotting this!
2016-02-05 13:21:08 +01:00
SungTaek Hong 96f1cc1b8c button: add elm.swallow.background part
Summary:
- This swallow part is for custom bg image.
- previous bg has to be hid.

Reviewers: kimcinoo

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-05 08:45:19 +01:00
SungTaek Hong 2df061f1d7 button: remove unnecessary action in program
Summary: @fix

Reviewers: kimcinoo, Hermet, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-05 08:45:19 +01:00
taehyub 976520945b popup: add elm.swallow.background for background customize
Summary: add elm.swallow.background part in elm/popup/base/default

Reviewers: kimcinoo

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-05 08:45:19 +01:00
taehyub 98e447a85f ctxpopup: add elm.swallow.backgournd for backgournd customize
Summary: add elm.swallow.background part in elm/ctxpopup/base/default

Reviewers: kimcinoo

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-05 08:45:19 +01:00
Cedric BAIL 8d6ba5a60a genlist: remove dead code. 2016-02-05 08:45:19 +01:00
Youngbok Shin ff110f7867 win: fix a possible crash in elm_win_add
Summary:
The enginelist[0] can be NULL in some very rare cases.
Then enginelist[0] will be used for strcmp and it make a crash.
@fix

Test Plan: N/A

Reviewers: raster, cedric, woohyun, jypark, jaehwan

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-05 08:45:19 +01:00
Jee-Yong Um 895ed5bde3 elm: add Elm.Layout as edje externals' contents instead of Edje.Object
Summary:
When edje external parts add its content, edje object is added,
but it breaks elementary widget hierarchy.
In Elementary, edje external can use Elm.Layout to add its content.

Reviewers: cedric

Reviewed By: cedric

Subscribers: woohyun

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-05 08:45:19 +01:00
Godly T Alias 2c2704c7f8 genlist: fix for a bug in tree expansion, T3132
Summary:
@fix T3132

If nobody sees issue with this change, this should be backported.

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

Test Plan: elementary_test Genlist Tree, enable Tree effect

Reviewers: prince.dubey, SanghyeonLee, shilpasingh

Subscribers: govi, rajeshps

Maniphest Tasks: T3132

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-05 08:45:19 +01:00
Godly T Alias cb8a5cb38c transit: add possibility to revert an ongoing transition during play
Summary:
Currently the feature available in transit to reverse play a transition is
auto-reverse which will play a transition in reverse mode once a transition
is complete. This feature helps the user to revert a transition at any point
of time when transition is going on.

New API added.

@feature T3019

Use Case:
While doing pinch zoom, we will be doing zoom transit effect from one step to other, during that transit if user do the pinch in reverse direction this API can be called so that transition will be reverted easily.

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

Test Plan: elementary_test Transit Resizing / Transit Zoom / Transit Bezier / Transit Custom / Transit Fade / Transit Flip

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

Subscribers: rajeshps, govi

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-05 08:45:19 +01:00
Jee-Yong Um 96bd8fae7d hoversel: improve key_action_move to handle disabled items
Summary:
Existing key_action_move logic used elm_widget_focus_cycle on hover,
but only handled the first and last item to move focus circularly.
So if the first or last item is disabled, focus movement is blocked.
This patch makes hoversel handle focus movement by itself to handle
disabled item better.

Test Plan: elementary_test -to hoversel

Reviewers: Hermet, cedric, Jaehyun

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-05 08:45:19 +01:00
divyesh purohit c9b3cfd2b9 combobox: prevent empty swallow to be shown on hover_dismiss animation
Summary:
Hover dismiss animation takes 0.5 sec to complete. if the genlist item_count
becomes zero, empty swallow is shown in dismiss animation.
@fix T3124
Signed-off-by: divyesh purohit <div.purohit@samsung.com>

Test Plan:
please run combobox example from elementary_test.

Open hover by pressing on left side button of combobox or pressing "enter/space" key in entry
contained in combobox.
Type a char which is not in any genlist item , for example "a' is not presented in any genlist
item.
empty swallow shouldn't seen in dismiss animation.

Reviewers: shilpasingh, cedric, raster

Subscribers: rajeshps, govi

Maniphest Tasks: T3124

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-05 08:45:19 +01:00
divyesh purohit f297faaa6b multibuttonentry: fix Segfault on pressing Delete Key
Summary:
Pressing "Delete" Key in MBE layout causes Segfault as MBE item is not deleted properly and also focus is not transferred back to MBE.

@fix

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

Test Plan: Run MultibuttonEntry example from elementart_test . Add some MBE items, now press the delete key, it should delete items without causing segfaults and transfer focus to previous MBE item.

Reviewers: raster, cedric, CHAN, shilpasingh

Reviewed By: shilpasingh

Subscribers: rajeshps, govi

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-05 08:45:19 +01:00
Thiep Ha 1048ce14b3 entry: remove unnecessary variables
remove unnecessary dw, dh variables
2016-02-05 15:43:06 +09:00
Shilpa Singh 14c75857dc Elm_Entry: Magnifier Not working properly on corner areas issue fix.
Summary:
When magnifier is moved across corners and outside entry, working of magnifier
is not proper.

Magnifier is Restricted with in the window and to entry area and its position depends
on cursor.
Signed-off-by: Thiep Ha <thiepha@gmail.com>
Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>

@fix

Test Plan:
1. Enable Magnifier export ELM_MAGNIFIER_ENABLE=1
2. Launch elementary test and launch entry3 demo
3. Move magnifier on corners and outside of second entry

The contents of magnifiers are undefined when moved outside entry
and clipper moves in a different direction as magnifier.

Reviewers: cedric, raster, thiepha

Reviewed By: thiepha

Subscribers: buds, govi, rajeshps, subodh6129

Differential Revision: https://phab.enlightenment.org/D3586
2016-02-05 15:05:57 +09:00
Amitesh Singh c4cfb42468 genlist: update all realized items in a single job
Summary:
Its really weird to call same job for each item and deletes that job in
next iteration. Since item_update() deletes the old update_job ecore job
again so basically we call update job only for the last realized item in the list.

 @fix

Reviewers: raster, jpeg, cedric, SanghyeonLee, tasn

Reviewed By: SanghyeonLee

Subscribers: seoz

Projects: #elementary

Differential Revision: https://phab.enlightenment.org/D3644
2016-02-04 23:47:01 +05:30
Felipe Magno de Almeida 00c0591bb9 js: Added layout example 2016-02-03 21:21:29 -02:00
divyesh purohit 67935a462b js: Added combobox class to JavaScript binding 2016-02-03 21:21:21 -02:00
Vitalii Vorobiov 170bb612eb calendar.edc: fix typo in text style
@fix
2016-02-03 12:13:49 +00:00
Chris Michael 2e04bb380d elementary: update mailmap addresses
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-02-02 15:02:20 -05:00
Cedric BAIL 0bd139ed7b panel: no need for destructor anymore as the event handler will disappear in the destructor. 2016-02-02 11:39:10 -08:00
Cedric BAIL 709a5c2f46 genlist: make automatic bounce test configurable. 2016-02-02 11:00:54 -08:00
Cedric BAIL 4e2ef1cbf4 naviframe: switch to use animator,tick. 2016-02-02 11:00:54 -08:00
Cedric BAIL 33d196af7a genlist: switch to efl.core.animator tick. 2016-02-02 11:00:54 -08:00
Cedric BAIL 670a77c16a tests: switch anim test to Efl.Core.Animator tick. 2016-02-02 11:00:54 -08:00
Cedric BAIL dbe9b8fb6e map: use Efl.Core.Animator tick. 2016-02-02 11:00:54 -08:00
Cedric BAIL 3afd1fd41a photocam: switch to use efl.core.animator. 2016-02-02 11:00:54 -08:00
Cedric BAIL ff14f74b5b interface_scrollable: drop use of ecore_animator in favor of efl.core.animator tick 2016-02-02 11:00:54 -08:00
Cedric BAIL 8dacdb465a scroller: prevent the use of uninitialized data in some case. 2016-02-02 11:00:54 -08:00
Cedric BAIL b6fb462257 panel: switch to use per window animator.
Tick provided by to efl.core.animator.
2016-02-02 11:00:54 -08:00
Cedric BAIL 8ea0e7589d win: remove animator,tick. 2016-02-02 11:00:54 -08:00
woochan lee 5e19488932 multibuttonentry: Add item unfocused callback.
Summary:
Even MBE item lose focus, item state did not changed before.
So i send a signal to make item state as default when item lose own focus.

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

@fix

Test Plan:
Run MBE sample.
Click any item.
Click out of MBE area.
See the item still got a highlight.

Reviewers: Hermet, cedric

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

Conflicts:
	data/themes/edc/elm/multibuttonentry.edc
2016-02-02 20:38:14 +09:00
Jee-Yong Um ef5ff1a9ed elm_hoversel: add "escape" key action to dismiss
Summary:
To allow to dismiss hoversel expansion without selecting item
by key, "escape" key action is added.

Test Plan: elementary_test -to hoversel

Reviewers: Jaehyun_Cho, cedric, divyesh

Reviewed By: divyesh

Differential Revision: https://phab.enlightenment.org/D3627
2016-02-02 19:57:20 +09:00
Jinyong Park e8c8f2d893 fix calendar today bug
Summary: After today mark appear once on calendar, it never disappear when user change calendar's year or month

Test Plan: elementary_test calendar2

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D3612
2016-02-02 19:51:59 +09:00
Vitor Sousa 363a3b4438 elm calendar: add mark_del method and move Elm_Calendar_Mark to .eo file
Summary:
Add mark_del as a method in the Elm.Calendar class.
Move the elm_calendar_mark_del() function (which do not receive an Eo object)
to elm_calendar_legacy.h.

Move the declaration of Elm_Calendar_Mark to elm_calendar.eo as an opaque
struct.
Rename it to Elm.Calendar.Mark to follow eolian standards.

Update documentation to refer to mark_del method instead of the
elm_calendar_mark_del() function.

Reviewers: felipealmeida, vinipsmaker, larryolj, cedric, tasn

Reviewed By: tasn

Differential Revision: https://phab.enlightenment.org/D3582
2016-02-02 10:22:30 +00:00
Subodh Kumar d3deb1e6a7 Elm entry: Fix selection using handlers.
Summary:
Fix item selection using selection handler

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

@fix

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

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

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

Reviewers: thiepha, herdsman, tasn

Reviewed By: tasn

Subscribers: shilpasingh

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

Test Plan: NA

Reviewers: herdsman, tasn

Reviewed By: tasn

Subscribers: shilpasingh, cedric

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

Fixes T3122

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

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

This was most noticable if the toolbar or buttons move first

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

Reviewers: Jaehyun_Cho

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

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

Test Plan:
elementary_test -to focus
elementary_test -to genlist

Reviewers: raster, jpeg, cedric, Jaehyun_Cho

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

Reviewers: raster, jpeg, cedric

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

Test Plan: please run combobox example from elementary_test

Reviewers: cedric

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

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

@fix

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

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

Reviewers: cedric

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

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

Test Plan: please run combobox example from elementary_test

Reviewers: shilpasingh, cedric, raster

Maniphest Tasks: T3075

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

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

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

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

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

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

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

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

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

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

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

Test Plan: please run combobox example from elementary_test

Reviewers: shilpasingh, cedric, raster

Subscribers: rajeshps, govi

Maniphest Tasks: T3075

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

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

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

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

Test Plan: please run combobox example in elementary_test

Reviewers: shilpasingh, cedric, raster

Subscribers: rajeshps, govi

Maniphest Tasks: T3075

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

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

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

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

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

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

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

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

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

Test Plan: elementary_test hoversel

Reviewers: jpeg, raster, cedric

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

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

Reviewers: seoz, Hermet, cedric

Subscribers: seoz

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

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

Reviewers: seoz, Hermet, cedric

Subscribers: seoz

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

ref T3058

@fix

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

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

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

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

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

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

@fix

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

@fix

T3008
2016-01-14 15:49:22 -08:00
Stefan Schmidt 2d871335bd elm_config: close file before moving it 2016-01-14 16:36:00 +01:00
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