changeset 2845:a124656d4423 trunk

added handlers for cmd line args when remote == false
author Ben Tucker <ben.tucker@gmail.com>
date Sun, 17 Jun 2007 11:19:56 -0700
parents 22da7cd0eca0
children 89c3fef7ae1f
files src/audacious/main.c
diffstat 1 files changed, 35 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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) {