X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fplugins%2Fgoogle-plugin.vala;h=65abc6fa992aff582493de62066786eca5fe6c4f;hb=edd1287bea8e81ddef04f2e47783e91a479a1537;hp=600c407fc9002a283d08a57dad99edfb4d5c4414;hpb=433b60465a8acafd931aa3058c7d3f198b50dfe7;p=cinaest diff --git a/src/plugins/google-plugin.vala b/src/plugins/google-plugin.vala index 600c407..65abc6f 100644 --- a/src/plugins/google-plugin.vala +++ b/src/plugins/google-plugin.vala @@ -250,6 +250,7 @@ class GoogleSource : MovieSource { private void on_movies_found (DBus.Object sender, string[] movies, bool finished) { print ("found %d movies\n", movies.length); var parser = new Json.Parser (); + var result = new SList (); for (int i = 0; i < movies.length; i++) { var movie = new GoogleMovie (); @@ -271,9 +272,11 @@ class GoogleSource : MovieSource { else movie.secondary = movie.cinema_name + " - " + movie.showtimes; - callback (movie); + result.append (movie); } + callback (result); + if (finished) { search = null; Idle.add (get_movies_callback); @@ -299,8 +302,8 @@ class GoogleSource : MovieSource { return description; } - public override bool get_editable () { - return false; + public override SourceFlags get_flags () { + return SourceFlags.ONLINE; } }