[Xfce4-commits] <postler:master> Work around Soup.Date.to_timeval binding change

Christian Dywan noreply at xfce.org
Mon Aug 8 16:08:01 CEST 2011


Updating branch refs/heads/master
         to be2acb8aeedfa41838f4aab1a1d9310830981b16 (commit)
       from 1679719a2aba67458e4071500e90b98b257b63f3 (commit)

commit be2acb8aeedfa41838f4aab1a1d9310830981b16
Author: Christian Dywan <christian at twotoasts.de>
Date:   Mon Aug 8 16:06:22 2011 +0200

    Work around Soup.Date.to_timeval binding change
    
    Fixes: https://bugs.launchpad.net/bugs/809889

 postler/postler-content.vala |    2 +-
 postler/postler.vapi         |    5 +++++
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index 8578d09..d4f1cf7 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -439,7 +439,7 @@ public class Postler.Content : WebKit.WebView {
         TimeVal time = new TimeVal ();
         int offset = 0;
         if (parsed != null) {
-            parsed.to_timeval (time);
+            Soup.date_to_timeval (parsed, time);
             offset = parsed.offset;
         }
         return new DateTime.from_timeval_local (time).add_minutes (offset);
diff --git a/postler/postler.vapi b/postler/postler.vapi
index b8ab8b5..e3f3b5f 100644
--- a/postler/postler.vapi
+++ b/postler/postler.vapi
@@ -77,3 +77,8 @@ namespace Folks {
     }
 }
 
+[CCode (cprefix = "Soup", lower_case_cprefix = "soup_")]
+namespace Soup {
+    [CCode (cname = "soup_date_to_timeval", cheader_filename = "libsoup/soup.h")]
+    public void date_to_timeval (Soup.Date date, GLib.TimeVal time);
+}


More information about the Xfce4-commits mailing list