Commit Graph

140 Commits

Author SHA1 Message Date
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
Daniel Juyung Seo ddb1dbc9a7 elm_index.c: Process signal right away when elm_index_item_selected_set() is called. Patch by Moohyun Shin <moohyun.shin@samsung.com>
Reviewer: SeoZ
2013-11-04 13:16:40 +09:00
Daniel Juyung Seo a5a83e7a66 elm: Removed unnecessary local variable in sizing_eval. 2013-10-17 14:27:01 +09:00
Daniel Juyung Seo c40fbd89b8 elm: Use ELM_LAYOUT_DATA_GET convenient macro instead of calling eo_data_scope_get(obj, ELM_OBJ_LAYOUT_CLASS). 2013-10-05 17:29:13 +09:00
Daniel Juyung Seo 4343a9d73b elm_index.c: adopted ELM_WIDGET_DATA_GET_OR_RETURN macro. 2013-10-05 17:14:38 +09:00
Jaeun Choi f49cb8000d bug fix: fixed memory leak
Summary:
The original code created an edje object temporarily for index calculation
and didn't delete it which caused memory leak. fixed it.

Test Plan: None

Reviewers: Hermet, seoz

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D246
2013-10-01 22:18:57 +09:00
Daniel Juyung Seo 3a9cb2398b elm_index.c: Internal refactoring. Removed unnecessary internal function parameters.
- _index_box_clear()
- _index_box_auto_fill()
2013-09-30 22:15:01 +09:00
Cedric Bail 29af5e1e43 elementary: update to new eo_parent_get/set API. 2013-09-25 13:34:27 +09:00
ChunEon Park d461a8be05 elementary/widgets - set parents before widget constructs their body.
This avoids unnecessary multiple setups when obj and subobj has connected.
2013-08-27 14:19:19 +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
Daniel Juyung Seo 6cf684f02a elm: added more "focused" and "unfocused" documentations.
genlist, hover, index, list, map, photocam, progressbar, radio, scroller, slider, slideshow, spinner, toolbar, win.
2013-06-10 14:13:55 +09:00
Daniel Juyung Seo d0d4afd590 elm: refactoring. no printf in the library. use eina log instead. 2013-06-05 14:40:03 +09:00
Daniel Juyung Seo c024dee61c elm_index.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:57:58 +09:00
Daniel Juyung Seo 5f053bf79a elm: refactoring. use more ELM_FREE_FUNC. 2013-05-23 15:54:49 +09:00
Cedric Bail c929b33052 elementary: properly sanitize headers order. 2013-05-03 16:07:06 +09:00
Daniel Zaoui 187d6bf8de Elementary: replace eo_data_get for objects data referencing. 2013-05-01 11:04:09 +03:00
Shinwoo Kim 816be82847 Merge branch 'master' of ssh://git.enlightenment.org/core/elementary 2013-04-17 16:40:55 +09:00
Daniel Juyung Seo e25a01ce0c elm_index.c, elm_widget_index.h: flourish the internals of index.
1. added more internal documentation.
2. use EINA_TRUE/FALSE macro for Eina_Bool type.
2013-04-17 15:11:00 +09:00
Ryuan Choi 42fce4830f elm_index.c: Fixed warnings when closed elementary_test "Index horizontal".
In _elm_index_smart_del, _item_free was called twice.
So this patch removed unnecessary _item_free() which called by elm_widget_item_del.
2013-04-17 14:35:34 +09:00
Daniel Juyung Seo ac06f3db82 elm_index: flourish it->select variable.
1. added a comments for it->select variable.
2. used EINA_TRUE/EINA_FALSE for Eina_Bool type.
2013-04-16 16:05:51 +09:00
Jaeun Choi a726c63102 elm_index: register access object in smart theme
Signed-off-by: eunue (Jaeun Choi)
2013-04-12 21:06:54 +09:00
Daniel Juyung Seo 74b3eed5fd elm: print the error message inside elm_widget_sub_object_add().
1. Do not need to print the same error message from all the widget codes.
2. Even though elm_widget_sub_object_add() can be used internally, there should be no error message at all.
   Elm devs should fix it beforehand.
   So it looks ok to print the error message in elm_widget_sub_object_add() to force elm devs to fix it.
