comparison src/statusicon/si_cfg.c @ 2124:b8da6a0b0da2

s/bmp_cfg_/aud_cfg_/g
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 24 Oct 2007 07:34:02 +0300
parents 00394f91e3c6
children ced4a5392948
comparison
equal deleted inserted replaced
2123:c349bd73af71 2124:b8da6a0b0da2
27 27
28 28
29 void 29 void
30 si_cfg_load ( void ) 30 si_cfg_load ( void )
31 { 31 {
32 ConfigDb *cfgfile = bmp_cfg_db_open(); 32 ConfigDb *cfgfile = aud_cfg_db_open();
33 33
34 if ( !bmp_cfg_db_get_int( cfgfile , "statusicon" , 34 if ( !aud_cfg_db_get_int( cfgfile , "statusicon" ,
35 "rclick_menu" , &(si_cfg.rclick_menu) ) ) 35 "rclick_menu" , &(si_cfg.rclick_menu) ) )
36 si_cfg.rclick_menu = SI_CFG_RCLICK_MENU_AUD; 36 si_cfg.rclick_menu = SI_CFG_RCLICK_MENU_AUD;
37 37
38 if ( !bmp_cfg_db_get_int( cfgfile , "statusicon" , 38 if ( !aud_cfg_db_get_int( cfgfile , "statusicon" ,
39 "scroll_action" , &(si_cfg.scroll_action) ) ) 39 "scroll_action" , &(si_cfg.scroll_action) ) )
40 si_cfg.scroll_action = SI_CFG_SCROLL_ACTION_VOLUME; 40 si_cfg.scroll_action = SI_CFG_SCROLL_ACTION_VOLUME;
41 41
42 if ( !bmp_cfg_db_get_bool( cfgfile , "statusicon" , 42 if ( !aud_cfg_db_get_bool( cfgfile , "statusicon" ,
43 "mw_visib_prevstatus" , &(si_cfg.mw_visib_prevstatus) ) ) 43 "mw_visib_prevstatus" , &(si_cfg.mw_visib_prevstatus) ) )
44 si_cfg.mw_visib_prevstatus = FALSE; 44 si_cfg.mw_visib_prevstatus = FALSE;
45 if ( !bmp_cfg_db_get_bool( cfgfile , "statusicon" , 45 if ( !aud_cfg_db_get_bool( cfgfile , "statusicon" ,
46 "pw_visib_prevstatus" , &(si_cfg.pw_visib_prevstatus) ) ) 46 "pw_visib_prevstatus" , &(si_cfg.pw_visib_prevstatus) ) )
47 si_cfg.pw_visib_prevstatus = FALSE; 47 si_cfg.pw_visib_prevstatus = FALSE;
48 if ( !bmp_cfg_db_get_bool( cfgfile , "statusicon" , 48 if ( !aud_cfg_db_get_bool( cfgfile , "statusicon" ,
49 "ew_visib_prevstatus" , &(si_cfg.ew_visib_prevstatus) ) ) 49 "ew_visib_prevstatus" , &(si_cfg.ew_visib_prevstatus) ) )
50 si_cfg.ew_visib_prevstatus = FALSE; 50 si_cfg.ew_visib_prevstatus = FALSE;
51 51
52 bmp_cfg_db_close( cfgfile ); 52 aud_cfg_db_close( cfgfile );
53 return; 53 return;
54 } 54 }
55 55
56 56
57 void 57 void
58 si_cfg_save ( void ) 58 si_cfg_save ( void )
59 { 59 {
60 ConfigDb *cfgfile = bmp_cfg_db_open(); 60 ConfigDb *cfgfile = aud_cfg_db_open();
61 61
62 bmp_cfg_db_set_int( cfgfile , "statusicon" , 62 aud_cfg_db_set_int( cfgfile , "statusicon" ,
63 "rclick_menu" , si_cfg.rclick_menu ); 63 "rclick_menu" , si_cfg.rclick_menu );
64 64
65 bmp_cfg_db_set_int( cfgfile , "statusicon" , 65 aud_cfg_db_set_int( cfgfile , "statusicon" ,
66 "scroll_action" , si_cfg.scroll_action ); 66 "scroll_action" , si_cfg.scroll_action );
67 67
68 bmp_cfg_db_set_bool( cfgfile , "statusicon" , 68 aud_cfg_db_set_bool( cfgfile , "statusicon" ,
69 "mw_visib_prevstatus" , si_cfg.mw_visib_prevstatus ); 69 "mw_visib_prevstatus" , si_cfg.mw_visib_prevstatus );
70 bmp_cfg_db_set_bool( cfgfile , "statusicon" , 70 aud_cfg_db_set_bool( cfgfile , "statusicon" ,
71 "pw_visib_prevstatus" , si_cfg.pw_visib_prevstatus ); 71 "pw_visib_prevstatus" , si_cfg.pw_visib_prevstatus );
72 bmp_cfg_db_set_bool( cfgfile , "statusicon" , 72 aud_cfg_db_set_bool( cfgfile , "statusicon" ,
73 "ew_visib_prevstatus" , si_cfg.ew_visib_prevstatus ); 73 "ew_visib_prevstatus" , si_cfg.ew_visib_prevstatus );
74 74
75 bmp_cfg_db_close( cfgfile ); 75 aud_cfg_db_close( cfgfile );
76 return; 76 return;
77 } 77 }