X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-count-stream.c;h=fe0270d74038bcb85bccd7023b0d994e6c8fc205;hp=4ad128797cdf43427279207e1dbcb18fe6f13d42;hb=12a672c559d983c4e49a7e4054ee14c0177ecb1c;hpb=94dd9606eadbd7df971e7abc458bbbd903cdc772 diff --git a/src/modest-count-stream.c b/src/modest-count-stream.c index 4ad1287..fe0270d 100644 --- a/src/modest-count-stream.c +++ b/src/modest-count-stream.c @@ -147,8 +147,10 @@ modest_count_stream_instance_init (GTypeInstance *instance, gpointer g_class) } static void -tny_stream_init (TnyStreamIface *klass) +tny_stream_init (gpointer g_iface, gpointer iface_data) { + TnyStreamIface *klass = (TnyStreamIface *) g_iface; + klass->read = modest_count_stream_read; klass->write = modest_count_stream_write; klass->flush = modest_count_stream_flush; @@ -198,10 +200,9 @@ modest_count_stream_get_type (void) }; type = g_type_register_static (G_TYPE_OBJECT, - "ModestCountStream", - &info, 0); + "ModestCountStream", + &info, 0); - /* TODO? : FIX THIS (ADD _TYPE): */ g_type_add_interface_static (type, TNY_TYPE_STREAM, &tny_stream_info);