]> git.cworth.org Git - obsolete/notmuch-old/blob - notmuch-gmime-session.c
emacs: fix notmuch-show-part-button to not include newline
[obsolete/notmuch-old] / notmuch-gmime-session.c
1 #include "notmuch-client.h"
2
3 /* CRUFTY BOILERPLATE for GMimeSession (dkg thinks this will go away once GMime 2.6 comes out) */
4 typedef struct _NotmuchGmimeSession NotmuchGmimeSession;
5 typedef struct _NotmuchGmimeSessionClass NotmuchGmimeSessionClass;
6
7 struct _NotmuchGmimeSession {
8     GMimeSession parent_object;
9 };
10
11 struct _NotmuchGmimeSessionClass {
12     GMimeSessionClass parent_class;
13 };
14
15 static void notmuch_gmime_session_class_init (NotmuchGmimeSessionClass *klass);
16
17 static GMimeSessionClass *parent_class = NULL;
18
19 GType
20 notmuch_gmime_session_get_type (void)
21 {
22     static GType type = 0;
23
24     if (!type) {
25         static const GTypeInfo info = {
26             sizeof (NotmuchGmimeSessionClass),
27             NULL, /* base_class_init */
28             NULL, /* base_class_finalize */
29             (GClassInitFunc) notmuch_gmime_session_class_init,
30             NULL, /* class_finalize */
31             NULL, /* class_data */
32             sizeof (NotmuchGmimeSession),
33             0,    /* n_preallocs */
34             NULL, /* object_init */
35             NULL, /* value_table */
36         };
37         type = g_type_register_static (GMIME_TYPE_SESSION, "NotmuchGmimeSession", &info, 0);
38     }
39     return type;
40 }
41
42 static void
43 notmuch_gmime_session_class_init (NotmuchGmimeSessionClass *klass)
44 {
45     GMimeSessionClass *session_class = GMIME_SESSION_CLASS (klass);
46     parent_class = g_type_class_ref (GMIME_TYPE_SESSION);
47     session_class->request_passwd = NULL;
48 }
49 /* END CRUFTY BOILERPLATE */