-#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
+#include <Elementary.h>
#ifndef ELM_LIB_QUICKLAUNCH
#define TAP_NAME "tap"
{
int n;
- for(n = 0; n < N_GESTURE_TYPE; n++)
+ for (n = 0; n < N_GESTURE_TYPE; n++)
if (!strcmp(icons[n].name, name))
return &icons[n];
icon_properties *icons = data;
icon_properties *i;
- for(n = 0; n < N_GESTURE_TYPE; n++)
+ for (n = 0; n < N_GESTURE_TYPE; n++)
{
i = &icons[n];
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);
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);