[Xfce4-commits] <postler:master> Change memory_stream_from_data to use a string

Christian Dywan noreply at xfce.org
Sat Jul 9 14:28:01 CEST 2011


Updating branch refs/heads/master
         to e889c75446e557ec0f20f8d439bd83f640baf311 (commit)
       from d8c96225879852f0e368eecde435520f5e9b6d7b (commit)

commit e889c75446e557ec0f20f8d439bd83f640baf311
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Jul 9 14:25:35 2011 +0200

    Change memory_stream_from_data to use a string
    
    The .data member is broken in Vala 0.10.

 postler/postler-bureau.vala |    2 +-
 postler/postler.vapi        |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/postler/postler-bureau.vala b/postler/postler-bureau.vala
index 1837d9b..1d60304 100644
--- a/postler/postler-bureau.vala
+++ b/postler/postler-bureau.vala
@@ -926,7 +926,7 @@ public class Postler.Bureau : Gtk.Window {
                   + "> Lorem ipsum dolor sit amet\n"
                   + "Δεν υπάρχει κανείς που να αγαπάει τον ίδιο τον πόνο").printf (date);
                     var message = new Message.from_stream (new GLib.DataInputStream (
-                        memory_input_stream_from_data (body.data, null)));
+                        memory_input_stream_from_data (body, -1, null)));
                     viewer.show ();
                     content.display (message);
                 }
diff --git a/postler/postler.vapi b/postler/postler.vapi
index 8ea5eff..b8ab8b5 100644
--- a/postler/postler.vapi
+++ b/postler/postler.vapi
@@ -18,7 +18,7 @@ namespace GLib {
     }
     [CCode (cname = "g_memory_input_stream_new_from_data", cheader_filename = "gio/gio.h")]
     public static GLib.MemoryInputStream memory_input_stream_from_data (
-        [CCode (array_length_type = "gsize")] owned uint8[] data, GLib.DestroyNotify? destroy);
+        string data, ssize_t len, GLib.DestroyNotify? destroy);
 
 [CCode (cprefix = "Gdk", lower_case_cprefix = "gdk_")]
 namespace Gdk {



More information about the Xfce4-commits mailing list