X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-tny-platform-factory.c;h=84290ef4e85528cc0b44df3ca5541d8b13fe8978;hp=00eba53c1b4e4b26283166dbaf1319b9349c7df5;hb=7df38f78cb5481006cbd14cb24cc5abb8f0226f9;hpb=4a4e446d6461811d75e3f6b62f38bda2b9e4e975 diff --git a/src/modest-tny-platform-factory.c b/src/modest-tny-platform-factory.c index 00eba53..84290ef 100644 --- a/src/modest-tny-platform-factory.c +++ b/src/modest-tny-platform-factory.c @@ -66,12 +66,16 @@ enum { LAST_SIGNAL }; -typedef struct _ModestTnyPlatformFactoryPrivate ModestTnyPlatformFactoryPrivate; -struct _ModestTnyPlatformFactoryPrivate {}; +/* PRIVATE area commented as it's empty now. If you enable this again remember to enable also + * private area registration in class init */ + +/* typedef struct _ModestTnyPlatformFactoryPrivate ModestTnyPlatformFactoryPrivate; */ +/* struct _ModestTnyPlatformFactoryPrivate {}; */ + +/* #define MODEST_TNY_PLATFORM_FACTORY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \ */ +/* MODEST_TYPE_TNY_PLATFORM_FACTORY, \ */ +/* ModestTnyPlatformFactoryPrivate)) */ -#define MODEST_TNY_PLATFORM_FACTORY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \ - MODEST_TYPE_TNY_PLATFORM_FACTORY, \ - ModestTnyPlatformFactoryPrivate)) /* globals */ static GObjectClass *parent_class = NULL; static ModestTnyPlatformFactory *singleton = NULL; @@ -121,7 +125,7 @@ modest_tny_platform_factory_class_init (ModestTnyPlatformFactoryClass *klass) gobject_class->finalize = modest_tny_platform_factory_finalize; gobject_class->constructor = modest_tny_platform_factory_constructor; - g_type_class_add_private (gobject_class, sizeof(ModestTnyPlatformFactoryPrivate)); +/* g_type_class_add_private (gobject_class, sizeof(ModestTnyPlatformFactoryPrivate)); */ } static void @@ -160,11 +164,11 @@ tny_platform_factory_init (gpointer g, gpointer iface_data) { TnyPlatformFactoryIface *klass = (TnyPlatformFactoryIface *)g; - klass->new_account_store_func = modest_tny_platform_factory_new_account_store; - klass->new_device_func = modest_tny_platform_factory_new_device; - klass->new_msg_view_func = modest_tny_platform_factory_new_msg_view; - klass->new_msg_func = modest_tny_platform_factory_new_msg; - klass->new_mime_part_func = modest_tny_platform_factory_new_mime_part; + klass->new_account_store = modest_tny_platform_factory_new_account_store; + klass->new_device = modest_tny_platform_factory_new_device; + klass->new_msg_view = modest_tny_platform_factory_new_msg_view; + klass->new_msg = modest_tny_platform_factory_new_msg; + klass->new_mime_part = modest_tny_platform_factory_new_mime_part; return; }