Mercurial > audlegacy
comparison src/audacious/ui_main_evlisteners.c @ 4553:47cc110bef0c
Hookify a visualization function
author | mf0102 <0102@gmx.at> |
---|---|
date | Sun, 18 May 2008 16:06:33 +0200 |
parents | d4c5719d30d1 |
children | 910ed095b5a9 |
comparison
equal
deleted
inserted
replaced
4552:1fe29814b90c | 4553:47cc110bef0c |
---|---|
258 | 258 |
259 static void | 259 static void |
260 ui_main_evlistener_filebrowser_hide(gpointer hook_data, gpointer user_data) | 260 ui_main_evlistener_filebrowser_hide(gpointer hook_data, gpointer user_data) |
261 { | 261 { |
262 hide_filebrowser(); | 262 hide_filebrowser(); |
263 } | |
264 | |
265 static void | |
266 ui_main_evlistener_visualization_timeout(gpointer hook_data, gpointer user_data) | |
267 { | |
268 if (cfg.player_shaded && cfg.player_visible) | |
269 ui_svis_timeout_func(mainwin_svis, hook_data); | |
270 else | |
271 ui_vis_timeout_func(mainwin_vis, hook_data); | |
263 } | 272 } |
264 | 273 |
265 static void | 274 static void |
266 ui_main_evlistener_config_save(gpointer hook_data, gpointer user_data) | 275 ui_main_evlistener_config_save(gpointer hook_data, gpointer user_data) |
267 { | 276 { |
299 hook_associate("prefswin show", ui_main_evlistener_prefswin_show, NULL); | 308 hook_associate("prefswin show", ui_main_evlistener_prefswin_show, NULL); |
300 hook_associate("aboutwin show", ui_main_evlistener_aboutwin_show, NULL); | 309 hook_associate("aboutwin show", ui_main_evlistener_aboutwin_show, NULL); |
301 hook_associate("ui jump to track show", ui_main_evlistener_ui_jump_to_track_show, NULL); | 310 hook_associate("ui jump to track show", ui_main_evlistener_ui_jump_to_track_show, NULL); |
302 hook_associate("filebrowser show", ui_main_evlistener_filebrowser_show, NULL); | 311 hook_associate("filebrowser show", ui_main_evlistener_filebrowser_show, NULL); |
303 hook_associate("filebrowser hide", ui_main_evlistener_filebrowser_hide, NULL); | 312 hook_associate("filebrowser hide", ui_main_evlistener_filebrowser_hide, NULL); |
313 hook_associate("visualization timeout", ui_main_evlistener_visualization_timeout, NULL); | |
304 hook_associate("config save", ui_main_evlistener_config_save, NULL); | 314 hook_associate("config save", ui_main_evlistener_config_save, NULL); |
305 } | 315 } |
306 | 316 |