2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2002 Hiroyuki Yamamoto
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef __CUSTOM_TOOLBAR_H__
21 #define __CUSTOM_TOOLBAR_H__
23 #define SEPARATOR "separator"
24 #define TOOLBAR_FILE "toolbar.xml"
26 #define SEPARATOR_PIXMAP "---"
46 #define A_COMPOSE_NEWS N_ACTION_VAL + 1
47 #define A_SEPARATOR N_ACTION_VAL + 2
49 typedef struct _ToolbarAction ToolbarAction;
54 void (*func)(GtkWidget *widget, gpointer data);
57 typedef struct _ToolbarItem ToolbarItem;
65 typedef struct _ToolbarSylpheedActions ToolbarSylpheedActions;
66 struct _ToolbarSylpheedActions
78 typedef struct _MainToolbar MainToolbar;
85 GtkWidget *getall_btn;
87 GtkWidget *sel_down_all;
88 GtkWidget *sel_down_cur;
91 GtkWidget *compose_mail_btn;
92 GtkWidget *compose_news_btn;
95 GtkWidget *replysender_btn;
96 GtkWidget *replyall_btn;
100 GtkWidget *delete_btn;
105 GtkWidget *separator;
107 /* for the reply buttons */
108 GtkWidget *reply_popup;
109 GtkWidget *replyall_popup;
110 GtkWidget *replysender_popup;
112 /* the forward button similar to the reply buttons*/
113 GtkWidget *fwd_popup;
115 ComposeButtonType compose_btn_type;
118 extern GSList *toolbar_list;
120 void toolbar_actions_cb (GtkWidget *widget,
121 ToolbarItem *toolbar_item);
123 GList *toolbar_get_action_items (void);
124 void toolbar_save_config_file (void);
125 void toolbar_read_config_file (void);
126 void toolbar_set_default_toolbar (void);
127 void toolbar_clear_list (void);
128 void toolbar_update (void);
129 void toolbar_destroy (MainWindow *mainwin);
131 gint toolbar_ret_val_from_descr (gchar *descr);
132 gchar *toolbar_ret_descr_from_val (gint val);
133 gchar *toolbar_ret_text_from_val (gint val);
134 void toolbar_create (MainWindow *mainwin,
135 GtkWidget *container);
137 void toolbar_set_sensitive (MainWindow *mainwin);
138 void toolbar_set_compose_button (MainToolbar *toolbar,
139 ComposeButtonType compose_btn_type);
140 #endif /* __CUSTOM_TOOLBAR_H__ */