added scrolled window for list in progressdialog
authorChristoph Hohmann <reboot@gmx.ch>
Wed, 20 Jun 2001 20:06:04 +0000 (20:06 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Wed, 20 Jun 2001 20:06:04 +0000 (20:06 +0000)
ChangeLog.claws
src/inc.c
src/progressdialog.c

index e200794..a5a6d80 100644 (file)
@@ -1,3 +1,9 @@
+2001-06-20 [reboot]
+
+       * src/inc.c
+       * src/progressdialog.c
+               added scrolled window for list in progressdialog
+
 2001-06-20 [paul]
 
         sync with sylpheed 0.5.0pre1 release
index 8fe679c..4565611 100644 (file)
--- a/src/inc.c
+++ b/src/inc.c
@@ -374,6 +374,8 @@ static void inc_start(IncProgressDialog *inc_dialog)
 
                inc_progress_dialog_clear(inc_dialog);
 
+               gtk_clist_moveto(clist, num, 0, 1.0, 0.0);
+
                pop3_state->user = g_strdup(pop3_state->ac_prefs->userid);
                if (pop3_state->ac_prefs->passwd)
                        pop3_state->pass =
index b5cade7..8a749ee 100644 (file)
@@ -22,6 +22,7 @@
 #endif
 
 #include <glib.h>
+#include <gtk/gtk.h>
 #include <gtk/gtkwindow.h>
 #include <gtk/gtkvbox.h>
 #include <gtk/gtkhbox.h>
@@ -44,6 +45,7 @@ ProgressDialog *progress_dialog_create(void)
        GtkWidget *cancel_btn;
        GtkWidget *cancel_area;
        GtkWidget *progressbar;
+       GtkWidget *scrolledwin;
        GtkWidget *clist;
        gchar *text[] = {NULL, NULL, NULL};
 
@@ -82,9 +84,16 @@ ProgressDialog *progress_dialog_create(void)
        gtk_box_pack_start(GTK_BOX(vbox), progressbar, FALSE, FALSE, 0);
        gtk_widget_show(progressbar);
 
+       scrolledwin = gtk_scrolled_window_new (NULL, NULL);
+       gtk_widget_show (scrolledwin);
+       gtk_box_pack_start (GTK_BOX (vbox), scrolledwin, TRUE, TRUE, 0);
+       gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwin),
+                                       GTK_POLICY_AUTOMATIC,
+                                       GTK_POLICY_AUTOMATIC);
+
        clist = gtk_clist_new_with_titles(3, text);
        gtk_widget_show(clist);
-       gtk_box_pack_start(GTK_BOX(vbox), clist, TRUE, TRUE, 0);
+       gtk_container_add(GTK_CONTAINER(scrolledwin), clist);
        gtk_widget_set_usize(clist, -1, 120);
        gtk_clist_set_column_justification(GTK_CLIST(clist), 0,
                                           GTK_JUSTIFY_CENTER);