# HG changeset patch # User Ben Tucker # Date 1182104396 25200 # Node ID a124656d44235e4e88242043f917ace89de8aae5 # Parent 22da7cd0eca0c27922f41159c301f3c861690201 added handlers for cmd line args when remote == false diff -r 22da7cd0eca0 -r a124656d4423 src/audacious/main.c --- a/src/audacious/main.c Sun Jun 17 16:53:40 2007 +0200 +++ b/src/audacious/main.c Sun Jun 17 11:19:56 2007 -0700 @@ -53,6 +53,7 @@ # include "audctrl.h" #endif +#include "auddrct.h" #include "dnd.h" #include "effect.h" #include "ui_equalizer.h" @@ -998,6 +999,40 @@ if (options->playcd) play_medium(); + } else { + if (options->rew) + audacious_drct_playlist_prev(); + + if (options->play) + audacious_drct_play(); + + if (options->pause) + audacious_drct_pause(); + + if (options->stop) + audacious_drct_stop(); + + if (options->fwd) + audacious_drct_playlist_next(); + + if (options->play_pause) { + if (audacious_drct_get_paused) + audacious_drct_play(); + else + audacious_drct_pause(); + } + + if (options->show_jump_box) + audacious_drct_show_jtf_box(); + + if (options->mainwin) + audacious_drct_main_win_toggle(TRUE); + + if (options->activate) + audacious_drct_activate(); + + if (options->playcd) + play_medium(); } if(remote) {