#include "xml.h"
#include "mgutils.h"
#include "prefs.h"
+#include "folder.h"
#include "codeconv.h"
#include "stock_pixmap.h"
#include "mainwindow.h"
#include "prefs_actions.h"
#include "manage_window.h"
#include "gtkutils.h"
-
#include "toolbar.h"
#include "prefs_toolbar.h"
gint icon;
gchar *text;
} default_toolbar[] = {
- { A_COMPOSE_EMAIL, STOCK_PIXMAP_MAIL_COMPOSE, _("Email") },
- { A_SEPARATOR, 0, ("") },
+ /*{ A_COMPOSE_EMAIL, STOCK_PIXMAP_MAIL_COMPOSE, _("Email") },
+ { A_SEPARATOR, 0, ("") },*/
{ A_REPLY_MESSAGE, STOCK_PIXMAP_MAIL_REPLY, _("Reply") },
{ A_REPLY_ALL, STOCK_PIXMAP_MAIL_REPLY_TO_ALL, _("All") },
{ A_REPLY_SENDER, STOCK_PIXMAP_MAIL_REPLY_TO_AUTHOR, _("Sender") },
g_warning ("Error: did not find Sylpheed Action to execute");
}
-static ToolbarType detect_window(gpointer data)
-{
- g_return_val_if_fail(data != NULL, -1);
-
- return ((ToolbarParent*)data)->type;
-}
-
/*
* Change the style of toolbar
*/
ToolbarParent *parent = (ToolbarParent*)data;
MainWindow *mainwin;
MessageView *msgview;
+ GList *cur;
+ GtkCTreeNode *sel_last = NULL;
+ GtkCTreeNode *node;
+ MsgInfo *msginfo;
+ SummaryView *summaryview;
g_return_if_fail(parent != NULL);
switch (parent->type) {
case TOOLBAR_MSGVIEW:
msgview = (MessageView*)parent->data;
- folder_item_remove_msg(msgview->msginfo->folder,
- msgview->msginfo->msgnum);
-/** TODO: The summaryview must be updated.... **/
+ summaryview = msgview->mainwin->summaryview;
+ summary_delete(summaryview);
+ /* do we really want to close the widget ?
+ I`d rather have it staying open and moving to next msg
+ in summaryview ... - oha
+ */
+ toolbar_clear_list(TOOLBAR_MSGVIEW);
+ TOOLBAR_DESTROY_ITEMS(msgview->toolbar->item_list);
+ TOOLBAR_DESTROY_ACTIONS(msgview->toolbar->action_list);
gtk_widget_destroy(msgview->window);
break;
case TOOLBAR_MAIN: