root/trunk/src/tmut-tny-gtk-msg-view.c

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

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

        • Adapted TMut to the latest Tinymail API changes in trunk.
Line 
1 /* TMut
2  * Copyright (C) 2006-2007 Philip Van Hoof <pvanhoof@gnome.org>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with self library; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19
20 #if HAVE_CONFIG_H
21 #include "config.h"
22 #endif
23
24 #include <glib/gi18n-lib.h>
25
26 #include "tmut-tny-gtk-msg-view.h"
27 #include "tmut-header-view.h"
28
29 static GObjectClass *parent_class = NULL;
30
31 TnyMsgView*
32 tmut_tny_gtk_msg_view_new (void)
33 {
34         TMutTnyGtkMsgView *self = g_object_new (TMUT_TYPE_TNY_GTK_MSG_VIEW, NULL);
35
36         return TNY_MSG_VIEW (self);
37 }
38
39 static TnyHeaderView*
40 tmut_tny_gtk_msg_view_create_header_view (TnyGtkMsgView *self)
41 {
42         return tmut_header_view_new ();
43 }
44
45
46
47 static void
48 tmut_tny_gtk_msg_view_finalize (GObject *object)
49 {
50         (*parent_class->finalize) (object);
51
52         return;
53 }
54
55 static void
56 tmut_tny_gtk_msg_view_class_init (TMutTnyGtkMsgViewClass *class)
57 {
58         GObjectClass *object_class;
59
60         parent_class = g_type_class_peek_parent (class);
61         object_class = (GObjectClass*) class;
62
63         TNY_GTK_MSG_VIEW_CLASS (parent_class)->create_header_view= tmut_tny_gtk_msg_view_create_header_view;
64
65         object_class->finalize = tmut_tny_gtk_msg_view_finalize;
66
67         return;
68 }
69
70 static void
71 tmut_tny_gtk_msg_view_instance_init (GTypeInstance *instance, gpointer g_class)
72 {
73         return;
74 }
75
76 GType
77 tmut_tny_gtk_msg_view_get_type (void)
78 {
79         static GType type = 0;
80
81         if (G_UNLIKELY(type == 0))
82         {
83                 static const GTypeInfo info =
84                 {
85                   sizeof (TMutTnyGtkMsgViewClass),
86                   NULL,   /* base_init */
87                   NULL,   /* base_finalize */
88                   (GClassInitFunc) tmut_tny_gtk_msg_view_class_init,   /* class_init */
89                   NULL,   /* class_finalize */
90                   NULL,   /* class_data */
91                   sizeof (TMutTnyGtkMsgView),
92                   0,      /* n_preallocs */
93                   tmut_tny_gtk_msg_view_instance_init,    /* instance_init */
94                   NULL
95                 };
96
97                 type = g_type_register_static (TNY_TYPE_GTK_MSG_VIEW,
98                         "TMutTnyGtkMsgView",
99                         &info, 0);
100         }
101
102         return type;
103 }
Note: See TracBrowser for help on using the browser.