Eina_List *media_list;
};
+static char *_grid_text_get(void *data, Evas_Object *obj, const char *part)
+{
+ app_media *am;
+ app_media_info *info;
+ char buf[32];
+
+ if (!data)
+ return NULL;
+
+ am = data;
+ info = app_media_get_info(am);
+ if (!info) {
+ _ERR("failed to get media info");
+ return NULL;
+ }
+
+ if (info->media_type != MEDIA_CONTENT_TYPE_VIDEO)
+ return NULL;
+
+ if (!strcmp(part, PART_ELM_TEXT_PLAYTIME)) {
+ util_time_string(buf, sizeof(buf),
+ info->video->duration, false);
+
+ return strdup(buf);
+ }
+
+ return NULL;
+}
+
static Evas_Object *_grid_content_get(void *data,
Evas_Object *obj, const char *part)
{
static struct grid_class _gclass = {
.item_style = STYLE_GRID_GALLERY_ITEM,
+ .text_get = _grid_text_get,
.content_get = _grid_content_get
};