Commit Graph

368 Commits

Author SHA1 Message Date
Guilherme Iscaro de Godoy c4cad315ae Bug fix: Elm_List was not correctly setting the highlight theme for its items.
With the introduction of the patch 3628a8c4ea2485ee7ee5a81cfd4e0f0fe62b10d6,
it is possible to highlight focused Elm_List and Elm_Genlistenlist items.
However, this feature does not work correctly if one wants to create a custom
highlight theme for Elm_List items.
The whole problem was happening, because the function
_elm_widget_item_highlight_in_theme() was being called in a incorrect
location. This function must be called at _items_fix(), because
there the Elm_List already set the item theme and then it's possible
to check if the one wants a custom highlight or not.
2014-03-12 11:06:49 -03:00
Daniel Juyung Seo e60e43f8f5 list/genlist/gengrid: Clear some internal variables when an item is deleted.
Set last_selected_item, last_focused_item, focused_item to NULL when the
item is deleted.
For genlist and gengrid, clear them in del_not_serious.
2014-03-09 02:57:09 +09:00
Daniel Juyung Seo d626f9278f genlist/list: Fixed wrong internal function name.
_list/genlist_item_focus_set --> _list/genlist_item_content_focus_set.
These internal functions set the focus to the item's content objects,
 not the item itself. So the name was wrong and very confusing.
2014-03-08 03:27:09 +09:00
Daniel Juyung Seo 80f077cbec list: Do not call unnecessary external API.
We already know the internals so make it optimized by using internal
data.
2014-03-04 00:33:13 +09:00
Daniel Juyung Seo ae324cfb36 list: Check NULL before calling _elm_list_item_unfocused.
unfocusing NULL item is nonsense. NULL needs to be checked before
calling item unfocus function.
2014-03-04 00:33:13 +09:00
Daniel Juyung Seo 8afae8de2e widget: removed unused widget item member 'focused'. 2014-03-02 01:24:23 +09:00
Daniel Juyung Seo 1a29ad5679 elm: removing trailing white space ceremony for 1.9 release. 2014-03-02 00:52:26 +09:00
Daniel Juyung Seo 3c23a57e2e list: Run focus set/unset routine only when the focus status is changed.
I didn't tag this as 'fix' because this feature was added after 1.9
release.
2014-03-02 00:26:08 +09:00
Gustavo Sverzut Barbieri 9f6a9a51e8 elm_list/focus: @bugfix crashes with empty lists and unfocused elements. 2014-02-28 01:57:23 -03:00
Amitesh Singh 38ac88d9d5 list: focus highlight is handled by item theme.
Summary:
Problem: list theme (elm/list/base/default) is an alias of scroller
base theme (elm/scroller/base/default) in which focus_highlight is set to "on".
Solution: Now focus highlight in_theme is set by list item theme.

Test Plan: elementary_test->"List Focus"

Reviewers: seoz, woohyun

Reviewed By: seoz

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D572
2014-02-26 01:27:05 +09:00
Amitesh Singh ff3521ba9e list: Code refractoring of _item_focused_next()
Summary:
  # Added code to handle the case of disabled items.
  #  Code refractoring of _item_focused_next().

Test Plan: elementary_test->"list focus"

Reviewers: seoz, woohyun

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D571
2014-02-26 01:26:57 +09:00
Amitesh Singh 069a3de27d list: implemented widget item focus feature.
@feature

Summary:

  #    Added "item,focused" and "item,unfocused" smart callbacks.
  # Added elm_object_focused_item_get() in elm_widget
  # Added elm_object_item_focus_set and elm_object_item_focus_get() APIs for
  # Added one argument in existing _focus_highlight_geometry_get(...,is_next)
  This is required to find out previous and current widget item.
  # Added a elm_win function _focus_highlight_start() which starts the focus

Test Plan: elementary_test->List Focus , List Horizontal Focus

Reviewers: seoz, woohyun

