Commit Graph

7137 Commits

Author SHA1 Message Date
zmike 7899534662 +elm_genlist_item_subitems_get() 2014-02-08 16:03:25 -05:00
Davide Andreoli 1329c89dc3 docs for the new entry style tags 2014-02-08 20:40:34 +01:00
zmike a3ff700982 +genlist_item_subitems_count()
group apis are currently pretty lacking. there should probably be functions for iterating over subitems in addition to this one
2014-02-08 01:16:06 -05:00
Jaehwan Kim db23689614 access: Add smart signal "access,changed"
It occurs that access mode is changed.
Application can add this callback for each widget.
2014-02-08 14:05:14 +09:00
Shilpa Singh 9151befe0d Colorselector: Item Selection/Unselection logic changes and corresponding API additions.
SUMMARY
Item should remain selected once pressed.
When one item is selected other items should be unselected.
No special behavior on long press, item gets selected on mouse up.
APIs added are to get current selected item and to programmatically
control the selection/unselection of an item.

This is patch D515 (had to do by hand).
2014-02-08 13:33:58 +09:00
Andrii Kroitor 3771a6d473 Elementary menu item: handling hidden icon
Summary:
Added noicon menu item state to default menu theme.
Now you can hide icon by setting it to "" (empty string)
Removed check for resetting the same icon name. This allows setting an icon
after it was hidden.

Reviewers: cedric, seoz, raster

Reviewed By: raster

CC: reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D522
2014-02-08 13:17:24 +09:00
Carsten Haitzler a31944daa4 elm-menu - fix style to use current when setting menu bar 2014-02-08 13:13:45 +09:00
Andrii Kroitor 7aa326c4a7 Elmementary menu styling fixed
Summary:
When custom style is applyed to menu the same style will be applyed to
its internal hover object.
Moved hover styles used by menu from hover.edc to menu.edc

Reviewers: cedric, seoz, raster

Reviewed By: raster

CC: reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D514
2014-02-08 13:13:45 +09:00
Jaehwan Kim 9d4a9dae02 access: Add elm_widget_access_highlight_in_theme_set/get.
This is for widget to draw the access highlight itself in theme.
2014-02-08 12:27:41 +09:00
Carsten Haitzler 36a373ce1c Revert "Revert "atspi: event broadcast added. Orca screen reader now ables to read UI.""
This reverts commit 803553c253bc4ee140a4b447c29ffe35c31288ab.

This also removes the unused enum typedef in the header. only c++
seems to care (or -ansi or -pedantic or something)
2014-02-08 11:28:58 +09:00
U. Artie Eoff 2ac7caba96 Revert "atspi: event broadcast added. Orca screen reader now ables to read UI."
Breaks elementary applications compilation

See https://phab.enlightenment.org/T917

This reverts commit 71cd5a1a077807bc32a67d309fba9e1474fffa4d.
2014-02-07 10:49:10 -08:00
Shilpa Singh b2d43d4cf4 Colorselector: Palette_items_get API added.
Summary:
Summary:
Issue:Colorselector adds default palette items by reading colors
from config, application do not have any way to get that color list.
Solution: API added to get the palette's item list.
Signed-off by: Shilpa Singh(shilpa.singh@samsung.com)

Test Plan:
Test Plan: Create a list pointer and call palette_items_get API to get
the list of color items. Change the color of any item to confirm
whether the list has been returned correctly.

Eina_List *list = elm_colorselector_palette_items_get(cs);
Eina_List *list2 = eina_list_last(list);
Elm_Object_Item *color_item = eina_list_data_get(list2);
elm_colorselector_palette_item_color_set(color_item, 0, 0, 0, 255);

Reviewers: seoz, Hermet, raster

CC: govi, myoungwoon

Differential Revision: https://phab.enlightenment.org/D503
2014-02-07 23:35:13 +09:00
Tom Hacohen 5174961edd Elm entry: Set initial select mode for non desktop entries.
Initial select mode was not properly set, as was just left to default.

This, in combination with the following from the efl repo:
commit 211845c885
commit c061e76927
fixes T861.
2014-02-07 14:22:37 +00:00
Jaehyun Cho 4aeb779a48 naviframe: Hide inserted view if the view is not a top view
Summary:
Although an inserted view is not a top view, the inserted view is shown
         because it is not received invisible signal.
         To resolve the problem, the invisible signal is emitted if the inserted
         view is not a top view.

Reviewers: Hermet, raster

Reviewed By: raster

CC: seoz

Differential Revision: https://phab.enlightenment.org/D494
2014-02-07 23:21:31 +09:00
Lukasz Stanislawski 74fbb2c8ea atspi: event broadcast added. Orca screen reader now ables to read UI.
Summary:
added broadcast of focus, window activate/deactivate events on a11y bus
Orca screen reader is now able to read elementary application.

