From 6ae8bfaa4413fdabd61ad2be6ba9e3b57205be72 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 2 Jun 2000 04:19:40 +0000 Subject: source editor now fills in fields svn path=/trunk/; revision=3372 --- mail/ChangeLog | 1 + mail/mail-config.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) 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 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); } -- cgit