static void rb_generic_player_plugin_delete_playlist (GtkAction *action, RBSource *source) { g_return_if_fail (RB_IS_GENERIC_PLAYER_PLAYLIST_SOURCE (source)); rb_generic_player_playlist_delete_from_player (RB_GENERIC_PLAYER_PLAYLIST_SOURCE (source)); rb_source_delete_thyself (source); }
static void impl_remove_playlists (RBMediaPlayerSource *source) { RBGenericPlayerSourcePrivate *priv = GET_PRIVATE (source); GList *playlists; GList *t; playlists = g_list_copy (priv->playlists); for (t = playlists; t != NULL; t = t->next) { RBGenericPlayerPlaylistSource *p = RB_GENERIC_PLAYER_PLAYLIST_SOURCE (t->data); rb_generic_player_playlist_delete_from_player (p); rb_display_page_delete_thyself (RB_DISPLAY_PAGE (p)); } g_list_free (playlists); }