diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 1 | ||||
-rw-r--r-- | mail/mail-config.c | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index a3e026329d..cbfa708ec6 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -4,6 +4,7 @@ as this is a Sources clist we are dealing with and not an identity clist (on_cmdSourcesEdit_clicked): same (on_cmdSourcesDelete_clicked): again, same + (on_cmdSourcesEdit_clicked): Source editor now fills in data from the clist 2000-06-01 Dan Winship <danw@helixcode.com> diff --git a/mail/mail-config.c b/mail/mail-config.c index 68c17c7d6c..0749447d29 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -1595,6 +1595,10 @@ static void on_cmdSourcesEdit_clicked (GtkWidget *widget, gpointer user_data) { GtkWidget *dialog; + GtkWidget *vbox; + GtkWidget *interior_notebook; + GtkWidget *table; + int page; char *sourcep; if (source_row == -1) @@ -1607,6 +1611,14 @@ on_cmdSourcesEdit_clicked (GtkWidget *widget, gpointer user_data) /* now create the editing dialog */ dialog = create_source_config_dialog (TRUE, &sourcep, GTK_WIDGET (user_data)); + + /* Set the data in the transports page */ + vbox = gtk_object_get_data (GTK_OBJECT (dialog), "vbox"); + interior_notebook = gtk_object_get_data (GTK_OBJECT (vbox), "notebook"); + page = gtk_notebook_get_current_page (GTK_NOTEBOOK (interior_notebook)); + table = gtk_notebook_get_nth_page (GTK_NOTEBOOK (interior_notebook), page); + set_service_url (GTK_OBJECT (table), source); + gtk_widget_show (dialog); } |