modify deprecated code related with

elm_bubble_corner_set
function


SVN revision: 69228
This commit is contained in:
Jiyoun Park 2012-03-12 08:07:27 +00:00
parent 9fc2a74130
commit df6fd62d9f
2 changed files with 7 additions and 18 deletions

View File

@ -9,11 +9,17 @@
static const char *corners[] = {"top_left", "top_right",
"bottom_right", "bottom_left"};
void
_bla(void *data, Evas_Object *obj, void *event_info)
{
static unsigned char corner = 0;
elm_bubble_corner_set(obj, corners[++corner > 3 ? corner = 0 : corner]);
++corner;
if (corner > 3)
elm_bubble_pos_set(obj, ELM_BUBBLE_POS_TOP_LEFT);
else
elm_bubble_pos_set(obj, corner);
}
EAPI_MAIN int

View File

@ -347,17 +347,6 @@ elm_bubble_add(Evas_Object *parent)
return obj;
}
EINA_DEPRECATED EAPI void
elm_bubble_corner_set(Evas_Object *obj, const char *corner)
{
int i = 0;
for (i=ELM_BUBBLE_POS_TOP_LEFT; i<=ELM_BUBBLE_POS_BOTTOM_RIGHT; i++)
{
if (!strcmp(corner,corner_string[i]))
elm_bubble_pos_set(obj, i);
}
}
EAPI void
elm_bubble_pos_set(Evas_Object *obj, Elm_Bubble_Pos pos)
{
@ -369,12 +358,6 @@ elm_bubble_pos_set(Evas_Object *obj, Elm_Bubble_Pos pos)
_theme_hook(obj);
}
EINA_DEPRECATED EAPI const char*
elm_bubble_corner_get(const Evas_Object *obj)
{
return corner_string[elm_bubble_pos_get(obj)];
}
EAPI Elm_Bubble_Pos
elm_bubble_pos_get(const Evas_Object *obj)
{