Reviewers: raster, seoz, z.kosinski, kimcinoo

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D508
2014-02-07 23:03:07 +09:00
Tae-Hwan Kim a9aec7a43e [Widget] Prevent widget item API calls while item is deleting except data_get API call. The data by data_set is user_data. So it can be needed inside deleting function trace.
Reviewers: raster, cedric, Hermet, seoz

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D525
2014-02-07 18:09:46 +09:00
Carsten Haitzler 07a4f33868 datetime - fix warning! 2014-02-07 18:08:29 +09:00
Tae-Hwan Kim 8025cb8b46 [Icon/Layout] Clean-up signal callbacks when signal is freed or layout is deleted. If not, dangling edje callback can be remained at some moment.
Reviewers: raster, cedric, seoz, Hermet

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D509
2014-02-07 18:06:06 +09:00
Shinwoo Kim 7de1c8e8cf [access][layout] sort focus list based on geometry value
Conflicts:
	src/lib/elm_layout.c
2014-02-07 15:17:38 +09:00
ChunEon Park b7cf4d8503 win - +null check.
we don't sure target always has clipper.
2014-02-07 14:32:04 +09:00
Daniel Juyung Seo cf3399ffd6 elm: Fixed some typos in the documentations.
- Put @c in front of constants on doxygen.
- Used @p for the parameter.
- Put comma(,) in appropriate places.
2014-02-07 02:53:24 +09:00
Ryuan Choi db892d4ba3 datetime: Simplify the nested loop in _datetime_items_get() 2014-02-07 01:17:44 +09:00
Ryuan Choi 36ea4dea78 datetime: fix wrong condition for validation in _field_limit_get()
It's regression since 9dc3a2829.
We don't need to consider min_limit/max_limit for ELM_DATETIME_AMPM.

This will fix CID 1167969, 1167970
2014-02-07 01:04:18 +09:00
Jaehwan Kim bb90c9d9d0 win: Add a API, elm_win_type_get. 2014-02-06 19:28:39 +09:00
WooHyun Jung 0a1179dde4 elm_layout now supports focused/unfocused smart callback
by itself for widgets that inherit layout class.
If it uses elm_widget's, smart callback will be called at the
beginning or smart_on_focus function.
2014-02-06 16:18:57 +09:00
Ryuan Choi ce7d37ad90 datetime: Enhance launching time of test_datetime by avoiding _reload_format() in visible_set()
visible_set() only changes the visibility of one field while _reload_format()
changes everything.

This patch makes visible_set() just change only related field when only it's state
is really changd(enabled <-> disabled) instead of calling _reload_format().
2014-02-06 01:14:39 +09:00
ChunEon Park c2489943a7 win - +null object checking.
it allows previous highlighted object is empty.
So it should be checked before accessing.
2014-02-06 00:16:59 +09:00
Daniel Juyung Seo de114b6101 entry: Added @since 1.9 for newly added API elm_entry_select_region_set. 2014-02-05 20:59:53 +09:00
Daniel Juyung Seo 86fd47e62f config: Removed unnecessary internal function decralations. 2014-02-05 20:35:09 +09:00
nirajkr 2a8c2f1b53 focus: Added elm_object_focus_highlight_style_get/set() to support custom focus highlight on widget
Summary: This new API will allow widget to have its own focus highlight style

Reviewers: seoz

CC: woohyun, singh.amitesh

Differential Revision: https://phab.enlightenment.org/D501
2014-02-05 19:23:34 +09:00
Jihoon Kim ac16bd6fe6 entry: Add elm_entry_select_region_set API
Summary:
in case of GTK, it provides API to select a region of text (gtk_editable_select_region).
However, there are only API to select all or none in EFL.
This API will provide the way to select a region of text.

Test Plan: elementary_test > entry3 > press 'Region' button

Reviewers: woohyun, tasn, id213sin

Reviewed By: tasn

Differential Revision: https://phab.enlightenment.org/D520
2014-02-05 10:16:13 +00:00
Jihoon Kim 23f20bb23d flip: fix typo in comments 2014-02-05 14:37:46 +09:00
Daniel Juyung Seo 5771ea3b3e win: Renamed unclear internal variable name handled -> in_theme and
added comments.
2014-02-05 09:57:34 +09:00
Daniel Juyung Seo f678457eed spinner: Removed unwanted return from function _button_inc_start_cb().
This code is a leftover of 617cf8859f0f1fec5ea60fefef446b4454815554.
Now fixed!
2014-02-05 01:56:22 +09:00
Shilpa Singh d1ef22bccd spinner: After long press of inc/dec buttons, start continuously increasing/decreasing
Summary:
When inc/dec buttons are pressed, start changing value after longpress has happened on buttons and not immediately.
Signed-off by: Mohammad Irfan (mohammad.i@samsung.com)
Signed-off by: Shilpa Singh(shilpa.singh@samsung.com)

Test Plan: Long press on inc/dec buttons of spinner.

Reviewers: seoz, woohyun

CC: Hermet, jchanwook, raster

Differential Revision: https://phab.enlightenment.org/D365
2014-02-05 01:43:10 +09:00
Ryuan Choi eaedf01afb datetime: Correct the validation of parameter in _field_format_get/_field_limit_get
Because field_list is an array, we should check boundary instead of NULL.
2014-02-05 00:53:14 +09:00
Amitesh Singh 48dc06e1ba win: removed printf in _elm_win_focus_highlight_geometry_get()
Reviewers: seoz

