annotate src/audacious/ui_playlist_evlisteners.c @ 4506:f6bf0b7072c8

whoops, forgot to add those two files
author mf0102 <0102@gmx.at>
date Tue, 22 Apr 2008 12:14:24 +0200
parents
children 57e932016d97
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4506
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
1 /*
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
2 * Audacious
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
3 * Copyright (c) 2006-2007 Audacious development team.
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
4 *
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
5 * This program is free software; you can redistribute it and/or modify
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
6 * it under the terms of the GNU General Public License as published by
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
7 * the Free Software Foundation; under version 3 of the License.
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
8 *
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
9 * This program is distributed in the hope that it will be useful,
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
12 * GNU General Public License for more details.
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
13 *
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
14 * You should have received a copy of the GNU General Public License
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
15 * along with this program. If not, see <http://www.gnu.org/licenses>.
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
16 *
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
17 * The Audacious team does not consider modular code linking to
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
18 * Audacious or using our public API to be a derived work.
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
19 */
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
20
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
21 #include "ui_playlist_evlisteners.h"
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
22
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
23 #include <glib.h>
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
24
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
25 #include "hook.h"
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
26 #include "playlist.h"
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
27 #include "ui_playlist.h"
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
28
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
29 static void
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
30 playlist_evlistener_playlistwin_update_list(gpointer hook_data, gpointer user_data)
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
31 {
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
32 Playlist *playlist = (Playlist *) hook_data;
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
33
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
34 playlistwin_update_list(playlist);
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
35 }
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
36
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
37 void playlist_evlistener_init(void)
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
38 {
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
39 hook_associate("playlistwin update list", playlist_evlistener_playlistwin_update_list, NULL);
f6bf0b7072c8 whoops, forgot to add those two files
mf0102 <0102@gmx.at>
parents:
diff changeset
40 }