diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-01-17 07:21:28 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-01-17 07:21:28 +0800 |
commit | 9180a6949fa42011efde8d80bc155b8f6c985069 (patch) | |
tree | fbe665b6a60048f8bda82d4fd35a065bd38dd29b | |
parent | 5454c35a4261b7d4976527bd107351f7246468fd (diff) | |
download | gsoc2013-evolution-9180a6949fa42011efde8d80bc155b8f6c985069.tar gsoc2013-evolution-9180a6949fa42011efde8d80bc155b8f6c985069.tar.gz gsoc2013-evolution-9180a6949fa42011efde8d80bc155b8f6c985069.tar.bz2 gsoc2013-evolution-9180a6949fa42011efde8d80bc155b8f6c985069.tar.lz gsoc2013-evolution-9180a6949fa42011efde8d80bc155b8f6c985069.tar.xz gsoc2013-evolution-9180a6949fa42011efde8d80bc155b8f6c985069.tar.zst gsoc2013-evolution-9180a6949fa42011efde8d80bc155b8f6c985069.zip |
If the user hits "No", then don't destroy the filesel window.
2001-01-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (save_msg_ok): If the user hits "No", then
don't destroy the filesel window.
* mail-ops.c (save_messages_save): Open with mode 0666 as danw
suggests.
svn path=/trunk/; revision=7553
-rw-r--r-- | mail/ChangeLog | 8 | ||||
-rw-r--r-- | mail/mail-callbacks.c | 3 | ||||
-rw-r--r-- | mail/mail-ops.c | 2 |
3 files changed, 10 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index bedc49a42d..1d5c1dab71 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,11 @@ +2001-01-16 Jeffrey Stedfast <fejj@ximian.com> + + * mail-callbacks.c (save_msg_ok): If the user hits "No", then + don't destroy the filesel window. + + * mail-ops.c (save_messages_save): Open with mode 0666 as danw + suggests. + 2001-01-16 Chris Toshok <toshok@helixcode.com> * component-factory.c (owner_set_cb): only load the news storage diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 9dada3f929..9c3ad0f121 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -832,9 +832,8 @@ save_msg_ok (GtkWidget *widget, gpointer user_data) uids = gtk_object_get_data (GTK_OBJECT (user_data), "uids"); gtk_object_remove_no_notify (GTK_OBJECT (user_data), "uids"); mail_save_messages (folder, uids, path, NULL, NULL); + gtk_widget_destroy (GTK_WIDGET (user_data)); } - - gtk_widget_destroy (GTK_WIDGET (user_data)); } static void diff --git a/mail/mail-ops.c b/mail/mail-ops.c index aed29afd45..26202e3cfd 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -1898,7 +1898,7 @@ static void save_messages_save(struct _mail_msg *mm) int fd, i; char *from; - fd = open(m->path, O_WRONLY | O_CREAT | O_TRUNC); + fd = open(m->path, O_WRONLY | O_CREAT | O_TRUNC, 0666); if (fd == -1) { camel_exception_setv(&mm->ex, CAMEL_EXCEPTION_SYSTEM, _("Unable to create output file: %s\n %s"), m->path, strerror(errno)); |