changeset 2742:1333d28e2c50 trunk

[svn] - auddrct: more calls implemented
author giacomo
date Fri, 11 May 2007 17:58:39 -0700
parents e4c08b7023a0
children 2e86136729f1
files ChangeLog src/audacious/auddrct.c src/audacious/auddrct.h src/audacious/build_stamp.c
diffstat 4 files changed, 101 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri May 11 17:49:37 2007 -0700
+++ b/ChangeLog	Fri May 11 17:58:39 2007 -0700
@@ -1,3 +1,10 @@
+2007-05-12 00:49:37 +0000  Giacomo Lozito <james@develia.org>
+  revision [4508]
+  - fix cfg options for visibility
+  trunk/src/audacious/dbus.c |    4 ++--
+  1 file changed, 2 insertions(+), 2 deletions(-)
+
+
 2007-05-12 00:20:46 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [4506]
   - add an xchat script which wraps our DBus API using dbus-python.
--- a/src/audacious/auddrct.c	Fri May 11 17:49:37 2007 -0700
+++ b/src/audacious/auddrct.c	Fri May 11 17:58:39 2007 -0700
@@ -26,6 +26,70 @@
 #include "ui_main.h"
 
 
+/* player */
+
+void
+audacious_drct_quit ( void )
+{
+  mainwin_quit_cb();
+  return;
+}
+
+void
+audacious_drct_eject ( void )
+{
+  if (has_x11_connection)
+    mainwin_eject_pushed();
+  return;
+}
+
+gboolean
+audacious_drct_main_win_is_visible ( void )
+{
+  return cfg.player_visible;
+}
+
+void
+audacious_drct_main_win_show ( void )
+{
+  if (has_x11_connection)
+    mainwin_show(show);
+  return;
+}
+
+gboolean
+audacious_drct_equalizer_is_visible ( void )
+{
+  return cfg.equalizer_visible;
+}
+
+void
+audacious_drct_equalizer_show ( void )
+{
+  if (has_x11_connection)
+    equalizerwin_show(show);
+  return;
+}
+
+gboolean
+audacious_drct_playlist_is_visible ( void )
+{
+  return cfg.playlist_visible;
+}
+
+void
+audacious_drct_playlist_show ( void )
+{
+  if (has_x11_connection) {
+    if (show)
+      playlistwin_show();
+    else
+      playlistwin_hide();
+  }
+  return;
+}
+
+
 /* playback */
 
 void
@@ -113,3 +177,19 @@
   return;
 }
 
+
+/* playlist */
+
+void
+audacious_drct_pl_next ( void )
+{
+  playlist_next(playlist_get_active());
+  return;
+}
+
+void
+audacious_drct_pl_prev ( void )
+{
+  playlist_prev(playlist_get_active());
+  return;
+}
--- a/src/audacious/auddrct.h	Fri May 11 17:49:37 2007 -0700
+++ b/src/audacious/auddrct.h	Fri May 11 17:58:39 2007 -0700
@@ -22,6 +22,15 @@
 
 #include <glib.h>
 
+/* player */
+void audacious_drct_quit ( void );
+void audacious_drct_eject ( void );
+gboolean audacious_drct_main_win_is_visible ( void );
+void audacious_drct_main_win_show ( void );
+gboolean audacious_drct_equalizer_is_visible ( void );
+void audacious_drct_equalizer_show ( void );
+gboolean audacious_drct_playlist_is_visible ( void );
+void audacious_drct_playlist_show ( void );
 
 /* playback */
 void audacious_drct_play ( void );
@@ -34,3 +43,7 @@
 void audacious_drct_seek ( guint pos );
 void audacious_drct_get_volume( gint *vl, gint *vr );
 void audacious_drct_set_volume( gint vl, gint vr );
+
+/* playlist */
+void audacious_drct_pl_next( void );
+void audacious_drct_pl_prev( void );
--- a/src/audacious/build_stamp.c	Fri May 11 17:49:37 2007 -0700
+++ b/src/audacious/build_stamp.c	Fri May 11 17:58:39 2007 -0700
@@ -1,2 +1,2 @@
 #include <glib.h>
-const gchar *svn_stamp = "20070512-4506";
+const gchar *svn_stamp = "20070512-4508";