Eina_Bool grid_state_get(void *data __UNUSED__, Evas_Object *obj __UNUSED__,
const char *part __UNUSED__);
void grid_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__);
-static Evas_Object *gtt_item_icon(void *data __UNUSED__, Evas_Object *obj __UNUSED__, Evas_Object *tt, void *item __UNUSED__);
typedef struct _Testitem
{
ELM_CURSOR_CROSS,
};
-static Evas_Object *
-gtt_item_icon(void *data __UNUSED__,
- Evas_Object *obj __UNUSED__,
- Evas_Object *tt,
- void *item __UNUSED__)
-{
- Evas_Object *ic = elm_icon_add(tt);
- char buf[PATH_MAX];
- snprintf(buf, sizeof(buf), "%s/images/logo.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
- return ic;
-}
-
static int n_current_pic = 0;
static void
_horizontal_grid(void *data, Evas_Object *obj, void *event_info __UNUSED__)
always_select_mode_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
api_data *api = data;
- elm_gengrid_always_select_mode_set(api->grid, elm_check_state_get(obj));
+ if (elm_check_state_get(obj))
+ elm_gengrid_highlight_mode_set(api->grid, ELM_OBJECT_SELECT_MODE_ALWAYS);
+ else
+ elm_gengrid_highlight_mode_set(api->grid, ELM_OBJECT_SELECT_MODE_DEFAULT);
}
static void