3. Got additional code cleanups.
2013-04-03 11:28:53 +09:00
Tom Hacohen d75cb616da Change usage of eo_do_super to the new prototype. 2013-03-18 16:15:12 +00:00
Daniel Juyung Seo 78c042cdbe elm *.c: fixed formatting with EINA_LIST_FREE.
EINA_LIST_FREE (xxx) -> EINA_LIST_FREE(xxx)
2013-03-09 13:23:42 +09:00
Daniel Juyung Seo 72a9d8a913 elm elm_index.c: removed unnecessary calculation. 2013-03-04 20:32:04 +09:00
Daniel Juyung Seo ba0dc018f7 elm elm_index.c: fixed formatting. 2013-03-04 20:32:04 +09:00
Jaeun Choi ae4a102102 elm_index: set selected item active in smart theme
This patch sets selected item's state active when theme is changed.
2013-03-04 17:55:48 +09:00
Gustavo Lima Chaves 312d0217a0 An internal layout error, on a widget set, is a CRITICAL error. 2013-03-01 23:04:31 -03:00
Jaeun Choi 8e6ff77250 This patch adds omit feature to elm_index.
If you enable omit mode when having too many items,
some items in the middle are omitted and the index can be displayed
from the top to the bottom.

* not support horizontal mode
* enabled when at least 3 items can be displayed (first and last items
are not omitted)
* not work when having too many items
2013-02-26 22:52:15 +09:00
Daniel Juyung Seo d8815d2ff2 elm elm_index.c: removed unnecessary type casting.
SVN revision: 84292
2013-02-22 01:41:04 +00:00
Daniel Zaoui cdd1eea853 Replace supported_types
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 83803
2013-02-10 07:52:31 +00:00
ChunEon Park 37b509a2fe elementary/index - added "language,changed" smart callback to index
SVN revision: 83626
2013-02-05 12:54:36 +00:00
Daniel Juyung Seo 328aa35948 elm index: Added elm_index_delay_change_time_set/get APIs for changing delay change time in index widget.
SVN revision: 83355
2013-01-26 09:55:32 +00:00
Daniel Juyung Seo cb3ce29890 elm index: Refactoring. Use macro for delay change time. Changed delay change internal callback name.
SVN revision: 83353
2013-01-26 09:55:23 +00:00
Jaeun Choi 43a6486eb2 From: Jaeun Choi <jaeun_choi@naver.com>
Subject: [E-devel]  [PATCH] elm_index: removed unnecessary lines

I removed some unnecessary lines from elm_index.c  
 
 1. in _index_box_auto_fill  
 _index_box_clear(line 178) does nothing:  
 if _index_box_clear is called, it means sd-&gt;level_active[level] is
false (line 116).  
if sd-&gt;level_active[level] is false, _index_box_clear returns
immediately (line 60).  
 
 2. in _on_mouse_down  
 3. in _on_mouse_in_access
 4. in _autohide_disabled_set  
 Signal emit is enough.
 Filling the box and displaying the box are separated jobs.
 I think it's logically consistent to fill the box only when  
 1) elm_index_level_go is called  
 2) theme is changed  
  
  5. in _level_go
  Always clear the box before fill the box.



SVN revision: 82864
2013-01-16 08:20:47 +00:00
Daniel Juyung Seo 869c313eee elm index: Fixed formatting.
SVN revision: 82468
2013-01-09 15:54:42 +00:00
WooHyun Jung f696af78d1 elementary/elm_index : Freed pointer should not be returned.
SVN revision: 82458
2013-01-09 12:43:51 +00:00
Daniel Juyung Seo ffa9c1e793 elm: Refactoring.
Smart data is already initialized so we do not need to re-initialize them if the value equals to 0, NULL, or EINA_FALSE.
Sometimes re-initializing smart data explicitly is needed for readability. So there are left overs.

