Commit Graph

10671 Commits

Author SHA1 Message Date
Vaibhav Gupta 040a35aae5 test_scroller: Fix item count variable
Summary:
Since the _count variable is static, the buttons which are added
to scroller, get text value ahead of previously added count, instead
of starting from 1 every time a new window is opened for the example.

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

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

Reviewers: raster, Hermet, singh.amitesh

Subscribers: sachin.dev

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

Reviewers: NikaWhite

Reviewed By: NikaWhite

Maniphest Tasks: T2646

Differential Revision: https://phab.enlightenment.org/D2952
2015-08-17 08:34:21 +03:00
Amitesh Singh ba17c89488 popup: fix content_area resize in case of custom theme
Send elm,scroll,enable/disable signals in theme_apply.
It is a fix of 0891ac5cfc2710d0c89034
Thanks to Dave for reporting this issue.
2015-08-16 00:28:03 +05:30
Amitesh Singh 192a9f874c list: fix crash while setting nearest item in viewport
This is an example of classic code copy and paste mistake.
Probably inspired from similar code in genlist/gengrid.
We were actually deleting the other items (except selected one) in
viewport in _elm_list_nearest_visible_item_get() which results into crash
while deleting the list object.

@fix

Resolves: T2662
2015-08-15 22:55:46 +05:30
Amitesh Singh fecd577f28 popup: make scroller optional in popup
Summary:
@feature

Resolves: T2651

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

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

Subscribers: seoz

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

Test Plan: elementry_test->gengrid->gengrid_focus

Reviewers: seoz, raster, Hermet, JackDanielZ

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

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

@fix

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

Reviewers: raster, Hermet, singh.amitesh, SanghyeonLee

Subscribers: sachin.dev

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

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

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

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

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

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

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

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

@fix

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

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

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

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

@fix

Test Plan: elementary_test -> Gengrid 2

Reviewers: raster, singh.amitesh, cedric, SanghyeonLee

Reviewed By: SanghyeonLee

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

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

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

Reviewers: cedric, q66

Reviewed By: q66

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

Resolves: T2216

Reviewers: seoz, raster, JackDanielZ, Hermet

Reviewed By: Hermet

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

Maniphest Tasks: T2216

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

Conflicts:

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

@fix

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

Reviewers: Jaehyun_Cho, cedric, Hermet

Reviewed By: Hermet

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

Conflicts:

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

Reviewers: seoz, woohyun, cedric, Hermet

Reviewed By: Hermet

Subscribers: cedric

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

Test Plan: N/A

Reviewers: cedric, woohyun, kimcinoo, JackDanielZ, Hermet

Reviewed By: Hermet

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

Reviewers: Hermet

Reviewed By: Hermet

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

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

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

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

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

Thanks to Lukasz Stanislawski for pointing me to this.

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

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

Reviewers: tasn, woohyun, thiepha, herdsman

Reviewed By: herdsman

Subscribers: thiepha, JackDanielZ

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

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

@fix
2015-08-05 10:41:38 +03:00
Youngbok Shin 3fb443df95 focus/list/genlist/gengrid: fix focus highlight issues on list widgets when auto focus enable is on.
Summary:
elm_list, elm_genlist widgets are handle focus highlight
relying on only elm_widget_focus_highlight_enabled_get() API.
The API is not considered about auto focus highlight feature.
So, we need to check a flag for auto focus from _elm_config.
It resolves T2555.
@fix

Test Plan: elementary_test -> List Focus or Genlist Focus

Reviewers: raster, cedric, SanghyeonLee, singh.amitesh

Reviewed By: SanghyeonLee, singh.amitesh

Maniphest Tasks: T2555

Differential Revision: https://phab.enlightenment.org/D2914
2015-08-05 12:27:11 +05:30
Jaehwan Kim aee3de2306 focus: add del callback always.
When the window treats focused object, it should always check
that it is deleted.

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

@fix

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

Reviewers: woohyun, Hermet, CHAN, cedric

Reviewed By: cedric

Subscribers: subodh6129, navnbeet

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

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

Reviewers: cedric, Hermet, woohyun

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

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

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

Reviewers: woohyun, cedric

Reviewed By: cedric

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

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

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

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

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

Reviewers: cedric, Hermet, woohyun

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

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

@fix

Reviewers: Hermet, woohyun, cedric

Reviewed By: cedric

Subscribers: cedric

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

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

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

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

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

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

Reviewers: eunue, seoz, woohyun, Hermet

Subscribers: SanghyeonLee, eagleeye

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

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

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

Reviewers: Hermet, raster, herdsman, cedric, tasn

Subscribers: JackDanielZ, cedric, Hermet

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

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

Reviewers: seoz, raster, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

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

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

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

Reviewers: raster, Hermet, seoz, jaehwan, cedric

Reviewed By: cedric

Subscribers: cedric, singh.amitesh, eagleeye

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

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

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

@feature

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

Reviewers: woohyun, seoz, Hermet, raster

Reviewed By: Hermet, raster

Subscribers: raster

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

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

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

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

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

Reviewers: woohyun, raster, cedric, Hermet

Reviewed By: Hermet

Subscribers: id213sin

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

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

Reviewers: seoz, jaehwan, singh.amitesh, cedric

Reviewed By: cedric

Subscribers: seoz

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

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

This SIG_CHANGED smart callback already supported in gengrid.

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

Reviewers: raster, seoz, singh.amitesh

Subscribers: Hermet, cedric, eagleeye

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

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

@fix

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

Reviewers: Hermet, Jaehyun, cedric

Reviewed By: cedric

Subscribers: cedric

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

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

Resolves: T2623
@fix

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

Reviewers: tasn, herdsman, raster, SanghyeonLee, stefan_schmidt

Reviewed By: stefan_schmidt

Subscribers: stefan_schmidt, herb, seoz

Maniphest Tasks: T2623

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

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