#ifdef ELM_EFREET
static void
-desktop_sel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
+desktop_sel(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- printf("sel\n");
+ Efreet_Desktop *d = data;
+ if (!d) return;
+ printf("Selected Desktop Icon:\n");
+ printf("\tname : %s\n", d->name);
+ printf("\ticon : %s\n", d->icon);
+ printf("\tgeneric_name : %s\n", d->generic_name);
}
#endif
EINA_LIST_FREE(desktops, d)
elm_genlist_item_append(gl, it_desk, d,
NULL, ELM_GENLIST_ITEM_NONE,
- desktop_sel, NULL);
+ desktop_sel, d);
}
}
#endif