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

src/bin/test_fileselector_entry.c
src/edje_externals/elm_fileselector_entry.c

index adae812..46214c0 100644 (file)
@@ -39,12 +39,12 @@ _folder_only_toggle(void            *data,
    if (!value)
      {
         elm_icon_standard_set(ic, "folder");
-        elm_fileselector_entry_button_label_set(fs_en, "Select a folder");
+        elm_object_text_set(fs_en, "Select a folder");
      }
    else
      {
         elm_icon_standard_set(ic, "file");
-        elm_fileselector_entry_button_label_set(fs_en, "Select a file");
+        elm_object_text_set(fs_en, "Select a file");
      }
 }
 
@@ -96,7 +96,7 @@ test_fileselector_entry(void *data       __UNUSED__,
    elm_icon_standard_set(ic, "file");
    evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
    fs_en = elm_fileselector_entry_add(win);
-   elm_fileselector_entry_button_label_set(fs_en, "Select a file");
+   elm_object_text_set(fs_en, "Select a file");
    elm_fileselector_entry_button_icon_set(fs_en, ic);
    evas_object_size_hint_weight_set(fs_en, EVAS_HINT_EXPAND, 0.0);
    evas_object_size_hint_align_set(fs_en, EVAS_HINT_FILL, EVAS_HINT_FILL);
index 2389b70..9e61f9c 100644 (file)
@@ -29,7 +29,7 @@ external_fileselector_entry_state_set(void *data __UNUSED__, Evas_Object *obj, c
    else return;
 
    if (p->label)
-     elm_fileselector_entry_button_label_set(obj, p->label);
+     elm_object_text_set(obj, p->label);
    if (p->icon) elm_fileselector_entry_button_icon_set(obj, p->icon);
    if (p->fs.path) elm_fileselector_entry_selected_set(obj, p->fs.path);
    if (p->fs.is_save_set)
@@ -49,7 +49,7 @@ external_fileselector_entry_param_set(void *data __UNUSED__, Evas_Object *obj, c
      {
        if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
          {
-            elm_fileselector_entry_button_label_set(obj, param->s);
+            elm_object_text_set(obj, param->s);
             return EINA_TRUE;
          }
      }
@@ -117,7 +117,7 @@ external_fileselector_entry_param_get(void *data __UNUSED__, const Evas_Object *
      {
        if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
          {
-            param->s = elm_fileselector_entry_button_label_get(obj);
+            param->s = elm_object_text_get(obj);
             return EINA_TRUE;
          }
      }