summaryrefslogtreecommitdiff
path: root/src/action.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/action.h')
-rw-r--r--src/action.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/action.h b/src/action.h
new file mode 100644
index 0000000..373073d
--- /dev/null
+++ b/src/action.h
@@ -0,0 +1,56 @@
1/*
2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2003 Hiroyuki Yamamoto & The Sylpheed Claws Team
4 *
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.
9 *
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.
14 *
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.
18 */
19
20#ifndef __ACTION_H__
21#define __ACTION_H__
22
23#include <glib.h>
24#include <gtk/gtkitemfactory.h>
25
26#include "mainwindow.h"
27#include "messageview.h"
28#include "compose.h"
29
30typedef enum
31{
32 ACTION_NONE = 1 << 0,
33 ACTION_PIPE_IN = 1 << 1,
34 ACTION_PIPE_OUT = 1 << 2,
35 ACTION_SINGLE = 1 << 3,
36 ACTION_MULTIPLE = 1 << 4,
37 ACTION_ASYNC = 1 << 5,
38 ACTION_USER_IN = 1 << 6,
39 ACTION_USER_HIDDEN_IN = 1 << 7,
40 ACTION_INSERT = 1 << 8,
41 ACTION_USER_STR = 1 << 9,
42 ACTION_USER_HIDDEN_STR = 1 << 10,
43 ACTION_SELECTION_STR = 1 << 11,
44 ACTION_ERROR = 1 << 30
45} ActionType;
46
47ActionType action_get_type (const gchar *action_str);
48
49void action_update_mainwin_menu (GtkItemFactory *ifactory,
50 MainWindow *mainwin);
51void action_update_msgview_menu (GtkItemFactory *ifactory,
52 MessageView *msgview);
53void action_update_compose_menu (GtkItemFactory *ifactory,
54 Compose *compose);
55
56#endif /* __ACTION_H__ */