sync with 0.4.65cvs11
[claws.git] / src / progressdialog.c
index eeab75b..b5cade7 100644 (file)
@@ -44,16 +44,21 @@ ProgressDialog *progress_dialog_create(void)
        GtkWidget *cancel_btn;
        GtkWidget *cancel_area;
        GtkWidget *progressbar;
+       GtkWidget *clist;
+       gchar *text[] = {NULL, NULL, NULL};
+
+       text[1] = _("Account");
+       text[2] = _("Status");
 
        debug_print(_("Creating progress dialog...\n"));
        progress = g_new0(ProgressDialog, 1);
 
        window = gtk_window_new(GTK_WINDOW_DIALOG);
-       gtk_widget_set_usize(window, 400, -1);
+       gtk_widget_set_usize(window, 450, -1);
        gtk_container_set_border_width(GTK_CONTAINER(window), 8);
        gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
        gtk_window_set_modal(GTK_WINDOW(window), TRUE);
-       gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, FALSE);
+       gtk_window_set_policy(GTK_WINDOW(window), FALSE, TRUE, TRUE);
 
        vbox = gtk_vbox_new(FALSE, 8);
        gtk_container_add(GTK_CONTAINER(window), vbox);
@@ -74,13 +79,23 @@ ProgressDialog *progress_dialog_create(void)
        gtk_widget_show_all(cancel_area);
 
        progressbar = gtk_progress_bar_new();
-       gtk_box_pack_end(GTK_BOX(vbox), progressbar, FALSE, FALSE, 0);
+       gtk_box_pack_start(GTK_BOX(vbox), progressbar, FALSE, FALSE, 0);
        gtk_widget_show(progressbar);
 
+       clist = gtk_clist_new_with_titles(3, text);
+       gtk_widget_show(clist);
+       gtk_box_pack_start(GTK_BOX(vbox), clist, TRUE, TRUE, 0);
+       gtk_widget_set_usize(clist, -1, 120);
+       gtk_clist_set_column_justification(GTK_CLIST(clist), 0,
+                                          GTK_JUSTIFY_CENTER);
+       gtk_clist_set_column_width(GTK_CLIST(clist), 0, 16);
+       gtk_clist_set_column_width(GTK_CLIST(clist), 1, 180);
+
        progress->window      = window;
        progress->label       = label;
        progress->cancel_btn  = cancel_btn;
        progress->progressbar = progressbar;
+       progress->clist       = clist;
 
        return progress;
 }