SVN revision: 82228
2013-01-04 19:10:19 +00:00
Shinwoo Kim f10fb3e115 [access] export some APIs,and remove unnecessary lines.
+ elm_access_object_register();
  + elm_access_object_unregister();
  + elm_access_text_set();
  + elm_access_text_get();
  + elm_access_cb_set();

These APIs are to use edje part, evas object as an accessible object.
and do not create access object, because access object would be created at run time.
This is different with internal API _elm_access_object_register();


SVN revision: 81659
2012-12-23 14:50:56 +00:00
Daniel Zaoui 0c915e9023 Cleaning: removed include Eo.h in widgets because it was indirectly included by Elementary.h
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 79682
2012-11-26 09:29:01 +00:00
Yakov Goldberg 5c98343198 We have ported to Eo all the widgets of elementary. We didn't change the inheritance itself, only the mechanism, as done previously in Evas, Ecore and Edje. We removed totally the previous inheritance mechanism.
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 79668
2012-11-26 06:32:53 +00:00
Michael BOUCHAUD 17d5be23ff elementary: add missing selected in elm_index, when we use elm_index_item_selected_set
SVN revision: 79186
2012-11-12 17:56:13 +00:00
Daniel Juyung Seo adc7416fcb elm access: Rename access hook name according to elm refactoring.
SVN revision: 78993
2012-11-08 08:33:26 +00:00
Daniel Juyung Seo 30dba54610 elm: Fixed indentations for EINA_LIST/INLIST_FOREACH(_SAFE).
SVN revision: 77244
2012-10-01 07:36:27 +00:00
Daniel Juyung Seo e8fa4f8035 elm index: Fixed unused variable warnings.
SVN revision: 76879
2012-09-20 00:49:07 +00:00
Kim Shinwoo 5f41a3729d From: Kim Shinwoo <kimcinoo.efl@gmail.com>
Subject: [E-devel] [patch][elementary] index - add access feature

the attachment has access features for the index. and this patch is
depends
on the previous patch which has
_elm_access_edje_object_part_object_unregister();
to find the previous patch, please refer to the following

http://sourceforge.net/mailarchive/forum.php?thread_name=CAP-c0nG8NkMx3J-YkSJnWdB23cWOPrtk1Rx10Lae0Zwxst1eeQ%40mail.gmail.com&forum_name=enlightenment-devel

the index could have two levels, one is level 0, the other is level 1.
the
patch supports only level 0 because we have no style for the level 1..
(just a cowardly excuse, i will keep up with this.. and update..)



SVN revision: 76532
2012-09-12 13:44:27 +00:00
Jihoon Kim f6faf3708e [elm/index] fix indentation
SVN revision: 75745
2012-08-28 04:02:14 +00:00
ChunEon Park 4b6636bdd1 elementary/index - [E-devel] [PATCH] elm_index : set it->letter to NULL after eina_stringshare_del
Hello all,

In elm_index.c, _item_del_pre_hook calls _item_free, where it->letter
is not set to NULL after eina_stringshare_del.
This will cause invalid access later on. The attached patch fixes the
problem, which is reproducible in my code before the fix.
Please check if this makes sense.

I am sorry that I was unable come up with a simple test app to
demonstrate the problem.

Thanks in advance.


Brian

Signed-Off-By:Brian Wang<brian.wang.0721@gmail.com>



SVN revision: 75723
2012-08-27 08:23:20 +00:00
Gustavo Lima Chaves 84b23046da [elm] Now those comments make less sense, remove.
SVN revision: 74768
2012-08-01 21:05:16 +00:00
Gustavo Lima Chaves 31f18bb480 [elm] Index now inheritable.
SVN revision: 74754
2012-08-01 21:03:11 +00:00