~ubuntu-branches/ubuntu/precise/rhythmbox/precise-updates

« back to all changes in this revision

Viewing changes to plugins/generic-player/rb-generic-player-source.c

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2012-03-16 15:25:30 UTC
  • mfrom: (1.1.65)
  • Revision ID: package-import@ubuntu.com-20120316152530-98p47h1vrm3yn11r
Tags: 2.96-0ubuntu1
* New upstream version
* debian/patches/git_local_art_search_typo.patch:
  - git patch, fix a typo in the artsearch code
* debian/patches/git_magnatune_dialog_segfault.patch:
  - git patch, fix manatune dialg segfaulting
* git_ipod_no_private_source.patch,
  git_ipod_playlist_handler.patch:
  - git fixes for the ipod playlist handling code
* debian/patches/git_playlists_sync_segfault.patch:
  - git patch, fix segfault in the ipod playlists sync code 
    (lp: #869445)
* debian/rhythmbox.gconf-defaults:
  - dropped, rhythmbox stopped using gconf in favor of gsettings

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
static gboolean impl_show_popup (RBDisplayPage *page);
76
76
static void impl_delete_thyself (RBDisplayPage *page);
77
77
static void impl_get_status (RBDisplayPage *page, char **text, char **progress_text, float *progress);
 
78
static void impl_selected (RBDisplayPage *page);
78
79
 
79
80
static gboolean impl_can_paste (RBSource *source);
80
81
static RBTrackTransferBatch *impl_paste (RBSource *source, GList *entries);
118
119
{
119
120
        RhythmDB *db;
120
121
 
 
122
        gboolean loaded;
121
123
        RhythmDBImportJob *import_job;
122
124
        gint load_playlists_id;
123
125
        GList *playlists;
163
165
        page_class->show_popup = impl_show_popup;
164
166
        page_class->delete_thyself = impl_delete_thyself;
165
167
        page_class->get_status = impl_get_status;
 
168
        page_class->selected = impl_selected;
166
169
 
167
170
        source_class->impl_can_delete = impl_can_delete;
168
171
        source_class->impl_delete = impl_delete;
316
319
        }
317
320
        g_strfreev (output_formats);
318
321
 
319
 
        rb_media_player_source_load (RB_MEDIA_PLAYER_SOURCE (source));
320
 
        load_songs (source);
321
322
}
322
323
 
323
324
static void
510
511
}
511
512
 
512
513
static void
 
514
impl_selected (RBDisplayPage *page)
 
515
{
 
516
        RBGenericPlayerSource *source = RB_GENERIC_PLAYER_SOURCE (page);
 
517
        RBGenericPlayerSourcePrivate *priv = GET_PRIVATE (source);
 
518
 
 
519
        if (priv->loaded == FALSE) {
 
520
                priv->loaded = TRUE;
 
521
                rb_media_player_source_load (RB_MEDIA_PLAYER_SOURCE (source));
 
522
                load_songs (source);
 
523
        }
 
524
}
 
525
 
 
526
static void
513
527
import_complete_cb (RhythmDBImportJob *job, int total, RBGenericPlayerSource *source)
514
528
{
515
529
        RBGenericPlayerSourceClass *klass = RB_GENERIC_PLAYER_SOURCE_GET_CLASS (source);