Reviewers Comments: SeoZ - there are some known bugs. we will actively
fix them in a near future.

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D532
2014-02-26 01:26:22 +09:00
Daniel Juyung Seo ff18fac8e7 list: fixed list to emit elm,state,list,single signal when there is only
one item.

This is a fix of a commit 44495f6431cdc5dbe6e8cb257cf73a69563ec67c.
2014-02-25 00:58:54 +09:00
Gustavo Lima Chaves c80868da12 Elm list, like genlist, should emit 1st/middle/last signals to its items.
So that one is able to theme these cases accordingly.
2014-02-20 14:10:10 -03:00
Carsten Haitzler c45fd8aff3 list - fix mode set to have override power over scroll limit api 2014-02-14 12:19:40 +09: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
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
Daniel Juyung Seo b74c805a74 list: Used macro for list swipe time like genlist. 2014-01-23 23:11:12 +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 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
Daniel Juyung Seo db5fe2581d elm: Removed unnecessary null check for evas_object_del. 2014-01-22 10:54:52 +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
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
Daniel Juyung Seo fd5c046dfe elm: Changed __UNUSED__ to EINA_UNUSED. 2014-01-06 23:33:57 +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 6d71a23c3a elm lib: removed all the unnecessary empty lines.
being pedantic.
2013-12-15 06:18:35 +09:00
Daniel Juyung Seo 8a0159df4f elm: long waited seasonal trailing whitespaces removal!
This is a ceremony of elementary 1.8 release!
2013-12-02 19:43:46 +09:00
Carsten Haitzler e045d28cfc list - fix separators to be the correct direction 2013-11-17 09:40:17 +09:00
Carsten Haitzler 4f4982663c list - fix item disable and infinite loop on next select 2013-11-16 17:50:11 +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
Daniel Juyung Seo 644a51f0fb elm_list.c: fixed a bug when any item is selected without control on multi select with control mode.
When any item is selected without control on multi select with control mode, already selected items should be unselected automatically.
2013-11-06 13:36:48 +09:00
Daniel Juyung Seo 827535158d elm_list.c: Added a real support for ELM_OBJECT_MULTI_SELECT_MODE_WITH_CONTROL for list.
This was missed in a8efd7676eb95378355f4d603ddff938279703af.
2013-11-05 14:18:54 +09:00
Daniel Juyung Seo e35de516b9 elm_list.c: Split _item_unselect() into _item_unhighlight() and _item_unselect(). 2013-11-05 14:18:53 +09:00
Daniel Juyung Seo d218676dd0 elm_list: Added missing elm_list_multi_select_mode_set/get API for list to fix the API consistency between multi selectable widgets.
This was omitted by genlist/gengrid multi select mode set/get() commit ae03d3cef36abd27ff530e350e39ae401f4f389e.
2013-11-05 09:22:25 +09:00
Daniel Juyung Seo d22076681b elm: Fixed formatting about smart_event check for code consistency.
- Made it look clearer.
- Removed unnecessary local variables.
- Keep the code sequence consistent.
2013-10-28 23:30:12 +09:00
Daniel Juyung Seo b10481fa0e elm_list.c: adopted ELM_WIDGET_DATA_GET_OR_RETURN macro. 2013-10-05 17:14:47 +09:00
Cedric Bail 29af5e1e43 elementary: update to new eo_parent_get/set API. 2013-09-25 13:34:27 +09: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
Daniel Juyung Seo abcb183534 elm_list.c: disable edje_object_parts_extends_calc in _item_fix.
This fixed T179 but introduced T286. T286 is bigger and more important issue than T179.
So temporarily disable these lines until it gets fixed correctly.
2013-09-17 01:10:46 +09:00
Michaël Bouchaud (yoz) 62ce625dfc elementary: allow custom text part on item list 2013-09-16 12:19:46 +02: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
Daniel Juyung Seo cafca533a4 elm_list.c: check null as well.
This fixes coverity CID 1049944 Dereference after null check (FORWARD_NULL).
2013-08-11 17:11:03 +09:00
Carsten Haitzler 59e8bc5a35 Fix elm to use key not keyname (so xmodmap works) 2013-07-31 15:16:41 +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 a0605b196c elm_list.c: fixed elm_object_item_part_content_set bug with 'end' part in elm_list. 2013-07-13 15:45:44 +09:00
Thiep Ha 7686648e12 Fix horizontal list size issue in desktop mode (T179)
Issue: horizontal list does not show correctly in desktop mode.
- The way to reproduce isssue is discribled in Task T179.
- We can also reproduce issue by runnin Ctxpopup at horizontal mode in elmentary test with standard profile.
2013-07-05 02:58:16 +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 1c1da31da3 elm_list.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 21:00:12 +09:00
Tae-Hwan Kim 10a212a709 [list] Add signal emit hook.
Add signal emit hook same as genlist.
2013-05-27 13:25:18 +09:00
Daniel Juyung Seo 5f053bf79a elm: refactoring. use more ELM_FREE_FUNC. 2013-05-23 15:54:49 +09:00
Yossi Kantor 2e1eacd0ba elementary: Focus improvement for elm_genlist and elm_list
Summary:
This patch applies automatic focus feature to elm_genlist and elm_list
containers.
Currently (prior to this patch), focusable widgets inside list items of both
containers receive focus by an explicit mouse click over them, and lose focus
when focus goes to someone else in the window.
This change also adds the ability to:
- focus by default on the first-from-right focusable widget upon items selection
- lose the focus when another item is selected (focused or not)
- move focus between focusable widgets inside the same item by left and right
arrow keys accordingly (up and down keys when elm_list is in horizontal mode)

