diff src/statusicon/si_cfg.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 00394f91e3c6
line wrap: on
line diff
--- a/src/statusicon/si_cfg.c	Fri Apr 06 10:30:17 2007 -0700
+++ b/src/statusicon/si_cfg.c	Fri Apr 06 11:47:07 2007 -0700
@@ -33,6 +33,10 @@
   if ( !bmp_cfg_db_get_int( cfgfile , "statusicon" ,
        "rclick_menu" , &(si_cfg.rclick_menu) ) )
     si_cfg.rclick_menu = SI_CFG_RCLICK_MENU_AUD;
+
+  if ( !bmp_cfg_db_get_int( cfgfile , "statusicon" ,
+       "scroll_action" , &(si_cfg.scroll_action) ) )
+    si_cfg.scroll_action = SI_CFG_SCROLL_ACTION_VOLUME;
     
   if ( !bmp_cfg_db_get_bool( cfgfile , "statusicon" ,
        "mw_visib_prevstatus" , &(si_cfg.mw_visib_prevstatus) ) )
@@ -57,6 +61,9 @@
   bmp_cfg_db_set_int( cfgfile , "statusicon" ,
     "rclick_menu" , si_cfg.rclick_menu );
   
+  bmp_cfg_db_set_int( cfgfile , "statusicon" ,
+    "scroll_action" , si_cfg.scroll_action );
+  
   bmp_cfg_db_set_bool( cfgfile , "statusicon" ,
     "mw_visib_prevstatus" , si_cfg.mw_visib_prevstatus );
   bmp_cfg_db_set_bool( cfgfile , "statusicon" ,