root/trunk/src/tmut-msg-view.h

Revision 73 (checked in by pvanhoof, 10 months ago)

2008-01-28 Philip Van Hoof <pvanhoof@gnome.org>

        • Adapted TMut to the latest Tinymail API changes in trunk.
Line 
1 #ifndef TMUT_MSG_VIEW_H
2 #define TMUT_MSG_VIEW_H
3
4 /* TMut
5  * Copyright (C) 2006-2007 Philip Van Hoof <pvanhoof@gnome.org>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with self library; if not, write to the
19  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  */
22
23 #include <gtk/gtk.h>
24 #include <glib-object.h>
25 #include <tny-shared.h>
26
27 #include <tny-gtk-msg-view.h>
28
29 G_BEGIN_DECLS
30
31 #define TMUT_TYPE_MSG_VIEW             (tmut_msg_view_get_type ())
32 #define TMUT_MSG_VIEW(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), TMUT_TYPE_MSG_VIEW, TMutMsgView))
33 #define TMUT_MSG_VIEW_CLASS(vtable)    (G_TYPE_CHECK_CLASS_CAST ((vtable), TMUT_TYPE_MSG_VIEW, TMutMsgViewClass))
34 #define TMUT_IS_MSG_VIEW(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TMUT_TYPE_MSG_VIEW))
35 #define TMUT_IS_MSG_VIEW_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), TMUT_TYPE_MSG_VIEW))
36 #define TMUT_MSG_VIEW_GET_CLASS(inst)  (G_TYPE_INSTANCE_GET_CLASS ((inst), TMUT_TYPE_MSG_VIEW, TMutMsgViewClass))
37
38 typedef struct _TMutMsgView TMutMsgView;
39 typedef struct _TMutMsgViewClass TMutMsgViewClass;
40
41 struct _TMutMsgView
42 {
43         GtkVBox parent;
44 };
45
46 struct _TMutMsgViewClass
47 {
48         GtkVBoxClass parent_class;
49
50         /* virtuals */
51
52         /* Override this one if you want to provide your own menu items for
53          * reply and forward. The construction of this type will call this. Note
54          * that @self here is a GtkVBox and that you can add your widgets to it. */
55
56         void (*create_menu) (TMutMsgView *self);
57 };
58
59 GType tmut_msg_view_get_type (void);
60 TnyMsgView* tmut_msg_view_new (TnyAccountStore *account_store);
61
62 void tmut_msg_view_set_view (TMutMsgView *self, TnyMsgView *view);
63
64 /* Preimplemented handlers for your action performers */
65 void tmut_msg_view_on_reply_activated (GObject *sender, TMutMsgView *self);
66 void tmut_msg_view_on_forward_activated (GObject *sender, TMutMsgView *self);
67
68 G_END_DECLS
69
70 #endif
Note: See TracBrowser for help on using the browser.