Revision 321 src/send_message.c
| send_message.c (revision 321) | ||
|---|---|---|
| 1 | 1 |
/* |
| 2 | 2 |
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client |
| 3 |
* Copyright (C) 1999-2003 Hiroyuki Yamamoto
|
|
| 3 |
* Copyright (C) 1999-2005 Hiroyuki Yamamoto
|
|
| 4 | 4 |
* |
| 5 | 5 |
* This program is free software; you can redistribute it and/or modify |
| 6 | 6 |
* it under the terms of the GNU General Public License as published by |
| ... | ... | |
| 28 | 28 |
#include <gtk/gtkmain.h> |
| 29 | 29 |
#include <gtk/gtksignal.h> |
| 30 | 30 |
#include <gtk/gtkwindow.h> |
| 31 |
#include <gtk/gtkclist.h> |
|
| 32 | 31 |
#include <stdio.h> |
| 33 | 32 |
#include <string.h> |
| 34 | 33 |
|
| ... | ... | |
| 363 | 362 |
SMTPSession *smtp_session; |
| 364 | 363 |
gushort port; |
| 365 | 364 |
SendProgressDialog *dialog; |
| 366 |
GtkCList *clist; |
|
| 367 |
const gchar *text[3]; |
|
| 368 | 365 |
gchar buf[BUFFSIZE]; |
| 369 | 366 |
gint ret = 0; |
| 370 | 367 |
|
| ... | ... | |
| 443 | 440 |
dialog = send_progress_dialog_create(); |
| 444 | 441 |
dialog->session = session; |
| 445 | 442 |
|
| 446 |
text[0] = NULL; |
|
| 447 |
text[1] = ac_prefs->smtp_server; |
|
| 448 |
text[2] = _("Connecting");
|
|
| 449 |
clist = GTK_CLIST(dialog->dialog->clist); |
|
| 450 |
gtk_clist_append(clist, (gchar **)text); |
|
| 443 |
progress_dialog_append(dialog->dialog, NULL, ac_prefs->smtp_server, |
|
| 444 |
_("Connecting"), NULL);
|
|
| 451 | 445 |
|
| 452 | 446 |
g_snprintf(buf, sizeof(buf), _("Connecting to SMTP server: %s ..."),
|
| 453 | 447 |
ac_prefs->smtp_server); |
| ... | ... | |
| 554 | 548 |
} |
| 555 | 549 |
|
| 556 | 550 |
progress_dialog_set_label(dialog->dialog, buf); |
| 557 |
gtk_clist_set_text(GTK_CLIST(dialog->dialog->clist), 0, 2, state_str);
|
|
| 551 |
progress_dialog_set_row_status(dialog->dialog, 0, state_str);
|
|
| 558 | 552 |
|
| 559 | 553 |
return 0; |
| 560 | 554 |
} |
Also available in: Unified diff