~ubuntu-branches/ubuntu/intrepid/rhythmbox/intrepid

« back to all changes in this revision

Viewing changes to plugins/audioscrobbler/rb-lastfm-source.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2008-09-03 10:54:50 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20080903105450-mslsln15n2ap6g7o
Tags: 0.11.6svn20080903-0ubuntu1
* New upstream snapshot:
  - doesn't crash when eject an audio player (lp: #263268)
* debian/patches/80_new_libmtp_build.patch:
  - the change is in the new version
* debian/rules:
  - don't specify a gecko variant that's not required in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
266
266
{
267
267
        PROP_0,
268
268
        PROP_ENTRY_TYPE,
269
 
        PROP_TRACK_ENTRY_TYPE,
 
269
        PROP_STATION_ENTRY_TYPE,
270
270
        PROP_PROXY_CONFIG,
271
271
        PROP_PLAY_ORDER
272
272
};
324
324
                                         PROP_ENTRY_TYPE,
325
325
                                         g_param_spec_boxed ("entry-type",
326
326
                                                             "Entry type",
 
327
                                                             "Entry type for last.fm tracks",
 
328
                                                             RHYTHMDB_TYPE_ENTRY_TYPE,
 
329
                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
 
330
        g_object_class_install_property (object_class,
 
331
                                         PROP_STATION_ENTRY_TYPE,
 
332
                                         g_param_spec_boxed ("station-entry-type",
 
333
                                                             "Entry type",
327
334
                                                             "Entry type for last.fm stations",
328
335
                                                             RHYTHMDB_TYPE_ENTRY_TYPE,
329
336
                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
330
337
        g_object_class_install_property (object_class,
331
 
                                         PROP_TRACK_ENTRY_TYPE,
332
 
                                         g_param_spec_boxed ("track-entry-type",
333
 
                                                             "Entry type",
334
 
                                                             "Entry type for last.fm tracks",
335
 
                                                             RHYTHMDB_TYPE_ENTRY_TYPE,
336
 
                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
337
 
        g_object_class_install_property (object_class,
338
338
                                         PROP_PROXY_CONFIG,
339
339
                                         g_param_spec_object ("proxy-config",
340
340
                                                              "RBProxyConfig",
587
587
 
588
588
        switch (prop_id) {
589
589
        case PROP_ENTRY_TYPE:
 
590
                source->priv->track_entry_type = g_value_get_boxed (value);
 
591
                break;
 
592
        case PROP_STATION_ENTRY_TYPE:
590
593
                source->priv->station_entry_type = g_value_get_boxed (value);
591
594
                break;
592
 
        case PROP_TRACK_ENTRY_TYPE:
593
 
                source->priv->track_entry_type = g_value_get_boxed (value);
594
 
                break;
595
595
        case PROP_PROXY_CONFIG:
596
596
                source->priv->proxy_config = g_value_get_object (value);
597
597
                g_object_ref (G_OBJECT (source->priv->proxy_config));
612
612
 
613
613
        switch (prop_id) {
614
614
        case PROP_ENTRY_TYPE:
 
615
                g_value_set_boxed (value, source->priv->track_entry_type);
 
616
                break;
 
617
        case PROP_STATION_ENTRY_TYPE:
615
618
                g_value_set_boxed (value, source->priv->station_entry_type);
616
619
                break;
617
 
        case PROP_TRACK_ENTRY_TYPE:
618
 
                g_value_set_boxed (value, source->priv->track_entry_type);
619
 
                break;
620
620
        case PROP_PLAY_ORDER:
621
621
                g_value_set_object (value, source->priv->play_order);
622
622
                break;
677
677
        source = RB_SOURCE (g_object_new (RB_TYPE_LASTFM_SOURCE,
678
678
                                          "name", _("Last.fm"),
679
679
                                          "shell", shell,
680
 
                                          "entry-type", station_entry_type,
681
 
                                          "track-entry-type", track_entry_type,
 
680
                                          "station-entry-type", station_entry_type,
 
681
                                          "entry-type", track_entry_type,
682
682
                                          "proxy-config", proxy_config,
683
683
                                          "source-group", RB_SOURCE_GROUP_LIBRARY,
684
684
                                          NULL));
685
 
        rb_shell_register_entry_type_for_source (shell, source, station_entry_type);
 
685
 
686
686
        rb_shell_register_entry_type_for_source (shell, source, track_entry_type);
687
687
 
688
688
        g_object_unref (db);