From a507e83ea8683b08ba1a84d478a6f91db2cfdcce Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Tue, 3 Jul 2001 17:24:26 +0000 Subject: Compile fixes. #include errno.h and gnome-dialog-utils.h. 2001-07-03 Peter Williams * folder-browser.c (message_list_drag_data_get): Compile fixes. #include errno.h and gnome-dialog-utils.h. s/dirname/tmpdir/ svn path=/trunk/; revision=10757 --- mail/ChangeLog | 5 +++++ mail/folder-browser.c | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index f828078786..7f5ac335ee 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-07-03 Peter Williams + + * folder-browser.c (message_list_drag_data_get): Compile fixes. + #include errno.h and gnome-dialog-utils.h. s/dirname/tmpdir/ + 2001-07-03 Peter Williams Prevent folders from appearing to have -1 new messages. Prevent diff --git a/mail/folder-browser.c b/mail/folder-browser.c index c52c9916f1..497a65ddc5 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -13,6 +13,7 @@ #endif #include +#include #include #include @@ -23,6 +24,8 @@ #include #include +#include + #include #include "filter/vfolder-rule.h" @@ -188,12 +191,10 @@ message_list_drag_data_get (ETree *tree, int row, ETreePath path, int col, switch (info) { case DND_TARGET_TYPE_TEXT_URI_LIST: { - char *uri_list, tmpdir, *tmpl; + char *uri_list, *tmpdir, *tmpl; CamelMimeMessage *message; const char *filename; CamelStream *stream; - char *uri_list; - char *tmpdir; int fd; tmpl = g_strdup ("/tmp/evolution.XXXXXX"); @@ -229,7 +230,7 @@ message_list_drag_data_get (ETree *tree, int row, ETreePath path, int col, } else filename = "mbox"; - uri_list = g_strdup_printf ("file://%s/%s", dirname, filename); + uri_list = g_strdup_printf ("file://%s/%s", tmpdir, filename); fd = open (uri_list + 7, O_WRONLY | O_CREAT, 0600); if (fd == -1) { -- cgit