aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-10-11 04:42:02 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-10-11 04:42:02 +0000
commit96e5f57c398a732db0afa0ca29f5cef6374b38db (patch)
tree8821ad4fb5d1c903a10bf950d73863ac7c2a2dbe
parent37b89e23a4b9cacd46acaea33e33210efe97a2c0 (diff)
disable /Message/Re-edit menu of message view window in non-sent folders.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1921 ee746299-78ed-0310-b773-934348b2243d
-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;
}