From 7931ec60671f8c66c9bcca030fb510180975765e Mon Sep 17 00:00:00 2001 From: hiro Date: Wed, 8 Jun 2005 09:36:09 +0000 Subject: reimplemented progress dialog with GtkTreeView. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@321 ee746299-78ed-0310-b773-934348b2243d --- src/send_message.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/send_message.c') diff --git a/src/send_message.c b/src/send_message.c index a719a1ee..81940763 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-2003 Hiroyuki Yamamoto + * Copyright (C) 1999-2005 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 @@ -28,7 +28,6 @@ #include #include #include -#include #include #include @@ -363,8 +362,6 @@ static gint send_message_smtp(PrefsAccount *ac_prefs, GSList *to_list, FILE *fp) SMTPSession *smtp_session; gushort port; SendProgressDialog *dialog; - GtkCList *clist; - const gchar *text[3]; gchar buf[BUFFSIZE]; gint ret = 0; @@ -443,11 +440,8 @@ static gint send_message_smtp(PrefsAccount *ac_prefs, GSList *to_list, FILE *fp) dialog = send_progress_dialog_create(); dialog->session = session; - text[0] = NULL; - text[1] = ac_prefs->smtp_server; - text[2] = _("Connecting"); - clist = GTK_CLIST(dialog->dialog->clist); - gtk_clist_append(clist, (gchar **)text); + progress_dialog_append(dialog->dialog, NULL, ac_prefs->smtp_server, + _("Connecting"), NULL); g_snprintf(buf, sizeof(buf), _("Connecting to SMTP server: %s ..."), ac_prefs->smtp_server); @@ -554,7 +548,7 @@ static gint send_recv_message(Session *session, const gchar *msg, gpointer data) } progress_dialog_set_label(dialog->dialog, buf); - gtk_clist_set_text(GTK_CLIST(dialog->dialog->clist), 0, 2, state_str); + progress_dialog_set_row_status(dialog->dialog, 0, state_str); return 0; } -- cgit v1.2.3