Focus is supported for horizontal and vertical lists.

Tests have been added for genlists and lists to check focus feature.
2013-05-12 15:32:33 +03:00
Daniel Zaoui ac01929f37 Elementary: Drag & Drop feature for items containers
New APIs have been added to facilitate DnD for genlist, gengrid and list
widgets.
Tests have been added in the new section DnD to play with that.
2013-05-09 13:57:31 +03: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
ChunEon Park ff10726141 elementary/ctxpopup, hoversel, naviframe, multibuttonentry, popup, diskselector, list, menu, segment_control, toolbar - support widget item language change 2013-04-23 20:30:15 +09:00
Daniel Juyung Seo ba4dbce9d9 elm: enhance eina_list_free usages. use EINA_LIST_FREE if needed. 2013-04-10 20:28:35 +09:00
WooHyun Jung 2f3a41de31 elm_list.c : _elm_list_smart_focus_next_enable is for focus_next function. Not for focus_direction. 2013-04-09 22:22:37 +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
WooHyun Jung 2542b16b01 elementary/list : Fixed a bug in elm_list. Focus_next is needed only when access mode is enabled. 2013-03-13 14:05:00 +09: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
Gustavo Lima Chaves 312d0217a0 An internal layout error, on a widget set, is a CRITICAL error. 2013-03-01 23:04:31 -03:00
Jaehwan Kim d58d971e6f Add the option about sending signals in content_pos_set.
When the scroller is resized, the signals("elm,action,scroll", "elm,edge,top" so on) shouldn't be sent,
because it's not a scroll-action. So in this case, the content_pos_set should be called without the signals.
2013-02-28 15:18:51 +09: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
Shinwoo Kim 317920e3e3 [access] do not have to read out type infomation of genlist and list
the user would be visually impaired person or blind, so the type infomation
of genlist or list is not proper. there would be more proper type infomation.


SVN revision: 83005
2013-01-19 08:05:15 +00:00
Daniel Juyung Seo 84d251acc8 elm list, genlist, gengrid: Added highlighted and unhighlighted signal callbacks.
SVN revision: 82750
2013-01-14 10:12:50 +00:00
Shinwoo Kim 88dac18cf7 [access] export elm_access_activate_cb_set(); and add related documentation.
SVN revision: 82052
2013-01-03 09:31:33 +00:00
Daniel Juyung Seo f4e8c92f0d elm list: Fixed list separator size bug. Patch by Thiep Ha <thiep.ha@samsung.com>
On Sun, Dec 9, 2012 at 11:11 AM, thiep ha <thiep.ha@samsung.com> wrote:

    Dear All,

    In elementary list, the separator is not correctly set.
    I would like to send a patch to correct the list with separator.
    I also add an example named "List Separator" to test it.

    Please review this patch.

    Best Regards,
    Thiep Ha

