# HG changeset patch # User giacomo # Date 1173887990 25200 # Node ID bad7c89d7ba0a6da8bd3c205f3165b649e3bc6ce # Parent a5f4472faa6bd059cc7325d6923a80440ae09cb6 [svn] statusicon: add missing files diff -r a5f4472faa6b -r bad7c89d7ba0 ChangeLog --- a/ChangeLog Wed Mar 14 08:58:24 2007 -0700 +++ b/ChangeLog Wed Mar 14 08:59:50 2007 -0700 @@ -1,3 +1,11 @@ +2007-03-14 15:58:24 +0000 Yoshiki Yazawa + revision [1812] + - couldn't disable statusicon. + + trunk/configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + + 2007-03-14 14:50:31 +0000 Giacomo Lozito revision [1810] statusicon: added a open-file item in the small right-click menu diff -r a5f4472faa6b -r bad7c89d7ba0 src/statusicon/si_cfg.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/statusicon/si_cfg.c Wed Mar 14 08:59:50 2007 -0700 @@ -0,0 +1,52 @@ +/* +* +* Author: Giacomo Lozito , (C) 2005-2007 +* +* This program is free software; you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation; either version 2 of the License, or (at your +* option) any later version. +* +* This program is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* General Public License for more details. +* +* You should have received a copy of the GNU General Public License along +* with this program; if not, write to the Free Software Foundation, Inc., +* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +* +*/ + +#include "si_cfg.h" +#include "si_common.h" +#include + +si_cfg_t si_cfg; + + +void +si_cfg_load ( void ) +{ + ConfigDb *cfgfile = bmp_cfg_db_open(); + + if ( !bmp_cfg_db_get_int( cfgfile , "statusicon" , + "rclick_menu" , &(si_cfg.rclick_menu) ) ) + si_cfg.rclick_menu = SI_CFG_RCLICK_MENU_AUD; + + bmp_cfg_db_close( cfgfile ); + return; +} + + +void +si_cfg_save ( void ) +{ + ConfigDb *cfgfile = bmp_cfg_db_open(); + + bmp_cfg_db_set_int( cfgfile , "statusicon" , + "rclick_menu" , si_cfg.rclick_menu ); + + bmp_cfg_db_close( cfgfile ); + return; +} diff -r a5f4472faa6b -r bad7c89d7ba0 src/statusicon/si_cfg.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/statusicon/si_cfg.h Wed Mar 14 08:59:50 2007 -0700 @@ -0,0 +1,41 @@ +/* +* +* Author: Giacomo Lozito , (C) 2005-2007 +* +* This program is free software; you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation; either version 2 of the License, or (at your +* option) any later version. +* +* This program is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* General Public License for more details. +* +* You should have received a copy of the GNU General Public License along +* with this program; if not, write to the Free Software Foundation, Inc., +* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +* +*/ + +#ifndef _I_SI_CFG_H +#define _I_SI_CFG_H 1 + +#include "si_common.h" +#include + + +#define SI_CFG_RCLICK_MENU_AUD 0 +#define SI_CFG_RCLICK_MENU_SMALL 1 + +typedef struct +{ + gint rclick_menu; +} +si_cfg_t; + +void si_cfg_load ( void ); +void si_cfg_save ( void ); + + +#endif /* !_I_SI_CFG_H */