aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-12-01 06:44:00 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-12-01 06:44:00 +0800
commit8fa85c39e57e7a4a71fd8beaac0fec733c328ae1 (patch)
tree0652961f25c721e9b664c459f7547b5dca3809bf /mail/mail-ops.c
parentbe13fec34348b896b22543dd6f4693ec19d1ac02 (diff)
downloadgsoc2013-evolution-8fa85c39e57e7a4a71fd8beaac0fec733c328ae1.tar
gsoc2013-evolution-8fa85c39e57e7a4a71fd8beaac0fec733c328ae1.tar.gz
gsoc2013-evolution-8fa85c39e57e7a4a71fd8beaac0fec733c328ae1.tar.bz2
gsoc2013-evolution-8fa85c39e57e7a4a71fd8beaac0fec733c328ae1.tar.lz
gsoc2013-evolution-8fa85c39e57e7a4a71fd8beaac0fec733c328ae1.tar.xz
gsoc2013-evolution-8fa85c39e57e7a4a71fd8beaac0fec733c328ae1.tar.zst
gsoc2013-evolution-8fa85c39e57e7a4a71fd8beaac0fec733c328ae1.zip
Don't display a dialog, instead inform the user that there was no new mail
2000-11-30 Jeffrey Stedfast <fejj@helixcode.com> * mail-ops.c (cleanup_fetch_mail): Don't display a dialog, instead inform the user that there was no new mail by setting a status message. * message-list.c (message_list_drag_data_get): Use the new e_str_make_safe function. * mail-display.c (make_safe_filename): And here. * mail-config.c (mail_config_folder_to_cachename): Here too. svn path=/trunk/; revision=6745
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index ee269f91b9..9052eaed3b 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -326,17 +326,10 @@ cleanup_fetch_mail (gpointer in_data, gpointer op_data, CamelException *ex)
fetch_mail_input_t *input = (fetch_mail_input_t *) in_data;
fetch_mail_data_t *data = (fetch_mail_data_t *) op_data;
- if (data->empty && !camel_exception_is_set (ex)) {
- GtkWidget *dialog;
- gchar *str;
-
- str = g_strdup_printf (_("There is no new mail at %s."),
- input->source_url);
- dialog = gnome_ok_dialog (str);
- g_free (str);
- gnome_dialog_run_and_close (GNOME_DIALOG (dialog));
- }
-
+ if (data->empty && !camel_exception_is_set (ex))
+ mail_op_set_message (_("There is no new mail at %s."),
+ input->source_url);
+
if (data->update_infos) {
int i;