Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
- wd->dir = ELM_CTXPOPUP_DIRECTION_DONT_KNOW;
+ wd->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN;
_hide(data);
}
if (!wd) return;
- wd->dir = ELM_CTXPOPUP_DIRECTION_DONT_KNOW;
+ wd->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN;
if (wd->visible)
{
Evas_Coord_Point min_size;
Evas_Coord_Rectangle hover_area;
Evas_Coord_Point arrow_size;
- Elm_Ctxpopup_Direction dir = ELM_CTXPOPUP_DIRECTION_DONT_KNOW;
+ Elm_Ctxpopup_Direction dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN;
Evas_Coord_Point temp;
int idx;
{
switch (wd->dir_priority[idx])
{
- case ELM_CTXPOPUP_DIRECTION_DONT_KNOW:
+ case ELM_CTXPOPUP_DIRECTION_UNKNOWN:
case ELM_CTXPOPUP_DIRECTION_UP:
temp.y = (pos.y - base_size.y);
if ((temp.y - arrow_size.y) < hover_area.y)
elm_object_style_set(wd->scr, elm_object_style_get(obj));
}
- wd->dir = ELM_CTXPOPUP_DIRECTION_DONT_KNOW;
+ wd->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN;
if (wd->visible)
{
wd->content = content;
- wd->dir = ELM_CTXPOPUP_DIRECTION_DONT_KNOW;
+ wd->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN;
if (wd->visible)
_sizing_eval(obj);
edje_object_signal_emit(wd->base, "elm,state,content,disable", "elm");
wd->content = NULL;
- wd->dir = ELM_CTXPOPUP_DIRECTION_DONT_KNOW;
+ wd->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN;
return content;
wd->dir_priority[1] = ELM_CTXPOPUP_DIRECTION_LEFT;
wd->dir_priority[2] = ELM_CTXPOPUP_DIRECTION_RIGHT;
wd->dir_priority[3] = ELM_CTXPOPUP_DIRECTION_DOWN;
- wd->dir = ELM_CTXPOPUP_DIRECTION_DONT_KNOW;
+ wd->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN;
evas_object_event_callback_add(obj, EVAS_CALLBACK_SHOW, _ctxpopup_show,
NULL);
if (!wd) return;
_item_icon_set(ctxpopup_it, icon);
- wd->dir = ELM_CTXPOPUP_DIRECTION_DONT_KNOW;
+ wd->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN;
if (wd->visible)
{
if (!wd) return;
_item_label_set(ctxpopup_it, label);
- wd->dir = ELM_CTXPOPUP_DIRECTION_DONT_KNOW;
+ wd->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN;
if (wd->visible)
{
_remove_items(wd);
_list_del(wd);
- wd->dir = ELM_CTXPOPUP_DIRECTION_DONT_KNOW;
+ wd->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN;
}
EAPI void
elm_scroller_bounce_set(wd->scr, EINA_TRUE, EINA_FALSE);
}
- wd->dir = ELM_CTXPOPUP_DIRECTION_DONT_KNOW;
+ wd->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN;
if (wd->visible)
_sizing_eval(obj);
_item_label_set(item, label);
elm_box_pack_end(wd->box, item->base.view);
wd->items = eina_list_append(wd->items, item);
- wd->dir = ELM_CTXPOPUP_DIRECTION_DONT_KNOW;
+ wd->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN;
if (wd->visible)
{
wd->items = eina_list_remove(wd->items, ctxpopup_it);
- wd->dir = ELM_CTXPOPUP_DIRECTION_DONT_KNOW;
+ wd->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN;
elm_widget_item_del(ctxpopup_it);
EAPI Elm_Ctxpopup_Direction
elm_ctxpopup_direction_get(const Evas_Object *obj)
{
- ELM_CHECK_WIDTYPE(obj, widtype) ELM_CTXPOPUP_DIRECTION_DONT_KNOW;
+ ELM_CHECK_WIDTYPE(obj, widtype) ELM_CTXPOPUP_DIRECTION_UNKNOWN;
Widget_Data *wd;
wd = elm_widget_data_get(obj);
- if (!wd) return ELM_CTXPOPUP_DIRECTION_DONT_KNOW;
+ if (!wd) return ELM_CTXPOPUP_DIRECTION_UNKNOWN;
return wd->dir;
}