Commit Graph

446 Commits

Author SHA1 Message Date
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
Carsten Haitzler 939313e194 elm widget - skip null list entires in focus list 2014-01-14 22:48:28 +09:00
Tom Hacohen b01433ff47 Widget: Don't check if it's the correct class everywhere.
ELM_WIDGET_DATA_GET was checking it was the correct class. This is
stupid and wrong (and makes tools rightfully complain) because these
functions are implementations of that class anyway, so that would never
be false.
Functions that outside facing (that is, not called from eo_do) should
use API_ENTRY.
2014-01-06 15:07:16 +00:00
Daniel Juyung Seo fd5c046dfe elm: Changed __UNUSED__ to EINA_UNUSED. 2014-01-06 23:33:57 +09:00
WooHyun Jung fa8ca01128 widget: Fix a bug in elm_widget_newest_focus_order_get.
When elm_widget_newest_focus_order_get is called with can_focus_only,
only focusable objects should be the candidates for newest focused object.
But there are cases that unfocusable object add +1 to newest_focus_order.
2014-01-03 20:02:30 +09:00
ChunEon Park 8b6ef9aaac elementary/widget - don't call theme_set() until base widget is not created yet.
On the widget creation time, we should not set the theme in the widget infra.
This will cause the corruption of the theme_hook working since the widget is not setup yet.
Also the theme_set() will be applied twice each widget will set the themes right after base widget is created.
2014-01-03 14:38:27 +09:00
Jaehyun Cho 432a018916 [elm_widget] Fix not to load theme for mirroring if smart data is not set
Summary: Do not load widget theme for mirroring if smart data creation is not finished.

Reviewers: Hermet, raster

Reviewed By: raster

CC: seoz

Differential Revision: https://phab.enlightenment.org/D428
2013-12-31 20:33:51 +09:00
Yakov Goldberg e93a38c966 widget, spinner: typo in elm_widget_focus_set() 2013-12-31 11:16:35 +02:00
Yakov Goldberg 21da50f601 widget: remove unused return parameter in elm_wdg_orientation_set() 2013-12-30 11:16:19 +02:00
ami afa4398ce2 [elm_object_item] - Added elm_object_item_style_set/elm_object_item_style_get().
Reviewers: seoz, raster

CC: aryarockstar, nirajkr, chinmaya061

Differential Revision: https://phab.enlightenment.org/D373
2013-12-27 20:00:04 +09:00
Daniel Juyung Seo e63dd3110a elm: Unified eina critical manro to CRI.
Being annoyed by different types of eina critical macros - CRI, CRIT,
 CRITICAL -, I concluded to unify them to one. Discussed on IRC and
 finally, CRI was chosen to meet the consistency with other macros -
 ERR, WRN, INF, DBG - in terms of the number of characters.
If there is any missing bits, please let me know.
2013-12-26 13:03:55 +09:00
Daniel Juyung Seo 440c2ce083 elm_widget: added internal documentation about elm_widget_sub_object_add() and elm_widget_sub_object_parent_add(). 2013-12-20 19:08:38 +09:00
Daniel Juyung Seo 6d71a23c3a elm lib: removed all the unnecessary empty lines.
being pedantic.
2013-12-15 06:18:35 +09:00
Daniel Juyung Seo 8a7de8df34 elm_widget.c: fixed formatting while reading the code. 2013-11-30 15:28:44 +09:00
ChunEon Park 2afb6e40ac elementary - added a warning for elm_widget_item_track(). 2013-11-18 13:15:56 +09:00
Yakov Goldberg 656fd97988 widget: typo in Eo OP_ID name 2013-11-17 13:23:17 +02:00
ChunEon Park f9edf8901d elementary/scroller - don't focus region show if the scroller is disabled. 2013-11-07 22:34:57 +09:00
Tom Hacohen 2f1e1554e5 Changed Eo class names to be consistent.
All the class names are now of the format: Elm_Type_Subtype_Extra
2013-11-07 11:44:22 +00:00
Ryuan Choi 11b568a35b elm_widget.c: Fixed warning while scrolling elementary_test using arrow
Summary: Checked whether object which direction pointed is NULL before getting it's data

Reviewers: seoz, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D95
2013-11-04 21:14:46 +09:00
Jaehyun Cho 3f2415fff8 [elm_widget] Enable not to add resize object to or delete resize object from smart member when the resize object is set.
Summary: Currently if the third argument of elm_widget_resize_object_set, 'Eina_Bool sub_obj', indicates whether a resize object is added to/deleted from the sub object or not. This commit makes the third argument, 'sub_obj', also indicate whether a resize object is added to/deleted from the smart member or not.

Reviewers: Hermet, seoz

Reviewed By: seoz

CC: seoz

Differential Revision: https://phab.enlightenment.org/D268
2013-10-18 19:52:56 +09:00
Jaehyun Cho db2d711d64 [elm_widget] Enable not to add resize object to or delete resize object from sub object when the resize object is set.
Summary: Add one more argument, 'Eina_Bool sub_object' to elm_widget_resize_object_set. If the argument, 'sub_object' is set as EINA_TRUE, the new resize object is added to the sub object and the previous resize object is deleted from the sub object.

Reviewers: Hermet, seoz

CC: Jaehyun_Cho, seoz, raster

Differential Revision: https://phab.enlightenment.org/D265
2013-10-17 01:19:40 +09:00
Daniel Juyung Seo 6397761c6a elm_test: Fixed formatting. tab to space.
Changed tab to space before working on the code.
Kinda surprised by the number of tabs we had.
2013-10-14 19:12:32 +09:00
Daniel Juyung Seo e756f97dae elm: Longwaited trailing white space removal. Clean elm up! 2013-09-30 22:15:01 +09:00
Cedric Bail f2b0d4568d elementary: cast an uintptr_t when pushing stuff into a pointer. 2013-09-26 16:35:11 +09:00
Cedric Bail fa2ce3c547 elm_widget: fix widget signal callback memory leak.
Thanks to bluezery D228 for pointing out the issue.
2013-09-25 16:41:12 +09:00
Cedric Bail 29af5e1e43 elementary: update to new eo_parent_get/set API. 2013-09-25 13:34:27 +09:00
Daniel Juyung Seo 9785020b1f elm_widget.c: added comments for very confusable code. 2013-09-25 03:36:03 +09:00
Michael Bouchaud 6374a9cf59 elementary: oops, missing this check 2013-09-18 16:21:10 +02:00
Michael Bouchaud 91848c5b43 elementary: add a way to add some custom part text and save it for Elm_Object_Item 2013-09-18 16:21:10 +02:00
Chris Michael 873cd93da4 No need for a cast here as 'obj' is already Eo when passed in.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-09-17 07:43:39 +01:00
Chris Michael ae9392ab09 Remove __UNUSED__ from function declaration where parameter is
actually used.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-09-17 07:43:39 +01:00
ChunEon Park f426e08982 elementary/elm_object_item - delete the track objects when genlist/gengrid items are unrealized. 2013-09-13 14:19:41 +09:00
ChunEon Park ebe767bf51 elementary - Actually this code is useless. there track object will be always NULL. 2013-09-12 23:37:00 +09:00
ChunEon Park 5957b118de elementary - introduces 3 apis elm_object_item_track/untrack/track_get(). 2013-09-12 23:24:02 +09:00
ChunEon Park 9f34119498 elementary - revert ddc3cf80ce0a50a9161fcb212d3414f5d7b5898c
We have a plan to add more proper API.
2013-09-12 14:13:59 +09:00
Shinwoo Kim 3359ff5be5 [access] unfocusable object could have highlight 2013-09-10 14:22:21 +09:00
Shinwoo Kim 34de4d619d [access] enhancement - refine function name to _elm_access_auto_highlight_set from _elm_access_read_mode_set 2013-09-10 14:01:50 +09:00
Cedric Bail 7733e8d25a elementary: use zero allocation walk. 2013-09-05 17:17:05 +09:00
ChunEon Park b67b72f710 elementary/widget - introduce elm_object_item_object_get().
We've countered application's requirements multiple times to they have the object handle from the elm_object_item.

Now we introduce it for their convenient but they should use it carefully.
2013-09-02 17:20:36 +09:00
Tae-Hwan Kim 360613d19e elm_widget.c: fix bug to remove edje signal correctly. 2013-08-25 00:40:45 +09:00
ChunEon Park 5fd81d8849 elementry/widget - Improve performance in applying widget theme.
It prevents applying themes more strictly if it tries to apply same theme.
This increases the performance hugely in case that user applies a specific theme to the window object.
2013-08-22 17:00:36 +09:00
WooHyun Jung 5c49ccfb24 elementary/elm_widget.c : When there is no resize object, widget object itself should get evas focus when it steals elementary focus. 2013-08-06 18:14:44 +09:00
Shinwoo Kim c47ef1b7fe [access] use proper name _elm_access_info_get(); not _elm_access_object_get(); to get access information 2013-07-31 12:57:49 +09:00
ChunEon Park 04b47eb74d elementary/widget - fix the insane NULL set in translated string list.
Thanks JackDanielZ for catching this issue.
2013-07-24 13:02:39 +09:00
ChunEon Park fff2f05bb1 elementary/widget - use eina_inlist in transate data to improve memory access / allocations. 2013-07-17 15:05:40 +09:00
WooHyun Jung 27d51db839 We can change the focusable state of elm_layout by calling elm_object_focus_allow_set from application side. 2013-07-11 17:47:25 +09:00
Shinwoo Kim e35f12deaa [access] add elm_access_highlight_next_set, export elm_widget_focus_region_show 2013-07-06 14:41:00 +09:00
Jaehwan Kim a9bd591af9 In case of scroll in scroll, the child scroller have to bounce if parents don't have a bounce. 2013-06-18 16:28:06 +09:00
Daniel Juyung Seo 253e6369e4 elm_widget.c: handle focus fail case. 2013-06-09 16:54:00 +09:00
Daniel Juyung Seo 8bfdbd2ba6 elm: all the focusable widget now emits "focused" and "unfocused" smart callbacks.
1. documentations, NEWS, and ChangeLog will be updated later after some more test.
2. need to check entry.
2013-06-07 01:13:37 +09:00