elementary: elm_label_label_ -> elm_object_text
authormike_m <mike_m@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 29 Jun 2011 06:41:31 +0000 (06:41 +0000)
committermike_m <mike_m@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 29 Jun 2011 06:41:31 +0000 (06:41 +0000)
Clear deprecated warnings.

Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@60798 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

20 files changed:
src/bin/config.c
src/bin/test.c
src/bin/test_bubble.c
src/bin/test_fileselector_button.c
src/bin/test_fileselector_entry.c
src/bin/test_focus.c
src/bin/test_genlist.c
src/bin/test_inwin.c
src/bin/test_label.c
src/bin/test_launcher.c
src/bin/test_map.c
src/bin/test_notify.c
src/bin/test_pager.c
src/bin/test_scaling.c
src/bin/test_weather.c
src/edje_externals/elm_label.c
src/lib/elm_gengrid.c
src/lib/elm_genlist.c
src/lib/elm_widget.c
src/lib/els_tooltip.c

index d50ffd0..df3d440 100644 (file)
@@ -80,7 +80,7 @@ struct _Fonts_Data
        lb = elm_label_add(win);                                     \
        evas_object_size_hint_weight_set(lb, EVAS_HINT_EXPAND, 0.0); \
        evas_object_size_hint_align_set(lb, EVAS_HINT_FILL, 0.5);    \
-       elm_label_label_set(lb, label);                              \
+       elm_object_text_set(lb, label);                              \
        elm_frame_content_set(pd, lb);                               \
        evas_object_show(lb);                                        \
     }                                                               \