SVN revision: 82040
2013-01-03 06:23:33 +00:00
Daniel Juyung Seo cf682c4214 elm list: Use EINA_FALSE instead of 0 for Eina_Bool type variable.
SVN revision: 82004
2013-01-02 18:36:22 +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 Juyung Seo 10cb9bcf73 elm elm_list.c: fixed formatting.
SVN revision: 80262
2012-12-05 15:52:43 +00:00
Cedric BAIL d29d66e65e elementary: in some case it could be NULL, resulting in dereferencing a NULL pointer.
SVN revision: 80141
2012-12-04 10:26:31 +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
Shinwoo Kim 3ff4a96fdc [list] enhance access feature - add access activate callback
*note: this commit - callback behavior - would be disputable as genlist becuase list has
       "clicked,double", "selected" and "activated" signal and smart callback also.
       but the access acitvate callback works as the item is selected.



SVN revision: 79451
2012-11-19 13:40:24 +00:00
Shinwoo Kim f81147a18e [access] enhance access feature
1. add _elm_access_object_unregister(); api.
  2. unregister access object properly when unregister widget item.
  3. modify improper access object check.
  4. [list] add smart_access(); lines to provide run time register, unregister.
  5. [genlist] unregister access object when genlist item is unrealized.



SVN revision: 79444
2012-11-19 13:08:54 +00:00
Daniel Juyung Seo 71d832404a elm access: Create access object only when access mode is enabled.
SVN revision: 78992
2012-11-08 08:02:12 +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 ac8ba87340 elm list: Do not process _size_hints_changed_cb when list is going to be deleted.
This fixes list self deletion bug when evas_object_del(list) is called inside item selected callback.

SVN revision: 75832
2012-08-29 23:38:58 +00:00
Carsten Haitzler 4f0c004519 fix selection handling in list if items disabled.
SVN revision: 75041
2012-08-09 11:54:37 +00:00
Gustavo Lima Chaves a0359a65c5 [elm] List now inheritable.
SVN revision: 74688
2012-07-31 22:06:36 +00:00
Gustavo Lima Chaves 7d1ffe6195 [elm] Some oopsies--.
SVN revision: 74405
2012-07-25 22:03:07 +00:00
Cedric BAIL 187462ec9d elementary: fix erroneous memory access.
One more pack of beer for the Valgrind developer !


SVN revision: 74202
2012-07-20 04:20:06 +00:00
Cedric BAIL 5ff2c0d78b elementary: prevent the hook to mess with the event object property.
SVN revision: 74175
2012-07-19 09:25:04 +00:00
Gustavo Lima Chaves 584c53c1be [elm] New elm_widget_add() usage spread.
SVN revision: 74148
2012-07-18 21:03:39 +00:00
Gustavo Lima Chaves fc488079d6 [elm] No initting code out of smart_add() -- list.
SVN revision: 73997
2012-07-17 15:02:22 +00:00
Gustavo Lima Chaves 5cd7fce261 [elm] Old cosmetical diff flush.
SVN revision: 73993
2012-07-17 14:56:32 +00:00
Gustavo Lima Chaves 9e4f104587 [elm] Fix bad theming on new layout widgets.
SVN revision: 73381
2012-07-05 21:07:15 +00:00
Gustavo Lima Chaves 47c401724c [elm] Fix code duplication on list porting.
SVN revision: 73379
2012-07-05 19:49:54 +00:00
Gustavo Lima Chaves d4f88af273 [elm] Elm list is now a SCROLLABLE layout.
This means it inherits from the layout class and implements the
scrollable interface.



