Tell camel to init NSS. (mail_session_accept_dialog): Doh! NULL terminate

2001-03-14  Jeffrey Stedfast  <fejj@ximian.com>

	* 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
This commit is contained in:
Jeffrey Stedfast
2001-03-15 02:48:35 +00:00
committed by Jeffrey Stedfast
parent c0686e978d
commit 673fb08aef
3 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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 */

View File

@ -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;