Fixed some reference leaks of attachments. I also moved from using
authorJose Dapena Paz <jdapena@igalia.com>
Tue, 8 Jan 2008 18:54:31 +0000 (18:54 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Tue, 8 Jan 2008 18:54:31 +0000 (18:54 +0000)
commit91526797480db76525e1295ec4a65f29f4bdc9cf
tree89db6127775282cc72f2b200883804cdf224e3ea
parent43d04cf5d20ab51e3440b10213670585d9d46fe5
Fixed some reference leaks of attachments. I also moved from using
GList* of TnyMimeParts to use TnyLists to maintain a more intuitive list
of references.
* src/widget/modest-gtkhtml-msg-view.[ch]:
        * Use TnyList of attachments
* src/widgets/modest-msg-edit-window.h:
        * Use TnyList instead of GList for attachments.
* src/widgets/modest-msg-view.[ch]:
        * Use TnyList instead of GList for attachments.
* src/widgets/modest-attachment-view.c:
        * Now the ModestAttachmentView always keep a reference
          to the mime part with g_object_ref.
* src/widgets/modest-msg-view-window.h:
        * Use TnyList instead of GList for attachments.
* src/widgets/modest-attachments-view.[ch]:
        * Missing unreferencing on iteration.
        * Use TnyList instead of GList for attachmetns.
* src/modest-tny-msg.c:
        * Use TnyList and unrefernce an attachment list properly.
* src/modest-ui-actions.c:
        * Mail operations for saving to drafts or sending mails from
          edit window shouldn't keep a reference to the edit window.
        * Fixed minor bug assigning a g_strdup.
        * Some frees in error cases in modest_ui_actions_on_send.
* src/maemo/modest-msg-edit-window.c:
        * Fixed some leaked references.
        * Use TnyList instead of GList for lists of attachments.
* src/maemo/modest-msg-view-window.c:
        * Use TnyList instead of GList for lists of attachments.
        * Fixed some counting leaks.
* src/modest-utils.[ch]:
        * New method modest_list_index (), that finds the ordinal index
          of an item in a list.
* src/modest-ui-dimming-rules.c:
        * Use TnyList instead of GList for lists of attachments.

pmo-trunk-r3996
16 files changed:
src/maemo/modest-msg-edit-window.c
src/maemo/modest-msg-view-window.c
src/modest-tny-msg.c
src/modest-ui-actions.c
src/modest-ui-dimming-rules.c
src/modest-utils.c
src/modest-utils.h
src/widgets/modest-attachment-view.c
src/widgets/modest-attachments-view.c
src/widgets/modest-attachments-view.h
src/widgets/modest-gtkhtml-msg-view.c
src/widgets/modest-gtkhtml-msg-view.h
src/widgets/modest-msg-edit-window.h
src/widgets/modest-msg-view-window.h
src/widgets/modest-msg-view.c
src/widgets/modest-msg-view.h