SVN revision: 73310
2012-07-04 21:43:05 +00:00
Kim Shinwoo 4709f16668 From: Kim Shinwoo <kimcinoo.efl@gmail.com>
Subject: [E-devel] [Patch][elementary] elm_access, use widget_item in
focus chain

It has been possible to use widget_item in access mode. The mouse-in
event
makes the widget_item speak.
But focus chain is not useful in access mode, because the widget_item
cannot get the focus as the edje object.
The accessibility highlight will move by keeping the attached patch
and you
can hear the sound of widget item information.
Please review the patch and give some feedbacks. There would be further
works such as dynamic setting focus next hook,
the previous _elm_access_list_register();, but please keep this first if
there is no big trouble. I'll do those also. Thanks.



SVN revision: 73074
2012-06-30 06:21:14 +00:00
Carsten Haitzler c7fad4ef42 fix discomfitors list scalign thing.. was actually image/icon madness.
:)



SVN revision: 72109
2012-06-14 07:55:55 +00:00
Mike Blumenkrantz 7ecc19fbae elm list had a typo which seemed harmless but probably broke some things. I corrected it. don't have a full checkout here, so no backporting unless someone else does it or I remember to do it later
SVN revision: 71465
2012-05-28 17:51:02 +00:00
Carsten Haitzler 3a7b769a63 use the new escape text set to clear up issues if theme has TEXT vs
TEXTBLOCK items and handling escapes so text is consistend across elm.
fiuxes the fileselector issues kai reported.



SVN revision: 70362
2012-04-20 12:51:10 +00:00
Daniel Juyung Seo c4fc10388c elm list/genlist: Renamed interval text get/set hook name.
SVN revision: 70121
2012-04-12 07:14:15 +00:00
Jihoon Kim 3a9a0cb9d5 elm/list: igonore key event of keypad when NumLock is turned on.
SVN revision: 69922
2012-04-05 01:18:51 +00:00
Daniel Juyung Seo 91d43ae017 elm: Set timer/animator to NULL after they're deleted.
SVN revision: 69796
2012-03-30 12:31:11 +00:00
Daniel Juyung Seo 3d15654faa elm elm_object_item: Fixed item part content set hooks.
1. delete old content object
2. check whether new content object is same as old content object
3. rename internal content set hook function
4. elm_widget_sub_object_del will be followed by evas_object_del
5. added some doxygen description.

SVN revision: 69738
2012-03-29 10:08:37 +00:00
Daniel Juyung Seo 7908a77ad8 elm: Fixed formatting.
SVN revision: 69700
2012-03-28 09:02:22 +00:00
Carsten Haitzler 146f134413 to make show/bring in work for list - canvas objects need calcing
first! so,., calc!



SVN revision: 69560
2012-03-22 10:10:29 +00:00
cnook 18ac67edd1 From: cnook <kimcinoo@gmail.com>
Subject: [E-devel] [Patch][elm_list] bug fix: crash occurs when
container which contains the elm_list is deleted on the "elm_list item
clicked" callback

I have resolved the elm_list issue(goto ELM_LIST_CRASH_ISSUE_MAIL below, I
sent mail but I cannot find the previous mail -_-;).
It would be related with double free issue. In the "sub-obejct-del"
callback which name is _sub_del() sets item->icon to NULL.
And in the EVAS_CALLBACK_MOUSE_UP callback funtion which name is
_mouse_up() calls evas_object_unref();
It would try to free the item->icon but the item->icon is already set to
NULL. So.. the crash would occur..



SVN revision: 69555
2012-03-22 05:58:49 +00:00
cnook 6b592fcea5 From: cnook <kimcinoo@gmail.com>
Subject: [E-devel] [Patch][elementary] elm_list.c - item_content_set()
related.

The Eina_Bool item->dummy_icon and item->dummy_end of Elm_List_Item
indicate whether the content has REAL object or not.
- "not" means.. if elm_object_item_part_content_set(); is called with
NULL content, the Elm_List set the swallow part with
rectangle which has alpha value 0 and the item->dummy_icon or
item->dummy_end is set to EINA_TRUE. -
But in the item_content_set(); it works the opposite way. So when
content set with NULL value the flag should be EINA_TRUE.



