Elementary migration revision 70341
[framework/uifw/elementary.git] / src / bin / test_gesture_layer2.c
index 30f27b6..487c84e 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
 
 #define TAP_NAME "tap"
@@ -502,7 +502,7 @@ Evas_Object *create_gesture_box(Evas_Object *win, icon_properties *icons,
    snprintf(buf, sizeof(buf), "%s/images/g_layer/%s_1.png",
          elm_app_data_dir_get(), icons[idx].name);
    elm_icon_file_set(icons[idx].icon, buf, NULL);
-   elm_icon_scale_set(icons[idx].icon, 0, 0);
+   elm_icon_resizable_set(icons[idx].icon, 0, 0);
    evas_object_size_hint_align_set(icons[idx].icon, 0.5, 0.5);
    _icon_color_set(&icons[idx], INI_R, INI_G, INI_B, INI_A);
    elm_box_pack_end(bx, icons[idx].icon);
@@ -523,22 +523,16 @@ void
 test_gesture_layer2(void *data __UNUSED__, Evas_Object *obj __UNUSED__,
       void *event_info __UNUSED__)
 {
-   Evas_Object *win, *bg, *tb, *lb, *bx;
+   Evas_Object *win, *tb, *lb, *bx;
    Evas_Object *r; /* Gesture layer transparent object */
    Evas_Object *g; /* The Gesture Layer object */
 
    infra_data *infra = _infra_data_alloc();
 
-   win = elm_win_add(NULL, "table", ELM_WIN_BASIC);
-   elm_win_title_set(win, "Table");
+   win = elm_win_util_standard_add("table", "Table");
    elm_win_autodel_set(win, EINA_TRUE);
    evas_object_smart_callback_add(win, "delete,request", my_win_del, infra);
 
-   bg = elm_bg_add(win);
-   evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-   elm_win_resize_object_add(win, bg);
-   evas_object_show(bg);
-
    /* START - Building icons table */
    bx = elm_box_add(win);
    tb = elm_table_add(win);