// displayed item number setting example
disk = elm_diskselector_add(win);
elm_diskselector_display_item_num_set(disk, 5);
+ printf("Number of Items in DiskSelector : %d\n", elm_diskselector_display_item_num_get(disk));
for (idx = 0; idx < (int)(sizeof(month_list) / sizeof(month_list[0])); idx++)
{
// displayed item number setting example
disk = elm_diskselector_add(win);
elm_diskselector_display_item_num_set(disk, 7);
+ printf("Number of Items in DiskSelector : %d\n", elm_diskselector_display_item_num_get(disk));
for (idx = 1; idx < 31; idx++)
{
wd->display_item_num = num;
wd->display_item_num_by_api = EINA_TRUE;
}
+
+EAPI int
+elm_diskselector_display_item_num_get(const Evas_Object *item)
+{
+ ELM_CHECK_WIDTYPE(item, widtype) (-1);
+ Widget_Data *wd = elm_widget_data_get(item);
+ if (!wd) return -1;
+ return wd->display_item_num;
+}