SVN revision: 69535
2012-03-21 10:41:42 +00:00
Daniel Juyung Seo 676cf93ec3 elm list: Added elm_list_first/last_item_get() APIs. I know we freezed API but they are so primitive and necessary for 1.0
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 69505
2012-03-19 07:27:53 +00:00
Jiyoun Park c421626833 remove elm_list_always_select_mode_get/set deprecated API
SVN revision: 69330
2012-03-14 11:13:24 +00:00
Jiyoun Park d16e5bf412 remove code related with
elm_list_item_disabled
elm_list_item_XXX
which was deprecated


SVN revision: 69109
2012-03-09 15:03:18 +00:00
Jiyoun Park ab59567695 remove deprectated function related with elm_list_item_base_get & elm_mapbuf_content_
SVN revision: 69084
2012-03-09 09:35:21 +00:00
Mike Blumenkrantz 4b8fcf7430 seriously file globbing. another day would have been much better.
SVN revision: 68991
2012-03-07 16:18:38 +00:00
Mike Blumenkrantz 80d8165a15 wtf globbing y u no work???
SVN revision: 68983
2012-03-07 16:05:28 +00:00
Hyoyoung Chang abe3dd222a From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_list - add select_mode_set and some
remove deprecated apis in examples

Like other widget (genlist, gengrid...), I add select_mode to elm_list.

+elm_list_select_mode_set(Evas_Object *obj,
Elm_Object_Select_Mode_Type mode)

+EAPI Elm_Object_Select_Mode_Type
+elm_list_select_mode_get(const Evas_Object *obj)

And I removed deprecated apis (no_select, always_select) in examples
and edje_externals.



SVN revision: 68971
2012-03-07 15:22:12 +00:00
Daniel Juyung Seo 480c61f20a elm: Formatting. No spacing after casting.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68807
2012-03-06 11:51:42 +00:00
ChunEon Park c5232c4741 elementary - removed unnecessary checkings
SVN revision: 68393
2012-02-24 08:53:01 +00:00
ChunEon Park fd909fc341 elementary/list - deprecated elm_list_item_del()
please use elm_object_item_del().



SVN revision: 67598
2012-01-30 06:06:03 +00:00
Carsten Haitzler 4dcc354c80 deprecate more list item funcs. replace with object item ones (for
cursors).



SVN revision: 67380
2012-01-20 10:13:56 +00:00
ChunEon Park 8e4a2fcbe9 elementary/toolbar, diskseletor - deprecated tooltip APIs
SVN revision: 67127
2012-01-12 08:25:12 +00:00
ChunEon Park 3d44aa9d9b elementary/list - deprecated tooltip APIs & updated doc
SVN revision: 67124
2012-01-12 07:51:15 +00:00
ChunEon Park a3935da066 elementary/list - internal item type chage regarded to Elm_Object_Item for more less casting!
SVN revision: 67111
2012-01-12 03:18:43 +00:00
ChunEon Park 11282d3953 Elementary/list - Elm_List_Item -> Elm_Object_Item
SVN revision: 67110
2012-01-12 03:03:56 +00:00
ChunEon Park 0f8b78cdd5 elementary - renamed internal callback function
elm_widget_item_disabled_set_hook_set -> elm_widget_item_disabled_hook_set



SVN revision: 67007
2012-01-10 01:00:23 +00:00
Carsten Haitzler 4390f8f16f ooh deprecate elm_list calls than can be done with elm_object_item
stuff :)



SVN revision: 66796
2012-01-03 13:13:39 +00:00
Carsten Haitzler e4bfe66bfe deprecate 2 callls already using the new infra
SVN revision: 66788
2012-01-03 11:48:34 +00:00
Carsten Haitzler e7e7a55d00 put notes in elm_list.c as to what to do.
SVN revision: 66777
2012-01-03 05:28:34 +00:00
Carsten Haitzler a13a0b4a0f deprecate disabled list item apis - use object item.
SVN revision: 66772
2012-01-03 04:17:32 +00:00
Mike Blumenkrantz 608d52ba61 missed some things with my tooltip api break
SVN revision: 65917
2011-12-05 17:14:07 +00:00
Mike Blumenkrantz 890a378db7 API BREAK
elm_XXX_tooltip_size_restrict_disable() -> elm_XXX_tooltip_window_mode_set()
elm_XXX_tooltip_size_restrict_disabled_get() -> elm_XXX_tooltip_window_mode_get()


SVN revision: 65909
2011-12-05 15:25:09 +00:00
Daniel Juyung Seo 75481b9870 elm list: Removed deprecated signals.
SVN revision: 65794
2011-12-02 01:54:28 +00:00
Mike Blumenkrantz 88bbad2635 add VIEW() and WIDGET() macros for use with Elm_Widget_Items to create more consistency, reduce typing, and increase readability
VIEW(X) = X->base.view (visible evas object)
  WIDGET(X) = X->base.widget (owner widget)

also a demo of the oxford comma for seoz


SVN revision: 64220
2011-10-21 01:08:01 +00:00
Mike Blumenkrantz 4ad1c5f0db create and use ELM_WIDGET_ITEM for elm widget structs to ensure location/name
SVN revision: 64218
2011-10-21 00:45:19 +00:00
Daniel Juyung Seo a9e92c7bc3 elm genlist/list/gengrid: Changed edge smart callback name. 'edge' callback is not scrolling. So "scroll,edge,up" -> "edge,up". elm_scroller already used this name.
SVN revision: 64200
2011-10-20 16:42:42 +00:00
Iván Briano 057a00829c Get us some nice auto translation scheme
First things first, I'm not sure I'm setting the right variable on
the setlocale() call, so someone more knowledgeable can look at it and fix it.

How this works, you say? Just like elm_object_text_part_set(), except now it
will pass the string given through dgettext() with the given domain (NULL
means it uses whatever the app set with textdomain()), and when changing
language with elm_language_set(), it will re-set the strings with a new
translation.



SVN revision: 64179
2011-10-19 14:17:14 +00:00
Mike McCormack beafec3884 elementary: Improve include file modularity
Move stuff out of elm_priv.h

Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>

SVN revision: 63900
2011-10-07 05:56:07 +00:00
Daniel Juyung Seo 12f074553c elm list: Fixed elm_list_scroller_policy_set(). Closed ticket #842.
SVN revision: 62956
2011-08-29 16:13:35 +00:00
Daniel Juyung Seo 954d3e31cf elm list: Fixed elm_list_item_disabled_set() API. Closed trac #844.
SVN revision: 62932
2011-08-29 05:10:20 +00:00
Daniel Juyung Seo 9692d6d2d4 elm list/gengrid: Fixed typo in internal functions and variables. hilight -> highlight.
Hilight is a common mis-spelling of highlight. http://en.wiktionary.org/wiki/hilight 


SVN revision: 62830
2011-08-25 17:19:22 +00:00
Daniel Juyung Seo 0e3f0d69c6 elm list: Changed elm_list_item_base_get() to elm_list_item_object_get() like other widgets such as gengrid/menu/genlist/slideshow/segment_control.
I also changed all related code in trunk.
Deprecated elm_list_item_base_get(). I will remove this later.


SVN revision: 62730
2011-08-23 16:55:28 +00:00
Mike Blumenkrantz 54f1e32c17 THE MOST ANTICIPATED COMMIT OF 2011: HUGENORMOUS TOOLTIPS!!!!!!
these bad boys are so big and pixelthirsty they can't be constrained by a regular canvas or window, they use OVERRIDE REDIRECT WINDOWS. not only that, they totally exceed the boundaries of what a reasonable function name length could be. 50 character function name limit? puh-leeze. these guys don't care what side of the screen they're even on so long as they get to wade into the thick of the action and block out each and every crappy non-efl application behind them. and that's when they're in good moods. you don't even want to know what happens when you piss these guys off.


