Fix possibly broken toolbar_compose.xml by migrating A_SENDL actions names
[claws.git] / src / toolbar.h
index a3ffa0d250541935c1b1ce67831c6776d9988f8e..4b84bb6e3f94d66de301aec63245a4408cd4fb0e 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2001-2007 Hiroyuki Yamamoto and the Claws Mail team
+ * Copyright (C) 2001-2012 Hiroyuki Yamamoto and the Claws Mail team
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -34,6 +34,8 @@ typedef enum {
        TOOLBAR_MSGVIEW
 } ToolbarType;
 
+#define NUM_TOOLBARS   3
+
 typedef enum 
 {
        COMPOSEBUTTON_MAIL,
@@ -77,6 +79,8 @@ struct _Toolbar {
        GtkWidget *learn_ham_icon;
        
        GtkWidget *cancel_inc_btn;
+       GtkWidget *cancel_send_btn;
+       GtkWidget *cancel_all_btn;
        
        ComposeButtonType compose_btn_type;
        LearnButtonType learn_btn_type;
@@ -87,6 +91,7 @@ struct _Toolbar {
        GtkWidget *insert_btn;
        GtkWidget *attach_btn;
        GtkWidget *sig_btn;
+       GtkWidget *repsig_btn;
        GtkWidget *exteditor_btn;
        GtkWidget *linewrap_current_btn;
        GtkWidget *linewrap_all_btn;
@@ -103,9 +108,6 @@ struct _Toolbar {
 #ifdef USE_ENCHANT
        GtkWidget *spellcheck_btn;
 #endif
-#if !GTK_CHECK_VERSION(2,12,0)
-       GtkTooltips *tooltips;
-#endif
 };
 
 struct _ToolbarItem {
@@ -148,8 +150,8 @@ struct _ToolbarItem {
 
 
 
-/* enum holds available actions for both 
-   Compose Toolbar and Main Toolbar 
+/* enum holds available actions for both
+   Compose Toolbar and Main Toolbar
 */
 enum {
        /* main toolbar */
@@ -169,8 +171,18 @@ enum {
        A_EXECUTE,
        A_GOTO_PREV,
        A_GOTO_NEXT,
+
        A_IGNORE_THREAD,
        A_WATCH_THREAD,
+       A_MARK,
+       A_UNMARK,
+       A_LOCK,
+       A_UNLOCK,
+       A_ALL_READ,
+       A_ALL_UNREAD,
+       A_READ,
+       A_UNREAD,
+
        A_PRINT,
        A_LEARN_SPAM,
        A_GO_FOLDERS,
@@ -178,11 +190,12 @@ enum {
 
        /* compose toolbar */
        A_SEND,
-       A_SENDL,
+       A_SEND_LATER,
        A_DRAFT,
        A_INSERT,
        A_ATTACH,
        A_SIG,
+       A_REP_SIG,
        A_EXTEDITOR,
        A_LINEWRAP_CURRENT,
        A_LINEWRAP_ALL,
@@ -194,10 +207,14 @@ enum {
        /* common items */
        A_CLAWS_ACTIONS,
        A_CANCEL_INC,
+       A_CANCEL_SEND,
+       A_CANCEL_ALL,
        A_CLOSE,
 
        A_SEPARATOR,
 
+       A_CLAWS_PLUGINS,
+
        N_ACTION_VAL
 };
 
@@ -262,4 +279,5 @@ void toolbar_set_learn_button               (Toolbar        *toolbar,
                                         LearnButtonType  learn_btn_type);
 const gchar *toolbar_get_short_text    (int action);
 int         toolbar_get_icon           (int action);
+gboolean toolbar_check_action_btns     (ToolbarType    type);
 #endif /* __CUSTOM_TOOLBAR_H__ */