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
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)
{
_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)
{