SVN revision: 61735
2011-07-26 09:38:23 +00:00
Mike Blumenkrantz 47574fccbf add new signal for list/genlist/gengrid: "activated"
this signal is called whenever an item receives either a double click or selection+(enter/spacebar/return)

this commit also unifies the click/enter/spacebar/etc event api for these widgets, including removing the double click signal from keypress events and removing the 'clicked' signal from double click events


SVN revision: 61720
2011-07-26 01:49:24 +00:00
Bruno Dilly 6a1768ead2 Elementary: List Documentation
SVN revision: 61711
2011-07-25 20:47:59 +00:00
ChunEon Park 5e8a3cf674 elementry/list - added missing a line.
When raster modified to use standard macro, 
this line is removed also. 



SVN revision: 61221
2011-07-11 02:26:27 +00:00
Daniel Juyung Seo bc07b91b0e elm genlist/list/gengrid: Removed deprecated signal "clicked". Use
"clicked,double" instead.

The name was wrong and I added a proper signals few months ago. Not I
removed wrong signals.


SVN revision: 61115
2011-07-07 12:49:39 +00:00
ChunEon Park ccd3773962 elementary/list - just removed empty lines
SVN revision: 60125
2011-06-09 10:11:25 +00:00
ChunEon Park dce560688a elementary/list - fixed for potential duplicated deletion (this is patched by jae.hwan.kim@samsung.com)
since the list calls the unref, it could be deleted multiple times 
when user delete the list in it's callback function. 




SVN revision: 60124
2011-06-09 10:08:58 +00:00
ChunEon Park a1d5dfb531 elementary/list - avoid unnecessary checking when deleting sub-objects
SVN revision: 60120
2011-06-09 08:36:55 +00:00
Daniel Juyung Seo 04b491da11 Elementary: Changed homogenous to homogeneous.
Deprecated existing APIs but not removed them. They will be removed
sometime later or when elm 1.0 is released. And added new APIs.
I fixed box, table and toolbar. I will modify other codes in trunk soon.


SVN revision: 59160
2011-05-04 04:53:39 +00:00
ChunEon Park d45f0154cf elementary / menu, list, index, pager - modified to use signal callback table.
SVN revision: 58807
2011-04-21 15:57:03 +00:00
Daniel Juyung Seo ebfa1123c0 Elementary list: Fixed doxygen for "clicked,double" callback.
SVN revision: 58595
2011-04-12 14:16:41 +00:00
ChunEon Park c7c99ddea6 elementry / entry, menu, notify, list, gengrid, actionslider, image, icon, anchorview, fileselector_button, calendar, photocam, anchorblock,
button, map, colorselector, hover, photo, diskselector, index, bubble, pager, hoversel, check, scrolled_entry, clock, flipselector

	    updated signal callback list in the  doxygen. 

            should update genlist, progressbar ... 



SVN revision: 58335
2011-04-04 16:34:18 +00:00
Daniel Juyung Seo 16848f903d Elementary: Fixed wrong smart callback signal name. clicked -> clicked,double
Unified double-click smart callback signal name to "clicked,double".
Wrong signal name "clicked" is still there.
But this will be removed soon after fixing all codes in trunk.


SVN revision: 58293
2011-04-03 09:36:47 +00:00
Daniel Juyung Seo 8a108db5ab Elementary: Use pre-defined type Edje_Signal_Cb instead of describing all of its parameters.
SVN revision: 58283
2011-04-03 05:32:17 +00:00
ChunEon Park 5176a3f867 elementary / entry, list, scroller, fileselector_button, config, photocam, map, pan, bg, store, priv, pager, conform, box, clock, flipselector
fixed indentation, removed white spaces.



SVN revision: 58267
2011-04-01 19:08:56 +00:00
ChunEon Park 160084626b elementary / menu, notify, list, panes, module, map, pager, panel, mapbuf - removed white spaces
SVN revision: 58251
2011-04-01 11:26:58 +00:00