From 6c2417cabc1b35ea4fc9db6493d85354b1039d6d Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Sun, 22 May 2011 19:56:53 -0700 Subject: add part_sep formatter to replace "first" argument to part format functions A new field "part_sep" is added to the notmuch_show_format structure, to be used for part separation. This is cleaner than the "first" argument that was being passed around to the part arguments, and allows the function that handles overall part output formatting (show_message_part) to directly handle when outputting the separator. --- notmuch-reply.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'notmuch-reply.c') diff --git a/notmuch-reply.c b/notmuch-reply.c index 064d27e..b5ca19c 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -26,14 +26,13 @@ static void reply_part (GMimeObject *part, - unused (int *part_count), - unused (int first)); + unused (int *part_count)); static const notmuch_show_format_t format_reply = { NULL, NULL, NULL, NULL, NULL, NULL, - NULL, reply_part, NULL, NULL, + NULL, reply_part, NULL, NULL, NULL, NULL, NULL, NULL }; @@ -87,8 +86,7 @@ show_reply_headers (GMimeMessage *message) static void reply_part (GMimeObject *part, - unused (int *part_count), - unused (int first)) + unused (int *part_count)) { GMimeContentDisposition *disposition; GMimeContentType *content_type; -- cgit v1.2.3