Reviewed By: seoz

Differential Revision: https://phab.enlightenment.org/D516
2014-02-04 22:27:59 +09:00
ChunEon Park 60547a9e1b mapbuf - don't leave the dangling static map pointer that won't be freed.
Some memory profiler tools regard this as the memory leak.
it makes engineers waste time to check this. especially app developers.
2014-02-04 10:27:48 +09:00
Ryuan Choi 315d43e29a datetime: fix doxygen 2014-02-04 01:43:52 +09:00
Daniel Juyung Seo 8acb4820bc elm: Fixed comments and documentations on test_focus and genlist header. 2014-02-04 01:35:40 +09:00
Ryuan Choi c40f30d772 fileselector: Fixed typo of warning message in ELM_FILESELECTOR_INTERFACE_CHECK
It's c&p mistake.
2014-02-04 01:25:18 +09:00
Daniel Juyung Seo 5a787bf58a Colorselector: Item_signal_emit_hook added.
Summary:
Issue: If application has to preselect an item, or change item properties by customizing theme
there is no option provided for the same.
Solution: Add item_signal_emit_hook.
Signed-off by: Shilpa Singh <shilpa.singh@samsung.com>

Test Plan:
Send a signal to item and verify UI
Elm_Object_Item *item = elm_colorselector_palette_color_add(cs, 133, 100, 255, 255);
elm_object_item_signal_emit(item, "elm,state,selected", "elm");

Reviewers: seoz, Hermet

Reviewed By: seoz

CC: govi

Differential Revision: https://phab.enlightenment.org/D504
2014-02-04 00:32:05 +09:00
Amitesh Singh cbae377ef7 focus: Added "focus_part" support on elm widget.
Summary:
Currently, focus highlight comes on the widget's geometry. Elementary does not have option to provide the focus highlight on widget's part.
This patch provides the option to provide focus highlight on the widget's part.
e.g.  data.item: "focus_part" "part";
The focus highlight would come on part's geometry instead of widget's geometry. This patch only works on widgets which uses
resize_obj.

Reviewers: seoz, woohyun

Differential Revision: https://phab.enlightenment.org/D499
2014-02-03 17:52:02 +09:00
Daniel Juyung Seo 18f5c6b19c hoversel: Removed unnecessary null check for elm_object apis. 2014-02-03 14:58:08 +09:00
Ryuan Choi c449cc96c6 datetime: Refactor to launch test_datetime little bit faster
- Added enabled_filed_count to avoid loop in _elm_datetime_smart_sizing_eval().
  sizing_eval is called many times but field_count is only changed when called
  _reload_format().
- Moved redundant if statement out of the loop in _field_list_display().
- Removed redundant call from _elm_datetime_smart_add().
  _field_list_arrange() is called in _reload_format().
2014-02-03 09:03:26 +09:00
Ryuan Choi a1a87c102e fileselector: Fixed that data of "done" signal may start with two slash
When moved to root(/) and typed something in name_entry,
ok button sent //something as as data of "done" signal.

This patch checked current path string not to concatenate two slash.
2014-01-29 23:19:46 +09:00
Daniel Hirt 2f5a0068fd elm entry: Fix anchor bug finding wrong anchor geometry.
Summary: Fix a bug with finding the proper geometry when reporting anchor
interaction. It's easy to see in entry anchor2 test in elementary_test
when clicking on the lower border of the anchor.

Anchor geometries are relative to the textblock object. The problem was
that this was accounted for using the edje object's geometry instead of
the textblock geometry thus causing an offset.

Reviewers: JackDanielZ, tasn

CC: seoz

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

TAsn: Commit message edited by me.
2014-01-28 14:43:43 +00:00
Ryuan Choi 70782a358b fileselector: Fixed that does not navigate / on path_entry
href=/> are not working because /> is considered to self closing tag.

Instead. href='/'> is fine since rEFL2d4ba9e8d
2014-01-28 16:30:06 +09:00
Daniel Juyung Seo 5f0ca660b4 elm: Unified the usage of strncmp.
- Use strlen instead of sizeof(x) - 1 for string length calculation.
- Use !strncmp for null check.
2014-01-27 02:07:44 +09:00
Ryuan Choi c20daaf10f web: Follow latest webkit change to fix build break with latest ewebkit
ewk_view_tiled was dropped.
ewk_view_single -> ewk_view.
2014-01-26 12:26:13 +09:00
ChunEon Park 9b9a3ccc40 fileselector - use the internal widget apis as possible.
We already know some apis are just wrapping the internal widget apis.
Iternally we don't need to call the external apis that have additional object validation checking.
2014-01-26 02:19:23 +09:00
Tom Hacohen ad36b35ffc Revert "[naviframe] Fix to hide the previous view by emitting signal"
This breaks elementary_config (open it and you'll see the weird bugs on
the top left corner). Please fix it and recommit as needed. I have no
time to dive into naviframe and see what this patch is meant to be
doing.

