Fix building with latest valac version (7.10)
authorQball Cow <qball@s010375.(none)>
Mon, 8 Feb 2010 15:37:26 +0000 (16:37 +0100)
committerQball Cow <qball@s010375.(none)>
Mon, 8 Feb 2010 15:37:26 +0000 (16:37 +0100)
configure.ac
src/Providers/music-tree.vala
src/Widgets/gmpc-image-async.vala
src/browsers/gmpc-nowplaying2.vala
src/vala/gmpc-database-update-tracker.vala
src/vala/gmpc-favorites.vala
src/vala/gmpc-metadata-prefetcher.vala
src/vala/gmpc-test-plugin.vala
src/vapi/gmpc.vapi

index b67db6f..84e9cdb 100644 (file)
@@ -364,7 +364,7 @@ if test x${GOB2} = x""; then
        exit 0;
 fi
 
-AM_PROG_VALAC([0.7.9])
+AM_PROG_VALAC([0.7.10])
 
 if test x${VALAC} = x""; then
     exit 0;
index b37cd70..e19af2f 100644 (file)
@@ -38,7 +38,7 @@ private const string some_unique_name_lp = Config.VERSION;
 public class Gmpc.Provider.MusicTree : Gmpc.Plugin.Base, Gmpc.Plugin.MetaDataIface 
 {
     private GLib.Regex image_filename = null;
-    public int[] version = {0,0,2};
+    public const int[] version = {0,0,2};
 
     
     public override weak int[] get_version() {
index 5826539..eeb981b 100644 (file)
@@ -31,7 +31,7 @@ public class Gmpc.PixbufLoaderAsync : GLib.Object
     private Gtk.TreeRowReference rref = null;
 
 
-    signal void pixbuf_update(Gdk.Pixbuf? pixbuf);
+    public signal void pixbuf_update(Gdk.Pixbuf? pixbuf);
 
     public void set_rref(Gtk.TreeRowReference rreference)
     {
index 68664cd..c893fa0 100644 (file)
@@ -409,6 +409,7 @@ namespace Gmpc {
                     event.button_press_event.connect((widget, event) => {
                         string artist = (string)widget.get_data("artist");
                         Gmpc.Browser.Metadata.show_artist(artist);
+                       return false;
                     });
                 }
                 /* Album */
@@ -436,7 +437,9 @@ namespace Gmpc {
                         string album = (string)widget.get_data("album");
                         if(artist != null && album != null) {
                             Gmpc.Browser.Metadata.show_album(artist,album);
-                            }
+                           return true;
+                           }
+                           return false;
                             });
                 }
                 /* Genre */
index da3f326..754f32d 100644 (file)
@@ -26,7 +26,7 @@ private const string some_unique_name_mb = Config.VERSION;
 
 public class  Gmpc.Plugin.DatabaseUpdateTracker : Gmpc.Plugin.Base {
     private Gtk.Image image = null;
-    public int[] version = {0,0,2};
+    public const int[] version = {0,0,2};
 
     public override weak int[] get_version() {
         return this.version;
index 98bc9af..42639d1 100644 (file)
@@ -75,7 +75,7 @@ namespace Gmpc.Favorites{
         /**
          * Signal for the widget using the list to see if it needs to recheck status
          */
-        signal void updated();
+        public signal void updated();
 
         /**
          * Check if the song (specified by path) is favored
index 1149747..6cabc71 100644 (file)
@@ -24,7 +24,7 @@ using Gmpc;
 private const bool use_transition_mpf = Gmpc.use_transition;
 
 public class  Gmpc.Plugin.MetadataPrefetcher : Gmpc.Plugin.Base {
-    public int[] version = {0,0,2};
+    public const int[] version = {0,0,2};
 
     public override weak int[] get_version() {
         return this.version;
index e61fae8..8b3516e 100644 (file)
@@ -396,8 +396,8 @@ public class Gmpc.MetaData.EditWindow : Gtk.Window {
                 string base64 =(string)button.get_data("data");
                 if(base64 != null) {
                     string filename = Gmpc.MetaData.get_metadata_filename(this.query_type,this.song, null); 
-                    size_t len;
-                    uchar[] data = GLib.Base64.decode(base64, out len);
+                    size_t len=0;
+                    uchar[] data = GLib.Base64.decode(base64);
                     try{
                     GLib.FileUtils.set_contents(filename, (string)data, (ssize_t)len);
 
index 735baa5..ac9a49b 100644 (file)
@@ -21,7 +21,7 @@ namespace Gmpc {
 
     [CCode (cheader_filename="gmpc-meta-watcher.h")]
     public class MetaWatcher {
-        signal void data_changed(MPD.Song song,  Gmpc.MetaData.Type type, Gmpc.MetaData.Result result,MetaData.Item met);
+        public signal void data_changed(MPD.Song song,  Gmpc.MetaData.Type type, Gmpc.MetaData.Result result,MetaData.Item met);
 
 
         [CCode ( cname="gmpc_meta_watcher_get_meta_path", cheader_filename="gmpc-meta-watcher.h" )]