From f4d6507475e46a353a831c8161b58d3cef9adfb0 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 21 May 2002 21:56:45 +0000 Subject: Only clear the text/html signature menus if they are non-NULL. 2002-05-21 Jeffrey Stedfast * mail-account-gui.c (sig_fill_options): Only clear the text/html signature menus if they are non-NULL. svn path=/trunk/; revision=16973 --- mail/mail-account-gui.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mail') diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c index 490b7ea023..2e980e3d79 100644 --- a/mail/mail-account-gui.c +++ b/mail/mail-account-gui.c @@ -1209,9 +1209,13 @@ sig_fill_options (MailAccountGui *gui) if (menu_text) clear_menu (menu_text); + else + menu_text = gtk_menu_new (); if (menu_html) clear_menu (menu_html); + else + menu_html = gtk_menu_new (); gtk_menu_append (GTK_MENU (menu_text), gtk_menu_item_new_with_label (_("None"))); gtk_menu_append (GTK_MENU (menu_html), gtk_menu_item_new_with_label (_("None"))); -- cgit