Elementary migration revision 69832
[framework/uifw/elementary.git] / src / bin / test_weather.c
index 6ca1146..893af3f 100644 (file)
@@ -1,7 +1,7 @@
-#include <Elementary.h>
 #ifdef HAVE_CONFIG_H
 # include "elementary_config.h"
 #endif
+#include <Elementary.h>
 #ifndef ELM_LIB_QUICKLAUNCH
 
 #ifdef HAVE_ELEMENTARY_EWEATHER
@@ -36,7 +36,7 @@ static void _apply_cb(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *ev
 
    if (module[current])
      eweather_plugin_set(eweather, module[current]);
-   eweather_code_set(eweather, elm_entry_entry_get(en));
+   eweather_code_set(eweather, elm_object_text_get(en));
    printf("CURRENT %d %p %p\n", current, module[current], eweather);
 }
 
@@ -44,10 +44,10 @@ static void
 _hover_select_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
 {
    EWeather *eweather = eweather_object_eweather_get(weather[0]);
-   module[0] = eweather_plugin_search(eweather, elm_hoversel_item_label_get(event_info));
+   module[0] = eweather_plugin_search(eweather, elm_object_item_text_get(event_info));
 
    eweather = eweather_object_eweather_get(weather[1]);
-   module[1] = eweather_plugin_search(eweather, elm_hoversel_item_label_get(event_info));
+   module[1] = eweather_plugin_search(eweather, elm_object_item_text_get(event_info));
    printf("%p %p\n", module[0], module[1]);
 }
 #endif
@@ -67,7 +67,7 @@ test_weather(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
 
    win = elm_win_add(NULL, "weather", ELM_WIN_BASIC);
    elm_win_title_set(win, "Weather");
-   elm_win_autodel_set(win, 1);
+   elm_win_autodel_set(win, EINA_TRUE);
 
    bg = elm_bg_add(win);
    evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
@@ -91,7 +91,7 @@ test_weather(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
    weather[0] = eweather_object_add(evas_object_evas_get(win));
    evas_object_size_hint_weight_set(weather[0], EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    evas_object_size_hint_align_set(weather[0], -1.0, -1.0);
-   elm_flip_content_front_set(fl, weather[0]);
+   elm_object_part_content_set(fl, "front", weather[0]);
    evas_object_show(weather[0]);
 
    module[1] = NULL;
@@ -99,7 +99,7 @@ test_weather(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
    eweather = eweather_object_eweather_get(weather[1]);
    evas_object_size_hint_weight_set(weather[1], EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    evas_object_size_hint_align_set(weather[1], -1.0, -1.0);
-   elm_flip_content_back_set(fl, weather[1]);
+   elm_object_part_content_set(fl, "back", weather[1]);
    evas_object_show(weather[1]);
 
    evas_object_show(fl);
@@ -112,13 +112,13 @@ test_weather(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
    evas_object_show(bx0);
 
    bt = elm_button_add(win);
-   elm_button_label_set(bt, "First city");
+   elm_object_text_set(bt, "First city");
    evas_object_show(bt);
    elm_box_pack_end(bx0, bt);
    evas_object_smart_callback_add(bt, "clicked", _first_city_cb, NULL);
 
    bt = elm_button_add(win);
-   elm_button_label_set(bt, "Second city");
+   elm_object_text_set(bt, "Second city");
    evas_object_show(bt);
    elm_box_pack_end(bx0, bt);
    evas_object_smart_callback_add(bt, "clicked", _second_city_cb, NULL);
@@ -133,7 +133,7 @@ test_weather(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
 
    hv = elm_hoversel_add(win);
    elm_hoversel_hover_parent_set(hv, win);
-   elm_hoversel_label_set(hv, "data source");
+   elm_object_text_set(hv, "data source");
    evas_object_size_hint_weight_set(hv, 0.0, 0.0);
    evas_object_size_hint_align_set(hv, 0.5, 0.5);
    elm_box_pack_end(bx0, hv);
@@ -145,16 +145,16 @@ test_weather(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
      elm_hoversel_item_add(hv, eweather_plugin_name_get(eweather, i), NULL, ELM_ICON_NONE, _hover_select_cb, NULL);
 
    en = elm_entry_add(win);
-   elm_entry_line_wrap_set(en, 0);
+   elm_entry_line_wrap_set(en, ELM_WRAP_NONE);
    elm_entry_single_line_set(en, EINA_TRUE);
-   elm_entry_entry_set(en, "Paris");
+   elm_object_text_set(en, "Paris");
    evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    evas_object_size_hint_align_set(en, EVAS_HINT_FILL, EVAS_HINT_FILL);
    elm_box_pack_end(bx0, en);
    evas_object_show(en);
 
    bt = elm_button_add(win);
-   elm_button_label_set(bt, "Apply");
+   elm_object_text_set(bt, "Apply");
    evas_object_show(bt);
    elm_box_pack_end(bx0, bt);
    evas_object_smart_callback_add(bt, "clicked", _apply_cb, NULL);