diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-10-11 04:42:02 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-10-11 04:42:02 +0000 |
commit | 96e5f57c398a732db0afa0ca29f5cef6374b38db (patch) | |
tree | 8821ad4fb5d1c903a10bf950d73863ac7c2a2dbe /src | |
parent | 37b89e23a4b9cacd46acaea33e33210efe97a2c0 (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
Diffstat (limited to 'src')
-rw-r--r-- | src/messageview.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; } |