forked from enlightenment/efl
modify deprecated code related with
elm_bubble_corner_set function SVN revision: 69228
This commit is contained in:
parent
9fc2a74130
commit
df6fd62d9f
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue