Glib.TimeVal 1 extra argument

Bug #809889 reported by Jesse Jaara
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Postler
Fix Committed
Undecided
Unassigned

Bug Description

Building with git build of vala will fail complainig

../postler/postler-content.vala:440.13-440.36: error: 1 extra arguments for `GLib.TimeVal Soup.Date.to_timeval ()'

Changed in postler:
status: New → Confirmed
Cris Dywan (kalikiana)
description: updated
Revision history for this message
Jesse Jaara (huulivoide) wrote :

This should fix it, but it probably breaks postler with vala 0.10 branch :(

--- postler/postler/postler-content.vala 2011-08-08 11:44:01.537004830 +0300
+++ postler-build/postler/postler-content.vala 2011-08-08 14:49:17.850869152 +0300
@@ -439,7 +439,7 @@
         TimeVal time = new TimeVal ();
         int offset = 0;
         if (parsed != null) {
- parsed.to_timeval (time);
+ time = parsed.to_timeval();
             offset = parsed.offset;
         }
         return new DateTime.from_timeval_local (time).add_minutes (offset);

Revision history for this message
Cris Dywan (kalikiana) wrote :

As you suggested, we need a slightly more elaborate fix. So I added the function to postler.vapi now to avoid the binding and it should work fine in either version.

Thanks for your suggestion anyhow.

Changed in postler:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.