diff src/statusicon/si_ui.c @ 2422:e780330f6189

jump between songs using shift+lmb and shift+rmb (Bugzilla #157)
author Cristi Magherusan <majeru@atheme.org>
date Sun, 24 Feb 2008 14:42:48 +0200
parents 6b34a88b1408
children ced4a5392948
line wrap: on
line diff
--- a/src/statusicon/si_ui.c	Sat Feb 23 13:58:43 2008 +0100
+++ b/src/statusicon/si_ui.c	Sun Feb 24 14:42:48 2008 +0200
@@ -77,7 +77,10 @@
   {
     case 1:
     {
-      si_audacious_toggle_visibility();
+      if (event->state & GDK_SHIFT_MASK)
+        audacious_drct_pl_next();
+      else
+        si_audacious_toggle_visibility();
       break;
     }
 
@@ -89,6 +92,9 @@
 
     case 3:
     {
+      if (event->state & GDK_SHIFT_MASK)
+        audacious_drct_pl_prev();
+      else{
       switch ( si_cfg.rclick_menu )
       {
         case SI_CFG_RCLICK_MENU_SMALL1:
@@ -103,6 +109,7 @@
           break;
       }
       break;
+      }
     }
   }