diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2008-09-26 07:36:00 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2008-09-26 07:36:00 +0000 |
commit | c5b3f5701e836a2283461065a79d17875fe454f1 (patch) | |
tree | ddae4610ca946f0e075dcaabdb5c402373d136a7 /src/send_message.c | |
parent | 2569f2416f350e29ff414671b74f2524fa883113 (diff) |
added progress column to the progress dialog.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2043 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/send_message.c')
-rw-r--r-- | src/send_message.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/send_message.c b/src/send_message.c index 42126812..db474602 100644 --- a/src/send_message.c +++ b/src/send_message.c @@ -1,6 +1,6 @@ /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2007 Hiroyuki Yamamoto + * Copyright (C) 1999-2008 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -717,7 +717,7 @@ static gint send_message_smtp(PrefsAccount *ac_prefs, GSList *to_list, FILE *fp) dialog->session = session; progress_dialog_append(dialog->dialog, NULL, ac_prefs->smtp_server, - _("Connecting"), NULL); + _("Connecting"), "", NULL); g_snprintf(buf, sizeof(buf), _("Connecting to SMTP server: %s ..."), ac_prefs->smtp_server); @@ -860,6 +860,9 @@ static gint send_send_data_progressive(Session *session, guint cur_len, progress_dialog_set_label(dialog->dialog, buf); progress_dialog_set_percentage (dialog->dialog, (gfloat)cur_len / (gfloat)total_len); + g_snprintf(buf, sizeof(buf), _("%d / %d bytes"), + cur_len, total_len); + progress_dialog_set_row_progress(dialog->dialog, 0, buf); #ifdef G_OS_WIN32 GTK_EVENTS_FLUSH(); #endif |