[balsa/69-resend-message: 11/17] sendmsg-window: Manage the "View" menu
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/69-resend-message: 11/17] sendmsg-window: Manage the "View" menu
- Date: Sun, 6 Mar 2022 16:42:51 +0000 (UTC)
commit 7d2fe0418d9852c3b59daefa07cf65cea344e537
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Wed Mar 2 15:38:30 2022 -0500
sendmsg-window: Manage the "View" menu
src/sendmsg-window.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/sendmsg-window.c b/src/sendmsg-window.c
index 063e5c1d7..23457ca0c 100644
--- a/src/sendmsg-window.c
+++ b/src/sendmsg-window.c
@@ -6101,6 +6101,9 @@ sw_entry_helper(GSimpleAction * action,
BalsaSendmsg * bsmsg,
GtkWidget * entry[])
{
+ if (entry[0] == NULL)
+ return;
+
if (g_variant_get_boolean(state)) {
gtk_widget_show_all(entry[0]);
gtk_widget_show_all(entry[1]);
@@ -6930,7 +6933,9 @@ sendmsg_window_new(SendType send_type)
gtk_paned_add1(GTK_PANED(paned), create_info_pane(bsmsg));
bsmsg->tree_view = NULL;
- if (send_type != SEND_RESEND) {
+ if (send_type == SEND_RESEND) {
+ init_menus(bsmsg);
+ } else {
/*
* Set up the spell-checker language menu
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]