+2007-08-24 [colin] 2.10.0cvs166
+
+ * src/send_message.c
+ Use progress bar when sending messages
+
2007-08-24 [paul] 2.10.0cvs165
* Makefile.am
( cvs diff -u -r 1.1.2.18 -r 1.1.2.19 manual/plugins.xml; ) > 2.10.0cvs163.patchset
( cvs diff -u -r 1.100.2.51 -r 1.100.2.52 AUTHORS; cvs diff -u -r 1.24.2.21 -r 1.24.2.22 Makefile.am; cvs diff -u -r 1.8.2.38 -r 1.8.2.39 README; cvs diff -u -r 1.1.2.38 -r 1.1.2.39 src/gtk/authors.h; cvs diff -u -r 1.25.2.21 -r 1.25.2.22 tools/Makefile.am; cvs diff -u -r 1.30.2.23 -r 1.30.2.24 tools/README; diff -u /dev/null tools/mew2claws-mail.pl; ) > 2.10.0cvs164.patchset
( cvs diff -u -r 1.24.2.22 -r 1.24.2.23 Makefile.am; ) > 2.10.0cvs165.patchset
+( cvs diff -u -r 1.17.2.41 -r 1.17.2.42 src/send_message.c; ) > 2.10.0cvs166.patchset
{
gchar buf[BUFFSIZE];
SendProgressDialog *dialog = (SendProgressDialog *)data;
-
+ MainWindow *mainwin = mainwindow_get_mainwindow();
+
g_return_val_if_fail(dialog != NULL, -1);
if (SMTP_SESSION(session)->state != SMTP_SEND_DATA &&
progress_dialog_set_fraction
(dialog->dialog, (total_len == 0) ? 0 : (gfloat)cur_len / (gfloat)total_len);
+ if (mainwin)
+ gtk_progress_bar_set_fraction
+ (GTK_PROGRESS_BAR(mainwin->progressbar),
+ (total_len == 0) ? 0 : (gfloat)cur_len / (gfloat)total_len);
+
return 0;
}
static gint send_send_data_finished(Session *session, guint len, gpointer data)
{
SendProgressDialog *dialog = (SendProgressDialog *)data;
+ MainWindow *mainwin = mainwindow_get_mainwindow();
g_return_val_if_fail(dialog != NULL, -1);
send_send_data_progressive(session, len, len, dialog);
+ if (mainwin)
+ gtk_progress_bar_set_fraction
+ (GTK_PROGRESS_BAR(mainwin->progressbar),(gfloat)0);
+
return 0;
}