Advertisement
dsreyes1014

Genlist Object Item Delete

Jun 15th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 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.  
  11. if (label == NULL)
  12. {
  13. //elm_object_item_del(it);
  14. it = elm_genlist_item_prev_get(song_list);
  15. lc = elm_genlist_items_count(song_list);
  16. printf("%s should be removed from list\n", label);
  17. }
  18. else
  19. {
  20. it = elm_genlist_item_prev_get(song_list);
  21. printf("%s should not be removed from list\n", label);
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement