Fix modest_tny_msg_header_get_all_recipients_list (in case from is empty)
[modest] / src / modest-count-stream.c
index f10314e..fe0270d 100644 (file)
@@ -147,15 +147,17 @@ 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)
 {
-        klass->read_func = modest_count_stream_read;
-        klass->write_func = modest_count_stream_write;
-        klass->flush_func = modest_count_stream_flush;
-        klass->close_func = modest_count_stream_close;
-        klass->is_eos_func = modest_count_stream_is_eos;
-        klass->reset_func = modest_count_stream_reset;
-        klass->write_to_stream_func = modest_count_stream_write_to_stream;
+       TnyStreamIface *klass = (TnyStreamIface *) g_iface;
+
+        klass->read = modest_count_stream_read;
+        klass->write = modest_count_stream_write;
+        klass->flush = modest_count_stream_flush;
+        klass->close = modest_count_stream_close;
+        klass->is_eos = modest_count_stream_is_eos;
+        klass->reset = modest_count_stream_reset;
+        klass->write_to_stream = modest_count_stream_write_to_stream;
 }
 
 static void
@@ -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);