This reverts commit e3784b68e01849a99e06f31e02192ffb19d1275c.
2014-01-24 17:37:24 +00:00
Daniel Juyung Seo 3f4325c459 naviframe: Better structure packing for naviframe item and added more
description about item structure members.
2014-01-24 10:51:48 +09:00
Cedric BAIL eb66e87955 autotools: restore support of static compilation.
This should fix T599.
2014-01-24 10:29:22 +09:00
Daniel Juyung Seo 98a08addc4 elm: Defined the same macro, MAX and MIN, in elm_priv.h
MAX and MIN are defined in a couple of places and they was already
defined in elm_priv.h. So use elm_priv.h's one.
I also moved CEIL to elm_priv.h that can be used in another places.
2014-01-23 23:15:39 +09:00
Daniel Juyung Seo b74c805a74 list: Used macro for list swipe time like genlist. 2014-01-23 23:11:12 +09:00
Daniel Juyung Seo 17e788cc47 entry: Renamed internal macro name with prefix ELM_ENTRY for
consistency.

_CHUNK_SIZE -> ELM_ENTRY_CHUNK_SIZE.
2014-01-23 23:09:28 +09:00
Daniel Juyung Seo 3aeefab17b entry: Used macro for entry delay write time. 2014-01-23 23:08:55 +09:00
Daniel Juyung Seo 79ddfdd961 conform: Use macro for indicator timer. 2014-01-23 22:58:56 +09:00
Ryuan Choi a3c5ee407f elm_cnp: Fix that calls _x11_elm_widget_xwin_get two times at elm_cnp_selection_{set|get}
small refactoring.
2014-01-23 22:22:33 +09:00
ChunEon Park f8d00ae0f2 elementary - override widget translation but work also the base widget's behavior.
Some widgets override the widget translation but it didn't inherit the base widget's function.
Becuase of it,The language changed won't be properly called in the widget tree.

Now it fixed it.
2014-01-23 20:20:43 +09:00
ChunEon Park 39ad0e358e elementary - support language changed callback from a few widgets.
support a language,changed callback if a widget has the text part in default.
2014-01-23 20:07:20 +09:00
ChunEon Park dbacb2fef9 elementary - send signal "language,changed" with one way in the widget.
Call the smart callback in the widget infra so that each widget don't need to hook the smart_translate only for the smart call.

This makes reducing duplicated code and supporting language,chagned from all widgets.
2014-01-23 19:30:34 +09:00
ChunEon Park aebdcff513 elementary - use the focused/unfocused string in widget defined.
Now, it will share the strings so that reduce the binary size also user uses it in one way.
2014-01-23 17:27:17 +09:00
Amitesh Singh aed0272e8c focus: Fixed focus issue that the highlight was not visible on first
click.

Summary:
Focus highlight was not visible on first click on a widget with focus_highlight enabled on the window.
This happens because on first click, the "elm,action,focus,show" signal was emitted before setting focus highlight edje object as theme object of elm window.
In this patch, moved the  _elm_win_focus_highlight_visible_set() call after focus highlight edje object set as theme object of window.
This fixes T774.

Test Plan:
elementary_test->focus then click any widget. Focus won't appear for the first time.

Reviewers: seoz, raster, woohyun

Maniphest Tasks: T774

Differential Revision: https://phab.enlightenment.org/D462
2014-01-23 14:12:53 +09:00
Carsten Haitzler 91c61d0837 naviframe - don't access item after del 2014-01-23 11:59:07 +09:00
Daniel Juyung Seo 3eb9e6b4cf spinner: Uncomment ctype.h inclusion because isspace is used.
It looks like ctype.h is included in some other headers by luck but it
is recommended to explicitly include the necessary header.
Confirmed by glima as he commented this out.
2014-01-23 01:31:53 +09:00
Daniel Juyung Seo ac00267206 spinner: Internal code clean up for spinner.
- Used macro for constant.
- Changed timer name to be more descriptive.
- Added descriptions about timers.
2014-01-23 01:31:53 +09:00
Daniel Juyung Seo e7528a2e78 naviframe: Use elm_widget_item_del() when you want to delete the item
data.

It will call del_pre_func and free the item data.
Special thanks to glima for the report.
2014-01-22 23:33:47 +09:00
Jaehyun Cho 404093c701 [naviframe] Fix to enable item deletion in pop_cb
Summary: Fix to enable item deletion in the registered pop_cb function

Reviewers: Hermet

Reviewed By: Hermet

CC: seoz

Differential Revision: https://phab.enlightenment.org/D487
2014-01-22 22:13:51 +09:00
Jaehyun Cho 1ca6d33e08 [naviframe] do not size evaluate during deletion
Summary: Author: Shinwoo Kim <cinoo.kim@samsung.com>  2012-12-11 20:13:39

Reviewers: Hermet

CC: seoz

Differential Revision: https://phab.enlightenment.org/D485
2014-01-22 22:09:16 +09:00
Jaehyun Cho ef93bf6616 [naviframe] Fix to hide the previous view by emitting signal
Summary:
Previously, previous view was hidden by evas_object_hide.
         However, this method is no longer correct because size calculation of naviframe causes evas_object_show.
         Now, previous view is hidden by emitting signal to naviframe theme and clipper hides the previous view.

Reviewers: Hermet

Reviewed By: Hermet

CC: seoz

