/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2001-2007 Hiroyuki Yamamoto and the Claws Mail team
+ * Copyright (C) 2001-2011 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
typedef struct _Toolbar Toolbar;
typedef struct _ToolbarItem ToolbarItem;
-typedef struct _ToolbarSylpheedActions ToolbarSylpheedActions;
+typedef struct _ToolbarClawsActions ToolbarClawsActions;
typedef enum {
TOOLBAR_MAIN = 0,
GtkWidget *linewrap_current_btn;
GtkWidget *linewrap_all_btn;
GtkWidget *addrbook_btn;
-#ifdef USE_ASPELL
- GtkWidget *spellcheck_btn;
-#endif
GtkWidget *open_mail_btn;
GtkWidget *close_window_btn;
+ GtkWidget *preferences_btn;
+
GSList *action_list;
GSList *item_list;
+#ifdef USE_ENCHANT
+ GtkWidget *spellcheck_btn;
+#endif
+#if !GTK_CHECK_VERSION(2,12,0)
GtkTooltips *tooltips;
+#endif
};
struct _ToolbarItem {
#define TOOLBAR_DESTROY_ACTIONS(action_list) \
{ \
- ToolbarSylpheedActions *action; \
+ ToolbarClawsActions *action; \
while (action_list != NULL) { \
- action = (ToolbarSylpheedActions*)action_list->data;\
+ action = (ToolbarClawsActions*)action_list->data;\
action_list = \
g_slist_remove(action_list, action);\
if (action->name) \
A_PRINT,
A_LEARN_SPAM,
A_GO_FOLDERS,
+ A_PREFERENCES,
/* compose toolbar */
A_SEND,
A_LINEWRAP_CURRENT,
A_LINEWRAP_ALL,
A_ADDRBOOK,
-#ifdef USE_ASPELL
+#ifdef USE_ENCHANT
A_CHECK_SPELLING,
#endif
/* common items */
- A_SYL_ACTIONS,
+ A_CLAWS_ACTIONS,
A_CANCEL_INC,
A_CLOSE,
A_SEPARATOR,
+ A_CLAWS_PLUGINS,
+
N_ACTION_VAL
};
-struct _ToolbarSylpheedActions {
+struct _ToolbarClawsActions {
GtkWidget *widget;
gchar *name;
};
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__ */