Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / camel-news-address.c
1 /*
2  *  Copyright (C) 2000 Ximian Inc.
3  *
4  *  Authors:
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of version 2 of the GNU Lesser General Public
8  * License as published by the Free Software Foundation.
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 GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this program; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20
21 #include "camel-news-address.h"
22
23
24 static void camel_news_address_class_init (CamelNewsAddressClass *klass);
25
26 static CamelAddressClass *camel_news_address_parent;
27
28 static void
29 camel_news_address_class_init (CamelNewsAddressClass *klass)
30 {
31         camel_news_address_parent = CAMEL_ADDRESS_CLASS (camel_type_get_global_classfuncs (camel_address_get_type ()));
32 }
33
34
35 CamelType
36 camel_news_address_get_type (void)
37 {
38         static guint type = CAMEL_INVALID_TYPE;
39         
40         if (type == CAMEL_INVALID_TYPE) {
41                 type = camel_type_register (camel_address_get_type (), "CamelNewsAddress",
42                                             sizeof (CamelNewsAddress),
43                                             sizeof (CamelNewsAddressClass),
44                                             (CamelObjectClassInitFunc) camel_news_address_class_init,
45                                             NULL,
46                                             NULL,
47                                             NULL);
48         }
49         
50         return type;
51 }
52
53 /**
54  * camel_news_address_new:
55  *
56  * Create a new CamelNewsAddress object.
57  * 
58  * Return value: A new CamelNewsAddress widget.
59  **/
60 CamelNewsAddress *
61 camel_news_address_new (void)
62 {
63         CamelNewsAddress *new = CAMEL_NEWS_ADDRESS ( camel_object_new (camel_news_address_get_type ()));
64         return new;
65 }