efl/legacy/elementary
Bruno Dilly 01d04e55e0 Change toolbar API for consistency with other widgets
BIG FAT WARNING: lots of changes on toolbar API

Trying to get a lib with easy to use API, I'm changing toolbar API
to be consistent with genlist / gengrid widgets and to be more concise.

Functions select_next, select_first, select_last, unselect, unselect_all
get all are gone.
You can do this calling a combination of the others functions.

This commit changes toolbar to use inlist, and previous items can be
get.

So now we have:
Elm_Toolbar_Item *elm_toolbar_first_item_get(const Evas_Object *obj)
Elm_Toolbar_Item *elm_toolbar_last_item_get(const Evas_Object *obj)
Elm_Toolbar_Item *elm_toolbar_item_next_get(const Elm_Toolbar_Item *it)
Elm_Toolbar_Item *elm_toolbar_item_prev_get(const Elm_Toolbar_Item *it)
Eina_Bool elm_toolbar_item_selected_get(const Elm_Toolbar_Item)
void elm_toolbar_item_selected_set(Elm_Toolbar_Item *item, Eina_Bool selected)
Elm_Toolbar_Item *elm_toolbar_selected_item_get(const Evas_Object *obj)

With these functions you can iterate over the items list getting /
selecting the item you need.

Another big change is that elm_toolbar_item_add is gone. Now you can
insert items in the position you want, with the functions append,
prepend, insert after, insert before (a relative item).

If you don't like any changes or have a case of use for something
that should be different, please ping me.

At last, includes ELM_TOOLBAR_ITEM_CHECK_OR_RETURN on EAPI that
receives items.



SVN revision: 53894
2010-10-26 10:29:24 +00:00
..
config Set default shrink mode as Menu for desktop too. 2010-10-21 20:23:52 +00:00
data Bottom shadow image (for background) is actually 8 pixels high, not 3, 2010-10-25 13:28:05 +00:00
debian Some fixes for debian. 2009-05-23 13:57:54 +00:00
doc elm AUTHORS += tiago 2010-10-25 14:34:18 +00:00
m4 Fix common misspellings 2010-09-09 00:35:43 +00:00
src Change toolbar API for consistency with other widgets 2010-10-26 10:29:24 +00:00
.gitignore Merge branch 'elmdnd' 2010-09-07 06:56:16 +00:00
AUTHORS elm AUTHORS += tiago 2010-10-25 14:34:18 +00:00
COPYING namefix. 2010-08-16 04:44:45 +00:00
ChangeLog elementary becomes its own tree/lib/test binary 2008-09-30 06:58:56 +00:00
INSTALL fix INSTALL files. 2008-10-01 07:37:28 +00:00
Makefile.am also conform to the includes in name-vmaj dir policy 2010-07-11 23:34:49 +00:00
NEWS elementary becomes its own tree/lib/test binary 2008-09-30 06:58:56 +00:00
README right readme. 2008-09-30 08:18:41 +00:00
autogen.sh Stop trying to make the m4 directory. It already exists in the source tree. 2009-08-25 21:38:33 +00:00
configure.ac Elementary: Don't #define _GNU_SOURCE 2010-10-07 21:34:43 +00:00
elementary.pc.in actually ONLy need 1 -I 2010-07-11 23:39:54 +00:00
elementary.spec.in Apply the same fix MEJ did ( http://marc.info/?l=enlightenment-svn&m=127157420508183&w=3 ) to more specs 2010-04-21 20:55:23 +00:00

README

Elementary - a basic widget set that is easy to use based on EFL for mobile
touch-screen devices.