Differential Revision: https://phab.enlightenment.org/D484
2014-01-22 22:07:31 +09:00
Daniel Juyung Seo 8298782bdc fileselector: Make fileselector focusable. Ok on Enter key and Cancel on Escape key.
Now fileselector accepts the key event on Enter and Escape.
2014-01-22 18:43:18 +09:00
Daniel Juyung Seo 0ddb97b377 fileselector_button: Added missing description about focus signals. 2014-01-22 18:43:18 +09:00
WooHyun Jung 811c38145d popup: Replace focus_direction_go with focus_cycle. 2014-01-22 18:36:13 +09:00
WooHyun Jung cbb946ee99 elm_widget: Fixed some codes about focus custom chain.
- When appending an object to the focus custom chain,
  event callback about deletion should be added.
- When a widget is deleted, its focus custom chain should be
  managed correctly.
2014-01-22 16:24:25 +09:00
Daniel Juyung Seo 87b3d7d5b5 ctxpopup: Fixed typo and flourished comment. 2014-01-22 15:20:24 +09:00
Jihoon Kim 54ec084e76 fix some typos in comment and description 2014-01-22 13:20:15 +09:00
Daniel Juyung Seo 3c07d8d9a6 config: Added more description about elm_config_indicator_service_get(). 2014-01-22 12:07:55 +09:00
Youngbok Shin 89c3d430a3 entry: Fixed to emit "*enabled" signal to scr_edje when it is not disabled.
Summary: This fixes coverity issue CID 1162751.

Reviewers: seoz, woohyun, tasn

Reviewed By: seoz

Differential Revision: https://phab.enlightenment.org/D482
2014-01-22 11:32:08 +09:00
Daniel Juyung Seo 3e45b920ee elm: Removed unnecessary null check for eina_hash_free and
elm_widget_stringlist_free.
2014-01-22 11:13:30 +09:00
Daniel Juyung Seo 5353aa863c elm: Removed unnecessary null check for free. 2014-01-22 11:13:11 +09:00
Daniel Juyung Seo 0d1ac0fa05 elm: Removed unnecessary null check for eina_list_free. 2014-01-22 10:55:01 +09:00
Daniel Juyung Seo 0c3c2572b9 elm: Removed unnecessary null check for ecore_event_handler_del. 2014-01-22 10:54:58 +09:00
Daniel Juyung Seo db5fe2581d elm: Removed unnecessary null check for evas_object_del. 2014-01-22 10:54:52 +09:00
Daniel Juyung Seo 43533a2fb9 elm: Removed unnecessary null check for eina_stringshare_del. 2014-01-22 10:54:45 +09:00
Daniel Juyung Seo c066009c49 elm: Removed unnecessary null check for ecore_idler_del, ecore_idle_enterer_del. 2014-01-22 10:54:28 +09:00
Daniel Juyung Seo c0d6b27a16 fileselector_entry: Moved declarations of deprecated APIs to
elm_deprecated.h and marked them as EINA_DEPRECATED in c code.
2014-01-21 23:50:31 +09:00
Daniel Juyung Seo 471db42fe4 fileselector_button: Moved declarations of deprecated APIs to
elm_deprecated.h and marked them as EINA_DEPRECATED in c code.
2014-01-21 23:43:41 +09:00
Daniel Juyung Seo 68eca6d62e url: Added underscore(_) to elm internal functions, elm_url_xxx.
- _elm_url_download, _elm_url_cancel, _elm_url_get
- other internal functions in elm_priv.h also have same prefix.
2014-01-21 23:23:37 +09:00
Daniel Juyung Seo a4f3074f9c elm: Removed unnecessary null check for ecore_timer_del,
ecore_animator_del, and ecore_job_del.

As all efl public free apis get null as valid parameter, we do not need
to check null. I also removed some null check for other free apis which
were right next to timer/animator/job del. After this job code got
cleaner.
2014-01-21 23:18:16 +09:00
Ryuan Choi 26dd1db99c Introduce fileselector interface and applied to elm_fileselector.
Summary:
fileselector_button and fileselector_entry should have almost same interfaces with fileselector.
Previously , we exposed them individually such as elm_fileselector_is_save_set().

Instead of adding the same APIs three times, we can reuse one fileselector's API using Eo interface.

This patch introduced fileselector interface and applied it to elm_fileselector.

Reviewers: seoz, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D475
2014-01-21 22:50:35 +09:00
Daniel Juyung Seo 5d45fc195f spinner: Create an internal entry when it is really needed.
Do not create the internal entry on smart add. Create that when it is
needed with editable mode.
2014-01-21 22:12:53 +09:00
Daniel Juyung Seo 8253767035 spinner: Toggle entry on Enter and space key. 2014-01-21 21:59:41 +09:00
WooHyun Jung 6eb6f805ba entry: NULL should be set to the correct position of tmpbuf.
If edje_object_part_text_get gives different text from original one,
length of text can be changed. So the last position of tmpbuf should
be calculated again refering to the current text to be returned.
2014-01-21 21:00:29 +09:00
Daniel Juyung Seo 068c9a095f toolbar: Do not check ev->string for Return key and react on space key.
space key works as same as Return key.
2014-01-21 19:58:10 +09:00
Daniel Juyung Seo fec8441c71 elm: Fixed formatting about EINA_LOG stuff. 2014-01-21 19:58:09 +09:00
Yakov Goldberg 5ddb12a323 widget: doxygen fix 2014-01-21 11:30:39 +02:00
Yakov Goldberg 3379c124df all widgets: change Eo API for "elm_widget_theme()" to "theme_apply"
There are elm_widget_theme/theme_set/theme_get functions.
    In Eolian these functions will be described as "theme" method and
    "theme" property. There is clash here.
    So add suffix "_apply" to Eo API for "elm_widget_theme".
