Implement Purple.Attachments

Review Request #3758 — Created Jan. 14, 2025 and submitted

Information

pidgin/pidgin
default

Reviewers

This is a simple helper collection for Purple.Attachment.

Ran the tests under valgrind and called in the turtles.

Summary ID
Initial work on Purple.Attachments
238f1cf81e4d73b6bd3bd4cc5210f35754d1da38
Description From Last Updated

g_ptr_array_add adds the pointer to the end of the array, shouldn't it be sufficient to do g_list_model_items_changed(G_LIST_MODEL(attachments), len, 0, 1)?

ivanhoeivanhoe

Why is it necessary to create a new attachment object for needle?

ivanhoeivanhoe
grim
ivanhoe
  1. 
      
  2. libpurple/purpleattachments.c (Diff revision 2)
     
     
    Show all issues

    g_ptr_array_add adds the pointer to the end of the array, shouldn't it be sufficient to do g_list_model_items_changed(G_LIST_MODEL(attachments), len, 0, 1)?

    1. Yes it should. I copied this from badges which was prepending and clearly missed this bit in the cleanup.

  3. libpurple/purpleattachments.c (Diff revision 2)
     
     
    Show all issues

    Why is it necessary to create a new attachment object for needle?

    1. Because my tired mind was being dumb apparently? :-D

  4. 
      
grim
ivanhoe
  1. Ship It!
  2. 
      
grim
Review request changed
Status:
Completed