tag 673592 + patch thanks Hi Michael, thanks for this bug report. I prepared a patch, attached here.
Have a nice day ! -- Etienne Millon
From: Etienne Millon <[email protected]> Date: Sun, 20 May 2012 19:29:22 +0200 Subject: Fix build with valac 0.16 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673592 --- src/vala/gmpc-test-plugin.vala | 6 +++--- src/vapi/gmpc.vapi | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/vala/gmpc-test-plugin.vala b/src/vala/gmpc-test-plugin.vala index 732be5b..03ae8c5 100644 --- a/src/vala/gmpc-test-plugin.vala +++ b/src/vala/gmpc-test-plugin.vala @@ -179,7 +179,7 @@ public class Gmpc.MetaData.EditWindow : Gtk.Window { this.bar.pulse(); if(status == Gmpc.AsyncDownload.Status.DONE) { - unowned uchar[] data = handle.get_data<uchar[]>(); + unowned uchar[] data = handle.get_data(); if(this.query_type == Gmpc.MetaData.Type.ALBUM_ART || this.query_type == Gmpc.MetaData.Type.ARTIST_ART) { try{ @@ -342,7 +342,7 @@ public class Gmpc.MetaData.EditWindow : Gtk.Window { public void store_image(Gmpc.AsyncDownload.Handle handle, Gmpc.AsyncDownload.Status status) { if(status == Gmpc.AsyncDownload.Status.PROGRESS){ - unowned uchar[] data =handle.get_data<uchar[]>(); + unowned uchar[] data =handle.get_data(); this.sensitive = false; this.pbox.show(); int64 total_size = handle.get_content_size(); @@ -356,7 +356,7 @@ public class Gmpc.MetaData.EditWindow : Gtk.Window { this.downloads.remove(handle); if(status == Gmpc.AsyncDownload.Status.DONE) { - unowned uchar[] data = handle.get_data<uchar[]>(); + unowned uchar[] data = handle.get_data(); var file = Gmpc.MetaData.get_metadata_filename(this.query_type, this.song,null); try { GLib.FileUtils.set_contents(file, (string)data, (long)data.length); diff --git a/src/vapi/gmpc.vapi b/src/vapi/gmpc.vapi index 46ab281..a12e8ae 100644 --- a/src/vapi/gmpc.vapi +++ b/src/vapi/gmpc.vapi @@ -213,10 +213,9 @@ namespace Gmpc { CANCELLED } - [CCode (cname="GEADAsyncHandler", cheader_filename="gmpc_easy_download.h")] [Compact] [Immutable] - [CCode (ref_function="", unref_function ="")] + [CCode (cname="GEADAsyncHandler", cheader_filename="gmpc_easy_download.h", ref_function="", unref_function ="")] public class Handle { [CCode (cname="gmpc_easy_async_cancel", cheader_filename="gmpc_easy_download.h")] public void cancel (); @@ -304,7 +303,7 @@ namespace Gmpc { public void colorshift_pixbuf(Gdk.Pixbuf dest, Gdk.Pixbuf src, int shift); [CCode (cname="darken_pixbuf",cheader_filename="misc.h")] - public void darken_pixbuf(Gdk.Pixbuf dest, uint factor = 1.0); + public void darken_pixbuf(Gdk.Pixbuf dest, uint factor = 1); [CCode (cname="decolor_pixbuf",cheader_filename="misc.h")] public void decolor_pixbuf(Gdk.Pixbuf dest, Gdk.Pixbuf src); [CCode (cname="screenshot_add_border",cheader_filename="misc.h")]

