diff src/statusicon/si.c @ 918:209bd85dc1b9 trunk

[svn] - statusicon: add an option to use mouse wheel to change playing song instead of volume
author giacomo
date Fri, 06 Apr 2007 11:47:07 -0700
parents 1ccc7a9c7fc2
children 9f0ac3bb82f4
line wrap: on
line diff
--- a/src/statusicon/si.c	Fri Apr 06 10:30:17 2007 -0700
+++ b/src/statusicon/si.c	Fri Apr 06 11:47:07 2007 -0700
@@ -127,6 +127,26 @@
 }
 
 void
+si_audacious_playback_skip ( gint numsong )
+{
+  gpointer ctrl_code_gp = NULL;
+  gint i = 0;
+  
+  if ( numsong >= 0 )
+  {
+    ctrl_code_gp = GINT_TO_POINTER(SI_AUDACIOUS_PLAYBACK_CTRL_NEXT);
+  }
+  else
+  { 
+    ctrl_code_gp = GINT_TO_POINTER(SI_AUDACIOUS_PLAYBACK_CTRL_PREV);
+    numsong *= -1;
+  }
+  
+  for ( i = 0 ; i < numsong ; i++ )
+    si_audacious_playback_ctrl( ctrl_code_gp );
+}
+
+void
 si_audacious_playback_ctrl ( gpointer ctrl_code_gp )
 {
   gint ctrl_code = GPOINTER_TO_INT(ctrl_code_gp);