diff options
author | Peter Williams <peterw@ximian.com> | 2001-07-04 01:24:26 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2001-07-04 01:24:26 +0800 |
commit | a507e83ea8683b08ba1a84d478a6f91db2cfdcce (patch) | |
tree | be7c690d2a44b3712fad1604f43db8f4d6fa53df /mail/folder-browser.c | |
parent | ed48c8350f349543662db18649e31f41c5419b9e (diff) | |
download | gsoc2013-evolution-a507e83ea8683b08ba1a84d478a6f91db2cfdcce.tar gsoc2013-evolution-a507e83ea8683b08ba1a84d478a6f91db2cfdcce.tar.gz gsoc2013-evolution-a507e83ea8683b08ba1a84d478a6f91db2cfdcce.tar.bz2 gsoc2013-evolution-a507e83ea8683b08ba1a84d478a6f91db2cfdcce.tar.lz gsoc2013-evolution-a507e83ea8683b08ba1a84d478a6f91db2cfdcce.tar.xz gsoc2013-evolution-a507e83ea8683b08ba1a84d478a6f91db2cfdcce.tar.zst gsoc2013-evolution-a507e83ea8683b08ba1a84d478a6f91db2cfdcce.zip |
Compile fixes. #include errno.h and gnome-dialog-utils.h.
2001-07-03 Peter Williams <peterw@ximian.com>
* 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
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r-- | mail/folder-browser.c | 9 |
1 files changed, 5 insertions, 4 deletions
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 <ctype.h> +#include <errno.h> #include <gdk/gdkkeysyms.h> #include <gtk/gtkinvisible.h> @@ -23,6 +24,8 @@ #include <gal/widgets/e-popup-menu.h> #include <gal/widgets/e-unicode.h> +#include <libgnomeui/gnome-dialog-util.h> + #include <gtkhtml/htmlengine.h> #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) { |