Mercurial > audlegacy
diff src/audacious/auddrct.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 | 26209b646930 |
children | 11f7874f3a95 |
line wrap: on
line diff
--- a/src/audacious/auddrct.c Mon May 12 19:31:11 2008 +0200 +++ b/src/audacious/auddrct.c Mon May 12 23:01:06 2008 +0200 @@ -25,10 +25,6 @@ #include "main.h" #include "input.h" #include "playback.h" -#include "ui_main.h" -#include "ui_playlist.h" -#include "ui_equalizer.h" -#include "ui_jumptotrack.h" #include "auddrct.h" #include "playlist.h" @@ -43,17 +39,15 @@ void drct_eject ( void ) { - if (has_x11_connection) - mainwin_eject_pushed(); - return; + gboolean play_button = FALSE; + hook_call("filebrowser show", &play_button); } void drct_jtf_show ( void ) { - if (has_x11_connection) - ui_jump_to_track(); - return; + gboolean show = TRUE; + hook_call("ui jump to track show", &show); } gboolean @@ -65,9 +59,7 @@ void drct_main_win_toggle ( gboolean show ) { - if (has_x11_connection) - mainwin_show(show); - return; + hook_call("mainwin show", &show); } gboolean @@ -79,9 +71,7 @@ void drct_eq_win_toggle ( gboolean show ) { - if (has_x11_connection) - equalizerwin_show(show); - return; + hook_call("equalizerwin show", &show); } gboolean @@ -93,13 +83,7 @@ void drct_pl_win_toggle ( gboolean show ) { - if (has_x11_connection) { - if (show) - playlistwin_show(); - else - playlistwin_hide(); - } - return; + hook_call("playlistwin show", &show); } void drct_activate(void)