~sil/libubuntuone/restrict-domains

« back to all changes in this revision

Viewing changes to tests/test-music-store.c

  • Committer: Tarmac
  • Author(s): Rodrigo Moya
  • Date: 2010-03-04 15:51:39 UTC
  • mfrom: (50.1.4 add-useful-signals)
  • Revision ID: rodrigo@megeve-20100304155139-48xiaiggk4fjzpub
Added signals to the music store widget needed for the Rhythmbox plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        gtk_widget_destroy (dialog);
36
36
}
37
37
 
 
38
static void
 
39
url_loaded_cb (U1MusicStore *music_store, const gchar *url, gpointer user_data)
 
40
{
 
41
        g_print ("URL loaded: %s", url);
 
42
}
 
43
 
38
44
int
39
45
main (int argc, char *argv[])
40
46
{
50
56
 
51
57
        music_store = u1_music_store_new ();
52
58
        g_signal_connect (G_OBJECT (music_store), "preview-mp3", G_CALLBACK (preview_mp3_cb), NULL);
 
59
        g_signal_connect (G_OBJECT (music_store), "url-loaded", G_CALLBACK (url_loaded_cb), NULL);
53
60
        gtk_widget_show (music_store);
54
61
        gtk_container_add (GTK_CONTAINER (window), music_store);
55
62
        
56
63
        /* Run the application */
57
64
        gtk_widget_show (window);
58
 
        gtk_widget_set_size_request (window, 400, 250);
59
65
        gtk_main ();
60
66
 
61
67
        return 0;