Elm anchorblock: Fix code to use the new elm_object_text_set/get API
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 4 Jul 2011 10:40:10 +0000 (10:40 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 4 Jul 2011 10:40:10 +0000 (10:40 +0000)
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@61000 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/test_anchorblock.c
src/bin/test_win_inline.c
src/edje_externals/elm_anchorblock.c

index 009336a..8bf9392 100644 (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);
index e4122f3..297910d 100644 (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);
index 1e04c37..8b71ebb 100644 (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;
          }
      }