aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.ja5
-rw-r--r--src/messageview.c8
3 files changed, 18 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 125581ae..ce19cafa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-11
+
+ * src/messageview.c: messageview_set_menu_state(): disable
+ /Message/Re-edit menu in non-sent folders.
+
2007-10-03
* version 2.4.7
diff --git a/ChangeLog.ja b/ChangeLog.ja
index 63e70bb4..4cd6c717 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,3 +1,8 @@
+2007-10-11
+
+ * src/messageview.c: messageview_set_menu_state(): 送信フォルダ以外で
+ 「メッセージ/再編集」メニューを無効にした。
+
2007-10-03
* version 2.4.7
diff --git a/src/messageview.c b/src/messageview.c
index dda0a00c..59e2bb3d 100644
--- a/src/messageview.c
+++ b/src/messageview.c
@@ -567,11 +567,19 @@ static void messageview_set_menu_state(MessageView *messageview)
GtkWidget *menuitem;
messageview->menu_locked = TRUE;
+
ifactory = gtk_item_factory_from_widget(messageview->menubar);
menuitem = gtk_item_factory_get_widget
(ifactory, "/View/All headers");
gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menuitem),
messageview->textview->show_all_headers);
+
+ if (messageview->msginfo &&
+ FOLDER_ITEM_IS_SENT_FOLDER(messageview->msginfo->folder))
+ menu_set_sensitive(ifactory, "/Message/Re-edit", TRUE);
+ else
+ menu_set_sensitive(ifactory, "/Message/Re-edit", FALSE);
+
messageview->menu_locked = FALSE;
}