~snaggen/rhythmbox/bpm

« back to all changes in this revision

Viewing changes to plugins/audiocd/sj-structures.c

  • Committer: Jonathan Matthew
  • Author(s): Jonathan Matthew
  • Date: 2007-01-07 12:16:12 UTC
  • Revision ID: git-v1:5b6958ea3cf24f2c8bcfa15b9cab1fc7798b7305
Moved lots of files around. Now everything should be in the directory it's

2007-01-07  Jonathan Matthew  <jonathan@kaolin.wh9.net>

        Moved lots of files around.  Now everything should be in the directory
        it's built in and all plugin-specific files should be installed into
        the plugin directory.

        * plugins/audioscrobbler/rb-audioscrobbler-plugin.c:
        (impl_create_configure_dialog):
        * plugins/audioscrobbler/rb-audioscrobbler.c:
        (rb_audioscrobbler_class_init), (rb_audioscrobbler_dispose),
        (rb_audioscrobbler_finalize),
        (rb_audioscrobbler_get_config_widget):
        * plugins/audioscrobbler/rb-audioscrobbler.h:
        Use rb_plugin_find_file where needed.

        * widgets/rb-uri-dialog.c: (rb_uri_dialog_class_init),
        (rb_uri_dialog_init), (rb_uri_dialog_finalize),
        (rb_uri_dialog_new), (rb_uri_dialog_response_cb),
        (rb_uri_dialog_text_changed):
        * widgets/rb-uri-dialog.h:
        New common 'enter a URI' dialog, used by iradio and podcast code.

        * plugins/iradio/rb-iradio-plugin.c: (impl_activate):
        * plugins/iradio/rb-iradio-source.c:
        (rb_iradio_source_constructor), (rb_iradio_source_new),
        (impl_song_properties), (rb_iradio_source_first_time_changed),
        (new_station_location_added), (rb_iradio_source_cmd_new_station):
        * plugins/iradio/rb-iradio-source.h:
        * plugins/iradio/rb-station-properties-dialog.c:
        (rb_station_properties_dialog_class_init),
        (rb_station_properties_dialog_init),
        (rb_station_properties_dialog_constructor),
        (rb_station_properties_dialog_set_property),
        (rb_station_properties_dialog_get_property),
        (rb_station_properties_dialog_new):
        * plugins/iradio/rb-station-properties-dialog.h:
        Use the common URI dialog, use rb_plugin_find_file where needed.

        * sources/rb-podcast-source.c:
        (rb_podcast_source_location_added_cb),
        (rb_podcast_source_cmd_new_podcast):
        Use the common URI dialog.

svn path=/trunk/; revision=4725

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
 * Copyright (C) 2003 Ross Burton <ross@burtonini.com>
 
3
 *
 
4
 * Sound Juicer - sj-structures.c
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; either version 2 of the License, or
 
9
 * (at your option) any later version.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the Free Software
 
18
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
19
 *
 
20
 * Authors: Ross Burton <ross@burtonini.com>
 
21
 */
 
22
 
 
23
#include "sj-structures.h"
 
24
#include <glib/gmessages.h>
 
25
#include <glib/glist.h>
 
26
 
 
27
/**
 
28
 * Free a TrackDetails*
 
29
 */
 
30
void track_details_free(TrackDetails *track)
 
31
{
 
32
  g_return_if_fail (track != NULL);
 
33
  g_free (track->title);
 
34
  g_free (track->artist);
 
35
  g_free (track->track_id);
 
36
  g_free (track->artist_id);
 
37
  g_free (track->artist_sortname);
 
38
  g_free (track);
 
39
}
 
40
 
 
41
/**
 
42
 * Free a AlbumDetails*
 
43
 */
 
44
void album_details_free(AlbumDetails *album)
 
45
{
 
46
  g_return_if_fail (album != NULL);
 
47
  g_free (album->title);
 
48
  g_free (album->artist);
 
49
  g_free (album->genre);
 
50
  g_free (album->album_id);
 
51
  if (album->release_date) g_date_free (album->release_date);
 
52
  g_list_foreach (album->tracks, (GFunc)track_details_free, NULL);
 
53
  g_list_free (album->tracks);
 
54
  g_free (album->artist_sortname);
 
55
  g_free (album);
 
56
}