From 6b3fe4c84a06ba2d80d6f994070a4f7c5acae2eb Mon Sep 17 00:00:00 2001 From: mike_m Date: Wed, 16 Nov 2011 06:18:45 +0000 Subject: [PATCH] elementary: Remove casts Signed-off-by: Mike McCormack git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@65285 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_toolbar.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c index 4c26b41..1985531 100644 --- a/src/lib/elm_toolbar.c +++ b/src/lib/elm_toolbar.c @@ -760,12 +760,12 @@ _item_new(Evas_Object *obj, const char *icon, const char *label, Evas_Smart_Cb f it->separator = EINA_FALSE; it->base.data = data; VIEW(it) = edje_object_add(evas_object_evas_get(obj)); - _elm_access_item_register((Elm_Widget_Item *)it, VIEW(it)); - _elm_access_text_set(_elm_access_item_get((Elm_Widget_Item *)it), + _elm_access_item_register(&it->base, VIEW(it)); + _elm_access_text_set(_elm_access_item_get(&it->base), ELM_ACCESS_TYPE, E_("Tool Item")); - _elm_access_callback_set(_elm_access_item_get((Elm_Widget_Item *)it), + _elm_access_callback_set(_elm_access_item_get(&it->base), ELM_ACCESS_INFO, _access_info_cb, it); - _elm_access_callback_set(_elm_access_item_get((Elm_Widget_Item *)it), + _elm_access_callback_set(_elm_access_item_get(&it->base), ELM_ACCESS_STATE, _access_state_cb, it); if (_item_icon_set(icon_obj, "toolbar/", icon)) -- 2.7.4