2014-01-21 11:08:29 +02:00
SangHyeon Lee cee12e4f94 [Gengrid] Refactoring gengrid item show reigion calculation
Summary:
Gengrid _item_show_region function calculate gengrid x, y moving postion with scroll to type.
Belows are summaries of this refactoring works.

1. Refactoring recalculation of scroll type.

2. Bug fix :
   - when x or y is 0, y or x value is set as default value, it->position-1.
   - when x or y is less then 1, calculation is not correct.
   - make calculate correct position of y when even though scroll direction is horiziontal
     (when virtical, x is also calculation correct position).

3.  change smart data variable s_type to scroll_to_type to make unity on gen widget.
     (genlist smart data variable name is scroll_to_type);

Reviewers: seoz, Hermet, raster

Reviewed By: raster

CC: bluezery

Differential Revision: https://phab.enlightenment.org/D474
2014-01-21 16:54:59 +09:00
zmike fe2d7a213a prefs init should probably clean up after itself when it fucks up 2014-01-20 13:36:56 -05:00
zmike 92aa572f7e prefs should CRI on add/file_set if init has failed 2014-01-20 13:36:56 -05:00
Youngbok Shin 585be3a4e1 conform: Fixed to get a geometry from *focus_region_get for show_region_job.
Summary:
The geometry of elm_widget_show_region_get is only updated by elm_widget_show_region_set.
If the geometry of *show_region_get is not updated, the result of show_region_job would be incorrect.
So, we need to get a proper geometry using *focus_region_get for focused object.

Reviewers: seoz, woohyun, Hermet, raster, tasn

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D466
2014-01-20 18:54:20 +09:00
Youngbok Shin 5de43831aa entry: Add smart activate for accessbility.
Summary:
In TTS mode, when the entry is highlighten and double tap to the entry,
the entry will be focused. But "clicked" smart callback is not called, input panel is not shown.
So I we need to call the callback and show input panel in smart activate.

Reviewers: seoz, Hermet, woohyun, tasn, jaehwan, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D465
2014-01-20 18:45:51 +09:00
Youngbok Shin 0d81887544 entry: If the scrollable entry is set disable, send "*,disabled" signal to scr_edje too.
Summary:
Default theme of entry does not have any disabled state in "elm/scroller/entry/*" styles.
But EFL developer can make any custom style for entry and scroller and it can has disabled state.
So _elm_entry_smart_disable has to emit "*disabled" signal to scr_edje.

Reviewers: woohyun, tasn, seoz, Hermet, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D464
2014-01-20 18:04:30 +09:00
Ryuan Choi e1ac419d6d fileselector_button, fileselector_entry: Updated FOO_inwin_mode_set() documentation.
fileselector_button initialize inwin mode using the configuration.
Fixed wrong information about default value in API documentation.

In addition, fixed test_fileselector_button.cpp not to show wrong information at initial time.
2014-01-19 15:35:51 +09:00
zmike bf3f4781c7 SHUT UP ELM PREFS!!!!!!!!!!
seriously, this is and has been bullshit since it was added. I don't need an error message every time I do ANYTHING just because some module has never been found.
2014-01-18 01:57:01 -05:00
Ryuan Choi 8acc7ed7eb flipselector: Remove unused variable of Elm_Flipselector_Item
The data for callback is stored in Widget's data variable.
So, Elm_Flipselector_Item's data variable is not needed.
2014-01-17 00:19:49 +09:00
Ryuan Choi 9a17bd67a7 datetime: Delay elm_layout_theme_set until memebers are initialized in _smart_add
There are some warnings in elm_object_disabled_set() because elm_layout_theme_set()
calls _elm_datetime_smart_disable() before creating file->item_obj.
This patch refactors _smart_add to initialize file->item_obj before calling
elm_layout_theme_set().
2014-01-16 22:50:40 +09:00
Jihoon Kim 240f880808 Fix unknown command warning in generating doxygen
elementary/src/lib/elm_access.h:238: warning: Found unknown command `\type'
elementary/src/lib/elm_bg_legacy.h:98: warning: Found unknown command `\r'
elementary/src/lib/elm_bg_legacy.h:98: warning: Found unknown command `\g'
elementary/src/lib/elm_object.h:124: warning: Found unknown command `\content'
elementary/src/lib/elm_image_legacy.h:82: warning: Found unknown command `\group'
elementary/src/lib/elm_image_legacy.h:56: warning: Found unknown command `\group'
2014-01-16 08:44:35 +09:00
Ryuan Choi 933dba3c9c panel: Guarantee the integrity of parameter
- Check whether ret is NULL.
- Guarantee hidden variable is only EINA_TRUE or EINA_FALSE.
2014-01-16 04:41:18 +09:00
Ryuan Choi 384c6f100a panel: Check whether sd->content is NULL in _panel_toggle
sd->content can be NULL when elm_panel_hidden_set is called.
2014-01-16 04:10:38 +09:00
Ryuan Choi 0c0230331a panel: Delay elm_layout_theme_set until memebers are initialized in _smart_add
elm_layout_theme_set can call some methods like _elm_panel_smart_theme and there are some warnings
when these methods manipulate some member variabls which are not initialized yet.
It's because elm_layout_theme_set is called too early in _smart_add.

