From 673fb08aefd220a96c3200c2fd2e1e97e5a642c5 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 15 Mar 2001 02:48:35 +0000 Subject: Tell camel to init NSS. (mail_session_accept_dialog): Doh! NULL terminate 2001-03-14 Jeffrey Stedfast * session.c (mail_session_init): Tell camel to init NSS. (mail_session_accept_dialog): Doh! NULL terminate the list of buttons and show the label. * mail-mt.c (do_get_accept): Same. svn path=/trunk/; revision=8721 --- mail/ChangeLog | 2 +- mail/mail-mt.c | 2 ++ mail/session.c | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 08272a7218..ff70f8dfa9 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -2,7 +2,7 @@ * session.c (mail_session_init): Tell camel to init NSS. (mail_session_accept_dialog): Doh! NULL terminate the list of - buttons. + buttons and show the label. * mail-mt.c (do_get_accept): Same. diff --git a/mail/mail-mt.c b/mail/mail-mt.c index 4a074b9a1f..d450d4d1b1 100644 --- a/mail/mail-mt.c +++ b/mail/mail-mt.c @@ -668,12 +668,14 @@ do_get_accept (struct _mail_msg *mm) GNOME_STOCK_BUTTON_NO, NULL); gnome_dialog_set_default (GNOME_DIALOG (dialog), 1); + gtk_window_set_policy (GTK_WINDOW (dialog), TRUE, TRUE, TRUE); label = gtk_label_new (m->prompt); gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox), label, TRUE, TRUE, 0); + gtk_widget_show (label); /* hrm, we can't run this async since the gui_port from which we're called will reply to our message for us */ diff --git a/mail/session.c b/mail/session.c index f9bcee3667..e5084fb7ee 100644 --- a/mail/session.c +++ b/mail/session.c @@ -93,12 +93,14 @@ mail_session_accept_dialog (const char *prompt, const char *key, gboolean async) GNOME_STOCK_BUTTON_NO, NULL); gnome_dialog_set_default (GNOME_DIALOG (dialog), 1); + gtk_window_set_policy (GTK_WINDOW (dialog), TRUE, TRUE, TRUE); label = gtk_label_new (prompt); gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox), label, TRUE, TRUE, 0); + gtk_widget_show (label); if (gnome_dialog_run_and_close (GNOME_DIALOG (dialog)) == 0) return TRUE; -- cgit