diff src/statusicon/si.c @ 962:9f0ac3bb82f4 trunk

[svn] - statusicon: added support for quit button in smallmenu; also, the field is being prepared for customizable smallmenu entries
author giacomo
date Mon, 16 Apr 2007 01:35:24 -0700
parents 209bd85dc1b9
children e3beb4b76591
line wrap: on
line diff
--- a/src/statusicon/si.c	Sun Apr 15 12:23:05 2007 -0700
+++ b/src/statusicon/si.c	Mon Apr 16 01:35:24 2007 -0700
@@ -122,26 +122,32 @@
 {
   gint vl, vr;
   xmms_remote_get_volume( si_gp.xmms_session , &vl , &vr );
-  xmms_remote_set_volume( si_gp.xmms_session , 
+  xmms_remote_set_volume( si_gp.xmms_session ,
     CLAMP(vl + value, 0, 100) , CLAMP(vr + value, 0, 100) );
 }
 
 void
+si_audacious_quit ( void )
+{
+  xmms_remote_quit( si_gp.xmms_session );
+}
+
+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 );
 }