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<Movie> ();
for (int i = 0; i < movies.length; i++) {
var movie = new GoogleMovie ();
else
movie.secondary = movie.cinema_name + " - " + movie.showtimes;
- callback (movie);
+ result.append (movie);
}
+ callback (result);
+
if (finished) {
search = null;
Idle.add (get_movies_callback);