Spotted while digging warnings after rELM4c3e23de9e46
2014-01-16 04:02:11 +09:00
Ryuan Choi 37ffb188bb elm_widget_xxx.h: Adopt EINA_UNLIKELY and fix indentation in FOO_DATA_GET macros. 2014-01-16 03:34:55 +09:00
Daniel Juyung Seo 7dd5fe10af win: Check null before calling elm_widget_highlight_in_theme_get(). It
can be null.

'target' can be null when the focus in is just called.
2014-01-16 02:33:46 +09:00
Ryuan Choi e62d226ccf fileselector_entry: Removed _mirrored_set(), one line local function
Small refactoring.
It is unnecessary one line function which just calls elm_widget_mirrored_set.
2014-01-15 21:58:07 +09:00
Ryuan Choi 7d72dd6c35 fileselector_entry: Delay elm_layout_theme_set until memebers are initialized in _smart_add
Summary:
elm_layout_theme_set can call some methods like _smart_disable and there are some warnings
when these methods manipulate some member variabls which are not initialized yet.
It's because elm_layout_theme_set is called too early in _smart_add.

Spotted while digging warnings after rELM4c3e23de9e46

Reviewers: seoz, raster

Reviewed By: seoz

Differential Revision: https://phab.enlightenment.org/D459
2014-01-15 21:44:21 +09:00
ChunEon Park 8f59ba7a1f elementary/ctxpopup - no need to use RESTACK callbacks anymore.
Now bg is smart member of the internal object.
let it have a behavior as the member of the smart object.
don't need to care it additionally.
2014-01-15 15:10:32 +09:00
Bora Hwang f4933dc49c ctxpopup: set smart member relationship for objects in ctxpopup
Summary:
to support mouse_down/up/move callbacks of ctxpopup,
all objects in ctxpopup should be in smart relationship with ctxpopup.
Also, with this patch, bg object and arrow object don't have to be called with
evas_object_show or evas_object_hide when ctxpopup is shown or hidden

Reviewers: Hermet, seoz, raster, thiepha

Reviewed By: seoz

Differential Revision: https://phab.enlightenment.org/D458
2014-01-15 14:42:13 +09:00
Daniel Juyung Seo 1f95d660f0 photocam: Updated elm_photocam_zoom_set() API documentation. 2014-01-15 14:39:37 +09:00
ChunEon Park 812bdae606 elementary - don't use __UNUSED__ anymore 2014-01-15 14:36:55 +09:00
Jaehyun Cho afef2271fd [naviframe] Replace naviframe title visible APIs to naviframe title enabled APIs
Summary:
To support naviframe title transition effect, naviframe title enabled APIs are applied.
         To remove the duplicate functionalities, naviframe title visible APIs are deprecated.

Reviewers: Hermet

Reviewed By: Hermet

CC: seoz, raster

Differential Revision: https://phab.enlightenment.org/D426
2014-01-15 14:29:05 +09:00
Carsten Haitzler 066b206a12 cnp - dont access null parent obj in getting xwin 2014-01-15 09:59:37 +09:00
Daniel Juyung Seo a75d84d051 win: Added more description to elm_win_floating_mode_set() API. 2014-01-14 23:29:40 +09:00
Carsten Haitzler 939313e194 elm widget - skip null list entires in focus list 2014-01-14 22:48:28 +09:00
Ryuan Choi 5e46f2ff6d toolbar: Check whether icon is null before sending signal
There are warnings when icon is null since rELM4c3e23de9e46.
2014-01-14 21:46:27 +09:00
Ryuan Choi dbb92436a2 fileselector: Fix that folder only mode shows only files instead of only folders
Issues: T756

It's regression of rELM4693736bb028
2014-01-14 18:14:52 +09:00
Daniel Juyung Seo 44a3450f1c elm: Build in an alphabetical order. 2014-01-14 17:20:29 +09:00
Hosang Kim 9204ce6833 scroller: Fixed wheel event callback
Summary:
scroller is moved page by page if scroller's paging is enable

1. default is move to vertical.
2. move to horizontal with Shift key

Reviewers: seoz, Hermet, jaehwan, woohyun, raster, cedric

Reviewed By: seoz

