Mercurial > audlegacy
comparison src/audacious/ui_playlist_evlisteners.c @ 4544:084dbc8d23da
removed variable "has_x11_connection" from main.c, needed to hookify some functions therefore
author | mf0102 <0102@gmx.at> |
---|---|
date | Mon, 12 May 2008 23:01:06 +0200 |
parents | 6e412073cf28 |
children |
comparison
equal
deleted
inserted
replaced
4543:ed94ac6182df | 4544:084dbc8d23da |
---|---|
35 playlistwin_update_list(playlist); | 35 playlistwin_update_list(playlist); |
36 | 36 |
37 playlist_manager_update(); | 37 playlist_manager_update(); |
38 } | 38 } |
39 | 39 |
40 static void | |
41 ui_playlist_evlistener_playlistwin_show(gpointer hook_data, gpointer user_data) | |
42 { | |
43 gboolean *show = (gboolean*)hook_data; | |
44 if (*show == TRUE) | |
45 playlistwin_show(); | |
46 else | |
47 playlistwin_hide(); | |
48 } | |
49 | |
40 void ui_playlist_evlistener_init(void) | 50 void ui_playlist_evlistener_init(void) |
41 { | 51 { |
42 hook_associate("playlist update", | 52 hook_associate("playlist update", ui_playlist_evlistener_playlist_update, NULL); |
43 ui_playlist_evlistener_playlist_update, NULL); | 53 hook_associate("playlistwin show", ui_playlist_evlistener_playlistwin_show, NULL); |
44 } | 54 } |