Advertisement
dsreyes1014

Genlist Object Item Delete

Jun 15th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. lc = elm_genlist_items_count(song_list);
  2. it = elm_genlist_last_item_get(song_list);
  3.  
  4. while (it != NULL)
  5. {
  6. const char *label = elm_object_item_part_text_get(it, "elm.text");
  7.  
  8. printf("Total of %i items in list\n", lc);
  9.  
  10. if (label == NULL)
  11. {
  12. //elm_object_item_del(it);
  13. it = elm_genlist_item_prev_get(song_list);
  14. lc = elm_genlist_items_count(song_list);
  15. printf("%s should be removed from list\n", label);
  16. }
  17. else
  18. {
  19. it = elm_genlist_item_prev_get(song_list);
  20. printf("%s should not be removed from list\n", label);
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement