{NULL, NULL}
};
-static const char *corner_string[] =
+static const char *corner_string[] =
{
"top_left",
"top_right",
_mirrored_set(obj, elm_widget_mirrored_get(obj));
_elm_theme_object_set(obj, wd->bbl, "bubble", corner_string[wd->pos],
elm_widget_style_get(obj));
- edje_object_part_text_set(wd->bbl, "elm.text", wd->label);
+ edje_object_part_text_escaped_set(wd->bbl, "elm.text", wd->label);
if (wd->label) edje_object_signal_emit(wd->bbl, "elm,state,text,visible", "elm");
else edje_object_signal_emit(wd->bbl, "elm,state,text,hidden", "elm");
- edje_object_part_text_set(wd->bbl, "elm.info", wd->info);
+ edje_object_part_text_escaped_set(wd->bbl, "elm.info", wd->info);
if (wd->info) edje_object_signal_emit(wd->bbl, "elm,state,info,visible", "elm");
else edje_object_signal_emit(wd->bbl, "elm,state,info,hidden", "elm");
if (wd->content)
if (!part || !strcmp(part, "default"))
_content_set(obj, content);
- else if(!strcmp(part, "icon"))
+ else if (!strcmp(part, "icon"))
_icon_set(obj, content);
}
if (!wd) return NULL;
if (!part || !strcmp(part, "default"))
return wd->content;
- else if(!strcmp(part, "icon"))
+ else if (!strcmp(part, "icon"))
return wd->icon;
return NULL;
}
if (!wd) return NULL;
if (!part || !strcmp(part, "default"))
return _content_unset(obj);
- else if(!strcmp(part, "icon"))
+ else if (!strcmp(part, "icon"))
return _icon_unset(obj);
return NULL;
}
if (!item || !strcmp(item, "default"))
{
eina_stringshare_replace(&wd->label, label);
- edje_object_part_text_set(wd->bbl, "elm.text", label);
+ edje_object_part_text_escaped_set(wd->bbl, "elm.text", label);
if (label) edje_object_signal_emit(wd->bbl, "elm,state,text,visible",
- "elm");
+ "elm");
else edje_object_signal_emit(wd->bbl, "elm,state,text,hidden", "elm");
_sizing_eval(obj);
}
else if (!strcmp(item, "info"))
{
eina_stringshare_replace(&wd->info, label);
- edje_object_part_text_set(wd->bbl, "elm.info", label);
+ edje_object_part_text_escaped_set(wd->bbl, "elm.info", label);
if (label) edje_object_signal_emit(wd->bbl, "elm,state,info,visible",
- "elm");
+ "elm");
else edje_object_signal_emit(wd->bbl, "elm,state,info,hidden", "elm");
_sizing_eval(obj);
}
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)
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
- if(pos<ELM_BUBBLE_POS_TOP_LEFT || pos>ELM_BUBBLE_POS_BOTTOM_RIGHT) return;
+ if (pos<ELM_BUBBLE_POS_TOP_LEFT || pos>ELM_BUBBLE_POS_BOTTOM_RIGHT) return;
wd->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)
{