Modified webpage: now tinymail repository is in gitorious.
[modest] / src / widgets / modest-account-settings-dialog.c
1 /* modest-account-settings-dialog-iface.c */
2 /* insert (c)/licensing information) */
3
4 #include "modest-account-settings-dialog.h"
5
6 static void modest_account_settings_dialog_base_init (gpointer g_class);
7
8 void
9 modest_account_settings_dialog_load_settings (ModestAccountSettingsDialog *self,
10                                             ModestAccountSettings *settings)
11 {
12         g_return_if_fail (MODEST_IS_ACCOUNT_SETTINGS_DIALOG (self));
13         g_return_if_fail (MODEST_IS_ACCOUNT_SETTINGS (settings));
14
15         return MODEST_ACCOUNT_SETTINGS_DIALOG_GET_IFACE(self)->load_settings (self, settings);
16 }
17
18 static void
19 modest_account_settings_dialog_base_init (gpointer g_class)
20 {
21         static gboolean initialized = FALSE;
22         if (!initialized) {
23         /* create interface signals here */
24                 initialized = TRUE;
25         }
26 }
27 GType
28 modest_account_settings_dialog_get_type (void)
29 {
30         static GType my_type = 0;
31         if (!my_type) {
32                 static const GTypeInfo my_info = {
33                         sizeof(ModestAccountSettingsDialogClass),
34                         modest_account_settings_dialog_base_init,               /* base init */
35                         NULL,           /* base finalize */
36                         NULL,           /* class_init */
37                         NULL,           /* class finalize */
38                         NULL,           /* class data */
39                         0,
40                         0,              /* n_preallocs */
41                         NULL,           /* instance init */
42                 };
43                 my_type = g_type_register_static (G_TYPE_INTERFACE,
44                                                   "ModestAccountSettingsDialog",
45                                                   &my_info, 0);
46                 g_type_interface_add_prerequisite (my_type, G_TYPE_OBJECT);
47         }
48         return my_type;
49 }
50