Differential Revision: https://phab.enlightenment.org/D453
2014-01-14 16:56:52 +09:00
Daniel Juyung Seo a2293d5dbd actionslider: Removed unnecessary line. 2014-01-14 11:41:09 +09:00
Jihoon Kim bf0c4e921a entry: remove duplicated checking variable
'top' variable was checked twice, so it's fixed.
2014-01-14 08:07:22 +09:00
Ryuan Choi 6a8f33b298 els_box: Used Eina_Bool instead of int for the parameters of _els_box_layout 2014-01-14 03:26:16 +09:00
Daniel Juyung Seo 14d53feca0 atspi_bridge: Changed shadow variable names. 2014-01-13 23:15:11 +09:00
Daniel Juyung Seo 45ee408180 ctxpopup, entry: Check widget type by eo_isa not by evas_object_type
string compare.
2014-01-13 23:14:44 +09:00
Daniel Juyung Seo f1457a3540 inwin, layout: Check null before calling eo_isa. 2014-01-13 23:09:25 +09:00
Daniel Juyung Seo b70db6eefb panes: Fixed panes smart callbak calls by fixing default theme.
Panes smart callback depends on the signals from theme but it was broken
when dark theme was introduced.
"clicked" does not work yet, it should be fixed.

Thanks for the report, JackDanielZ.
2014-01-13 23:01:40 +09:00
Daniel Juyung Seo 5c0eccddd5 cnp: Fixed indentation while reading the code. 2014-01-13 23:01:34 +09:00
Ryuan Choi f832375b4a Widget: Removed !obj checks from ELM_WIDGET_DATA_GET_OR_RETURN and ELM_WIDGET_CHECK
eo_data_scope_get and eo_isa returns NULL with complaint when NULL is passed.
So, Removed unnecessary !obj check routine.

In addition, adopt EINA_UNLIKELY for these macros and fix indentation.
2014-01-13 21:11:04 +09:00
Jihoon Kim 81d880cfae entry: Add elm_entry_input_panel_show_on_demand_set/get API
This API sets the attribute to show the input panel in case of only an user's explicit Mouse Up event.
It doesn't request to show the input panel even though it has focus.
2014-01-13 19:32:01 +09:00
Ryuan Choi 114e458f56 elm_win: Removed EE_ENGINE_COMPARE macro to reduce redundant function calls.
EE_ENGINE_COMPARE reduces typing little bit, but it makes redundant function calls
because almost callers call it more than once.
And, there is no way to check whether ecore_evas_engine_name_get is null.

This patch removed EE_ENGINE_COMPARE with small refactoring.
In addition, removed unnecessary check routines from _elm_ee_xwin_get.
2014-01-13 19:00:17 +09:00
Ryuan Choi 23bebb1c47 genlist: Check return value out of the loop in _realized_items_get 2014-01-13 17:34:36 +09:00
Ryuan Choi 34c5efeb36 fileselector: Fix that the enter key does not navigate directory
Moved the navigation logic from callback of "clicked,double" to callback of "activated".
2014-01-13 17:34:36 +09:00
Ryuan Choi 3a3005ffc6 els_box : Move horizontal condition out of some loop in _els_box_layout
Summary:
Almost logic of both horizontal and vertical are same except different axis in
_els_box_layout.
This patch reduced code size and improved speed little bit by moving condition
out of the loop using some extra pointer variables.

In addition, removed unnecessary check routines.
There are already similar logic for them before and after.

Reviewers: raster, seoz, cedric

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D423
2014-01-13 15:47:05 +09:00
Carsten Haitzler d4efd9b07e actionslider - fix unused macros to match current usage and build again 2014-01-13 15:46:31 +09:00
prashant 1c66052faf [actionslider]:enable the mouse event
Summary: On mouse click move the knob on action slider

Test Plan: elementary_test -to actionslider

Reviewers: seoz, singh.amitesh, raster

Reviewed By: raster

CC: raster

Differential Revision: https://phab.enlightenment.org/D384
2014-01-13 15:44:44 +09:00
Carsten Haitzler 3fdf94ab95 atspi - fix warnhings and use %llu (unsigned long long) or obj handle 2014-01-13 15:35:48 +09:00
Lukasz Stanislawski fb01f98afd atspi: accessible and component interface implementation.
Reviewers: raster, cedric, kimcinoo, seoz

Reviewed By: raster

CC: pkaczmarek-samsung, z.kosinski

Differential Revision: https://phab.enlightenment.org/D378
2014-01-13 15:24:35 +09:00
abhi cc03e646c9 Adding elm_tooltip_movement_lock_set() and elm_tooltip_movement_lock_get()
Summary: These APIs allow to enable/disable a tooltip to move with respect to mouse pointer

Test Plan: elm_tooltip_movement_lock_set(), elm_tooltip_movement_lock_get(), elementary_test -to tooltip

Reviewers: singh.amitesh, seoz, raster

Reviewed By: raster

CC: raster

Differential Revision: https://phab.enlightenment.org/D369
2014-01-13 15:22:48 +09:00
Carsten Haitzler 17083663ac elm cnp (dnd) - file:/ is the minimum, not file:// so work with other apps 2014-01-13 14:00:09 +09:00
Carsten Haitzler a188fdda01 fix sign/unsigned compare warn 2014-01-11 16:23:23 +09:00