Elm anchorblock: Fix code to use the new elm_object_text_set/get API

SVN revision: 61000
This commit is contained in:
Tom Hacohen 2011-07-04 10:40:10 +00:00
parent c8d9636fa2
commit 3fa8a29dac
3 changed files with 9 additions and 9 deletions

View File

@ -157,7 +157,7 @@ test_anchorblock(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event
av = elm_anchorblock_add(win);
elm_anchorblock_hover_style_set(av, "popout");
elm_anchorblock_hover_parent_set(av, win);
elm_anchorblock_text_set(av,
elm_object_text_set(av,
"Hi there. This is the most recent message in the "
"list of messages. It has one <a href=tel:+614321234>+61 432 1234</a> "
"(phone number) to click on.");
@ -184,7 +184,7 @@ test_anchorblock(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event
av = elm_anchorblock_add(win);
elm_anchorblock_hover_style_set(av, "popout");
elm_anchorblock_hover_parent_set(av, win);
elm_anchorblock_text_set(av,
elm_object_text_set(av,
"Hey what are you doing? This is the second last message "
"Hi there. This is the most recent message in the "
"list. It's a longer one so it can wrap more and "
@ -222,7 +222,7 @@ test_anchorblock(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event
av = elm_anchorblock_add(win);
elm_anchorblock_hover_style_set(av, "popout");
elm_anchorblock_hover_parent_set(av, win);
elm_anchorblock_text_set(av, "This is a short message. <item relsize=16x16 vsize=full href=emoticon/haha></item>");
elm_object_text_set(av, "This is a short message. <item relsize=16x16 vsize=full href=emoticon/haha></item>");
evas_object_smart_callback_add(av, "anchor,clicked",
my_anchorblock_anchor, av);
elm_bubble_content_set(bb, av);

View File

@ -62,7 +62,7 @@ fill(Evas_Object *win, Eina_Bool do_bg)
av = elm_anchorblock_add(win);
elm_anchorblock_hover_style_set(av, "popout");
elm_anchorblock_hover_parent_set(av, win);
elm_anchorblock_text_set(av,
elm_object_text_set(av,
"Hi there. This is the most recent message in the "
"list of messages. It has one <a href=tel:+614321234>+61 432 1234</a> "
"(phone number) to click on.");
@ -86,7 +86,7 @@ fill(Evas_Object *win, Eina_Bool do_bg)
av = elm_anchorblock_add(win);
elm_anchorblock_hover_style_set(av, "popout");
elm_anchorblock_hover_parent_set(av, win);
elm_anchorblock_text_set(av,
elm_object_text_set(av,
"Hey what are you doing? This is the second last message "
"Hi there. This is the most recent message in the "
"list. It's a longer one so it can wrap more and "
@ -122,7 +122,7 @@ fill(Evas_Object *win, Eina_Bool do_bg)
av = elm_anchorblock_add(win);
elm_anchorblock_hover_style_set(av, "popout");
elm_anchorblock_hover_parent_set(av, win);
elm_anchorblock_text_set(av, "This is a short message. <item relsize=16x16 vsize=full href=emoticon/haha></item>");
elm_object_text_set(av, "This is a short message. <item relsize=16x16 vsize=full href=emoticon/haha></item>");
elm_bubble_content_set(bb, av);
evas_object_show(av);
elm_box_pack_end(bx, bb);

View File

@ -17,7 +17,7 @@ external_anchorblock_state_set(void *data __UNUSED__, Evas_Object *obj, const vo
if (p->text)
{
elm_anchorblock_text_set(obj, p->text);
elm_object_text_set(obj, p->text);
}
}
@ -28,7 +28,7 @@ external_anchorblock_param_set(void *data __UNUSED__, Evas_Object *obj, const Ed
{
if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
{
elm_anchorblock_text_set(obj, param->s);
elm_object_text_set(obj, param->s);
return EINA_TRUE;
}
}
@ -46,7 +46,7 @@ external_anchorblock_param_get(void *data __UNUSED__, const Evas_Object *obj, Ed
{
if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
{
param->s = elm_anchorblock_text_get(obj);
param->s = elm_object_text_get(obj);
return EINA_TRUE;
}
}