Movie Info Provider test: Signal response-received
authorSimón Pena <spenap@gmail.com>
Sun, 16 May 2010 16:59:00 +0000 (18:59 +0200)
committerSimón Pena <spenap@gmail.com>
Sun, 16 May 2010 17:31:55 +0000 (19:31 +0200)
The "response-received" signal is connected, so that when we get
a response for the query, the main loop is left.

test/mvs-info-provider-test.c

index d0adfa1..10a63f7 100644 (file)
@@ -42,6 +42,9 @@ main (int argc, char **argv)
         g_thread_init (NULL);
 
         minfo_provider = mvs_minfo_provider_new ();
         g_thread_init (NULL);
 
         minfo_provider = mvs_minfo_provider_new ();
+        g_signal_connect (minfo_provider, "response-received",
+                          G_CALLBACK (response_received_callback), NULL);
+
         movie_info = mvs_movie_info_new ();
         loop = g_main_loop_new (NULL, FALSE);
 
         movie_info = mvs_movie_info_new ();
         loop = g_main_loop_new (NULL, FALSE);