@@ -555,7 +555,7 @@ _status_basic(Evas_Object *win,
    evas_object_show(fr);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb,
+   elm_object_text_set(lb,
                        "Applying configuration change"
                        );
    elm_frame_content_set(fr, lb);
@@ -2108,7 +2108,7 @@ _profiles_list_selected_cb(void            *data,
 
    snprintf(buf, sizeof(buf), "<hilight>Selected profile: %s</><br>",
             prof_name);
-   elm_label_label_set(evas_object_data_get(obj, "prof_name_lbl"), buf);
+   elm_object_text_set(evas_object_data_get(obj, "prof_name_lbl"), buf);
 
    en = evas_object_data_get(obj, "prof_desc_entry");
 #ifdef ELM_EFREET
index 760c789..a439dcf 100644 (file)
@@ -249,7 +249,7 @@ my_win_main(char *autorun)
    evas_object_show(fr);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb,
+   elm_object_text_set(lb,
                        "Please select a test from the list below<br>"
                        "by clicking the test button to show the<br>"
                        "test window.");
index 8f876a2..2872a65 100644 (file)
@@ -47,7 +47,7 @@ test_bubble(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_size_hint_align_set(bb, EVAS_HINT_FILL, EVAS_HINT_FILL);
 
    ct = elm_label_add(win);
-   elm_label_label_set(ct,
+   elm_object_text_set(ct,
                        "\"The future of the art: R or G or B?\",  by Rusty");
    elm_bubble_content_set(bb, ct);
 
@@ -62,7 +62,7 @@ test_bubble(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_size_hint_align_set(bb, EVAS_HINT_FILL, EVAS_HINT_FILL);
 
    ct = elm_label_add(win);
-   elm_label_label_set(ct, "Corner: base (top-left) - no icon");
+   elm_object_text_set(ct, "Corner: base (top-left) - no icon");
    elm_bubble_content_set(bb, ct);
 
    elm_box_pack_end(bx, bb);
index b6f3f9f..4742f2c 100644 (file)
@@ -129,7 +129,7 @@ test_fileselector_button(void *data       __UNUSED__,
    evas_object_show(bt);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb, "Last selection:");
+   elm_object_text_set(lb, "Last selection:");
    elm_box_pack_end(vbox, lb);
    evas_object_show(lb);
 
index b57f799..d4b09d7 100644 (file)
@@ -130,7 +130,7 @@ test_fileselector_entry(void *data       __UNUSED__,
    evas_object_show(bt);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb, "Last selection:");
+   elm_object_text_set(lb, "Last selection:");
    elm_box_pack_end(vbox, lb);
    evas_object_show(lb);
 
index 00dd2e3..a7cc1e2 100644 (file)
@@ -90,7 +90,7 @@ test_focus(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
 
           {
              Evas_Object *lb = elm_label_add(win);
-             elm_label_label_set(lb,
+             elm_object_text_set(lb,
                                  "<b>Use Tab and Shift+Tab</b>"
                                 );
              evas_object_size_hint_weight_set(lb, 0.0, 0.0);
index e91e16a..101bb7b 100644 (file)
@@ -679,7 +679,7 @@ Evas_Object *gl3_icon_get(void *data, Evas_Object *obj, const char *part)
         lb = elm_label_add(obj);
         elm_label_line_wrap_set(lb, 1);
         elm_label_wrap_width_set(lb, 201);
-        elm_label_label_set(lb, "ashj ascjscjh n asjkl hcjlh ls hzshnn zjh sh zxjcjsnd h dfw sdv edev efe fwefvv vsd cvs ws wf  fvwf wd fwe f  we wef we wfe rfwewef wfv wswf wefg sdfws w wsdcfwcf wsc vdv  sdsd sdcd cv wsc sdcv wsc d sdcdcsd sdcdsc wdvd sdcsd wscxcv wssvd sd");
+        elm_object_text_set(lb, "ashj ascjscjh n asjkl hcjlh ls hzshnn zjh sh zxjcjsnd h dfw sdv edev efe fwefvv vsd cvs ws wf  fvwf wd fwe f  we wef we wfe rfwewef wfv wswf wefg sdfws w wsdcfwcf wsc vdv  sdsd sdcd cv wsc sdcv wsc d sdcdcsd sdcdsc wdvd sdcsd wscxcv wssvd sd");
         return lb;
      }
    else if (!strcmp(part, "elm.swallow.end"))
@@ -1726,7 +1726,7 @@ test_genlist10(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_i
    evas_object_show(bx2);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb,
+   elm_object_text_set(lb,
                        "Sweep genlist items to the right.<br>"
                        "Test this by changing Mode Type to Slide or Rotate.");
    elm_box_pack_end(bx2, lb);
@@ -1839,7 +1839,7 @@ test_genlist11(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_i
    evas_object_show(fr);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb,
+   elm_object_text_set(lb,
                        "Enable reorder mode if you want to move item.<br>"
                        "Then long press and drag item.");
    elm_frame_content_set(fr, lb);
index 3f09983..926f5b2 100644 (file)
@@ -21,7 +21,7 @@ test_inwin(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_show(inwin);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb,
+   elm_object_text_set(lb,
                       "This is an \"inwin\" - a window in a<br>"
                       "window. This is handy for quick popups<br>"
                       "you want centered, taking over the window<br>"
@@ -53,7 +53,7 @@ test_inwin2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_show(inwin);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb,
+   elm_object_text_set(lb,
                       "This is an \"inwin\" - a window in a<br>"
                       "window. This is handy for quick popups<br>"
                       "you want centered, taking over the window<br>"
index 2cd6a8f..1323da7 100644 (file)
@@ -23,7 +23,7 @@ test_label(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_size_hint_align_set(bx, EVAS_HINT_FILL, EVAS_HINT_FILL);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb,
+   elm_object_text_set(lb,
                        "<b>This is a small label</b>"
                        );
    evas_object_size_hint_weight_set(lb, 0.0, 0.0);
@@ -32,7 +32,7 @@ test_label(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_show(lb);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb,
+   elm_object_text_set(lb,
                        "This is a larger label with newlines<br>"
                        "to make it bigger, bit it won't expand or wrap<br>"
                        "just be a block of text that can't change its<br>"
@@ -45,7 +45,7 @@ test_label(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
 
    lb = elm_label_add(win);
    elm_label_line_wrap_set(lb, 1);
-   elm_label_label_set(lb,
+   elm_object_text_set(lb,
                        "<b>"
                        "This is more text designed to line-wrap here as "
                        "This object is resized horizontally. As it is "
@@ -60,7 +60,7 @@ test_label(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_show(lb);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb,
+   elm_object_text_set(lb,
                        "This small label set to wrap"
                        );
    evas_object_size_hint_weight_set(lb, EVAS_HINT_EXPAND, 0.0);
index c9c9129..925a8e9 100644 (file)
@@ -273,7 +273,7 @@ test_launcher(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
 
                   lb = elm_label_add(win);
                   elm_object_style_set(lb, "marker");
-                  elm_label_label_set(lb, names[m]);
+                  elm_object_text_set(lb, names[m]);
                   evas_object_size_hint_weight_set(lb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
                   evas_object_size_hint_align_set(lb, 0.5, 0.5);
                   elm_table_pack(tb, lb, 1 + i, 1 + (j * 2) + 1, 1, 1);
index f683dac..9567c42 100644 (file)
@@ -560,7 +560,7 @@ _marker_get(Evas_Object *obj, Elm_Map_Marker *marker __UNUSED__, void *data)
         elm_box_pack_end(bx, o);
 
         Evas_Object *lbl = elm_label_add(obj);
-        elm_label_label_set(lbl, "Wolves Go !");
+        elm_object_text_set(lbl, "Wolves Go !");
         evas_object_show(lbl);
         elm_box_pack_end(bx, lbl);
      }
index 8772f7b..91e6df7 100644 (file)
@@ -65,7 +65,7 @@ test_notify(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_show(bx);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb, "This position is the default.");
+   elm_object_text_set(lb, "This position is the default.");
    elm_box_pack_end(bx, lb);
    evas_object_show(lb);
 
@@ -95,7 +95,7 @@ test_notify(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_show(bx);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb, "Bottom position. This notify use a timeout of 5 sec.<br>"
+   elm_object_text_set(lb, "Bottom position. This notify use a timeout of 5 sec.<br>"
         "<b>The events outside the window are blocked.</b>");
    elm_box_pack_end(bx, lb);
    evas_object_show(lb);
@@ -124,7 +124,7 @@ test_notify(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_show(bx);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb, "Left position. This notify use a timeout of 10 sec.");
+   elm_object_text_set(lb, "Left position. This notify use a timeout of 10 sec.");
    elm_box_pack_end(bx, lb);
    evas_object_show(lb);
 
@@ -152,7 +152,7 @@ test_notify(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_show(bx);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb, "Center position. This notify use a timeout of 10 sec.");
+   elm_object_text_set(lb, "Center position. This notify use a timeout of 10 sec.");
    elm_box_pack_end(bx, lb);
    evas_object_show(lb);
 
@@ -178,7 +178,7 @@ test_notify(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_show(bx);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb, "Right position.");
+   elm_object_text_set(lb, "Right position.");
    elm_box_pack_end(bx, lb);
    evas_object_show(lb);
 
@@ -204,7 +204,7 @@ test_notify(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_show(bx);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb, "Top Left position.");
+   elm_object_text_set(lb, "Top Left position.");
    elm_box_pack_end(bx, lb);
    evas_object_show(lb);
 
@@ -230,7 +230,7 @@ test_notify(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_show(bx);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb, "Top Right position.");
+   elm_object_text_set(lb, "Top Right position.");
    elm_box_pack_end(bx, lb);
    evas_object_show(lb);
 
@@ -256,7 +256,7 @@ test_notify(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_show(bx);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb, "Bottom Left position.");
+   elm_object_text_set(lb, "Bottom Left position.");
    elm_box_pack_end(bx, lb);
    evas_object_show(lb);
 
@@ -282,7 +282,7 @@ test_notify(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_show(bx);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb, "Bottom Right position.");
+   elm_object_text_set(lb, "Bottom Right position.");
    elm_box_pack_end(bx, lb);
    evas_object_show(lb);
 
index 2b5402e..a8a988f 100644 (file)
@@ -97,7 +97,7 @@ test_pager(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_show(bx);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb,
+   elm_object_text_set(lb,
                       "This is page 1 in a pager stack.<br>"
                       "<br>"
                       "So what is a pager stack? It is a stack<br>"
@@ -149,7 +149,7 @@ test_pager(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_show(bx);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb,
+   elm_object_text_set(lb,
                       "This is page 2 in a pager stack.<br>"
                       "<br>"
                       "This is just like the previous page in<br>"
@@ -177,7 +177,7 @@ test_pager(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_show(bx);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb,
+   elm_object_text_set(lb,
                       "This is page 3 in a pager stack.<br>"
                       "<br>"
                       "This is just like the previous page in<br>"
@@ -254,7 +254,7 @@ my_pager_push(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED
 
    lb = elm_label_add(info->win);
    snprintf(buf, sizeof(buf), "This is page %d in the slide pager<br><br>", count++);
-   elm_label_label_set(lb, buf);
+   elm_object_text_set(lb, buf);
    elm_box_pack_end(bx, lb);
    evas_object_show(lb);
 
@@ -300,7 +300,7 @@ test_pager_slide(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event
    evas_object_show(bx);
 
    lb = elm_label_add(win);
-   elm_label_label_set(lb,
+   elm_object_text_set(lb,
                       "This is page 1 in a slide pager.<br>"
                       "<br>"
                       "The slide pager style is useful for browsing<br>"
index 2a26b5e..ffa4734 100644 (file)
@@ -85,7 +85,7 @@ test_scaling2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
    elm_object_scale_set(fr, 0.5);
    elm_frame_label_set(fr, "Scale: 0.5");
    lb = elm_label_add(win);
-   elm_label_label_set(lb,
+   elm_object_text_set(lb,
                       "Parent frame scale<br>"
                       "is 0.5. Child should<br>"
                       "inherit it.");
@@ -97,7 +97,7 @@ test_scaling2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
    fr = elm_frame_add(win);
    elm_frame_label_set(fr, "Scale: 1.0");
    lb = elm_label_add(win);
-   elm_label_label_set(lb,
+   elm_object_text_set(lb,
                       "Parent frame scale<br>"
                       "is 1.0. Child should<br>"
                       "inherit it.");
@@ -110,7 +110,7 @@ test_scaling2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
    fr = elm_frame_add(win);
    elm_frame_label_set(fr, "Scale: 2.0");
    lb = elm_label_add(win);
-   elm_label_label_set(lb,
+   elm_object_text_set(lb,
                       "Parent frame scale<br>"
                       "is 2.0. Child should<br>"
                       "inherit it.");
index 70900fa..6ca1146 100644 (file)
@@ -166,7 +166,7 @@ test_weather(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
 
     lbl = elm_label_add(win);
     elm_win_resize_object_add(win, lbl);
-    elm_label_label_set(lbl, "libeweather is required to display the forecast.");
+    elm_object_text_set(lbl, "libeweather is required to display the forecast.");
     evas_object_show(lbl);
 #endif
 
index 2e891fc..39a3afe 100644 (file)
@@ -15,7 +15,7 @@ external_label_state_set(void *data __UNUSED__, Evas_Object *obj __UNUSED__, con
    else if (from_params) p = from_params;
    else return;
 
-   if (p->label) elm_label_label_set(obj, p->label);
+   if (p->label) elm_object_text_set(obj, p->label);
 }
 
 static Eina_Bool
@@ -25,7 +25,7 @@ external_label_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_Ext
      {
        if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
          {
-            elm_label_label_set(obj, param->s);
+            elm_object_text_set(obj, param->s);
             return EINA_TRUE;
          }
      }
@@ -43,7 +43,7 @@ external_label_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_Ext
      {
        if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
          {
-            param->s = elm_label_label_get(obj);
+            param->s = elm_object_text_get(obj);
             return EINA_TRUE;
          }
      }
index 7e35b03..95c821a 100644 (file)
@@ -2610,7 +2610,7 @@ _elm_gengrid_item_label_create(void        *data,
    if (!label)
      return NULL;
    elm_object_style_set(label, "tooltip");
-   elm_label_label_set(label, data);
+   elm_object_text_set(label, data);
    return label;
 }
 
index 3218411..acb4c94 100644 (file)
@@ -4921,7 +4921,7 @@ _elm_genlist_item_label_create(void        *data,
    if (!label)
      return NULL;
    elm_object_style_set(label, "tooltip");
-   elm_label_label_set(label, data);
+   elm_object_text_set(label, data);
    return label;
 }
 
index fde7ed7..e1819ec 100644 (file)
@@ -2466,7 +2466,7 @@ _elm_widget_item_tooltip_label_create(void        *data,
    if (!label)
      return NULL;
    elm_object_style_set(label, "tooltip");
-   elm_label_label_set(label, data);
+   elm_object_text_set(label, data);
    return label;
 }
 
index b7341f1..ba4fe4d 100644 (file)
@@ -473,7 +473,7 @@ _elm_tooltip_label_create(void *data, Evas_Object *obj)
    if (!label)
      return NULL;
    elm_object_style_set(label, "tooltip");
-   elm_label_label_set(label, data);
+   elm_object_text_set(label, data);
    return label;
 }