From: Simón Pena Date: Sun, 16 May 2010 23:37:49 +0000 (+0200) Subject: Movie Info Provider test: Received list X-Git-Url: https://vcs.maemo.org/git/?p=maevies;a=commitdiff_plain;h=f4d377bbff320fe3ef7ba5fe7c343b1961bc2d37 Movie Info Provider test: Received list The result list read from the service is now received and displayed in the Movie Info Provider test. --- diff --git a/test/mvs-minfo-provider-test.c b/test/mvs-minfo-provider-test.c index f4d3bf6..343d0a0 100644 --- a/test/mvs-minfo-provider-test.c +++ b/test/mvs-minfo-provider-test.c @@ -25,9 +25,23 @@ static GMainLoop *loop = NULL; static void -response_received_callback (MvsMInfoProvider minfo_provider, +response_received_callback (MvsMInfoProvider *minfo_provider, GList *list, gpointer user_data) { + GList *tmp = NULL; + + for (tmp = list; tmp; tmp = tmp->next) { + + g_return_if_fail (MVS_IS_TMDB_MOVIE (tmp->data)); + + MvsTmdbMovie *movie_info = MVS_TMDB_MOVIE (tmp->data); + + mvs_tmdb_movie_print (movie_info); + + g_object_unref (movie_info); + } + + g_list_free (list); g_main_loop_quit (loop); }