diff src/audacious/auddrct.c @ 2745:72781ef7ece3 trunk

[svn] - auddrct: more calls implemented (part 4)
author giacomo
date Fri, 11 May 2007 18:35:26 -0700
parents 8ab4ef180201
children 4f2fd69771dc
line wrap: on
line diff
--- a/src/audacious/auddrct.c	Fri May 11 18:12:56 2007 -0700
+++ b/src/audacious/auddrct.c	Fri May 11 18:35:26 2007 -0700
@@ -27,6 +27,7 @@
 #include "ui_main.h"
 #include "ui_playlist.h"
 #include "ui_equalizer.h"
+#include "ui_jumptotrack.h"
 
 
 /* player */
@@ -46,6 +47,14 @@
   return;
 }
 
+void
+audacious_drct_jtf_show ( void )
+{
+  if (has_x11_connection)
+    ui_jump_to_track();
+  return;
+}
+
 gboolean
 audacious_drct_main_win_is_visible ( void )
 {
@@ -196,3 +205,29 @@
   playlist_prev(playlist_get_active());
   return;
 }
+
+gboolean
+audacious_drct_pl_repeat_is_enabled( void )
+{
+    return cfg.repeat;
+}
+
+void
+audacious_drct_pl_repeat_toggle( void )
+{
+  mainwin_repeat_pushed(!cfg.repeat);
+  return;
+}
+
+gboolean
+audacious_drct_pl_repeat_is_shuffled( void )
+{
+    return cfg.shuffle;
+}
+
+void
+audacious_drct_pl_shuffle_toggle( void )
+{
+  mainwin_shuffle_pushed(!cfg.shuffle);
+  return;
+}