1
/* $Id: xfsm-splash-rc.c 4711 2004-11-01 16:10:55Z benny $ */
3
* Copyright (c) 2003-2004 Benedikt Meurer <benny@xfce.org>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2, or (at your option)
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
26
#include <libxfsm/xfsm-splash-rc.h>
37
xfsm_splash_rc_new (XfceRc *rc,
40
XfsmSplashRc *splash_rc;
42
splash_rc = g_new (XfsmSplashRc, 1);
43
splash_rc->group = g_strdup (group);
51
xfsm_splash_rc_read_entry (XfsmSplashRc *splash_rc,
53
const gchar *fallback)
55
xfce_rc_set_group (splash_rc->rc, splash_rc->group);
56
return xfce_rc_read_entry (splash_rc->rc, key, fallback);
61
xfsm_splash_rc_read_int_entry (XfsmSplashRc *splash_rc,
65
xfce_rc_set_group (splash_rc->rc, splash_rc->group);
66
return xfce_rc_read_int_entry (splash_rc->rc, key, fallback);
71
xfsm_splash_rc_read_bool_entry (XfsmSplashRc *splash_rc,
75
xfce_rc_set_group (splash_rc->rc, splash_rc->group);
76
return xfce_rc_read_bool_entry (splash_rc->rc, key, fallback);
81
xfsm_splash_rc_read_list_entry (XfsmSplashRc *splash_rc,
83
const gchar *delimiter)
85
xfce_rc_set_group (splash_rc->rc, splash_rc->group);
86
return xfce_rc_read_list_entry (splash_rc->rc, key, delimiter);
91
xfsm_splash_rc_write_entry (XfsmSplashRc *splash_rc,
95
xfce_rc_set_group (splash_rc->rc, splash_rc->group);
96
xfce_rc_write_entry (splash_rc->rc, key, value);
101
xfsm_splash_rc_write_int_entry (XfsmSplashRc *splash_rc,
105
xfce_rc_set_group (splash_rc->rc, splash_rc->group);
106
xfce_rc_write_int_entry (splash_rc->rc, key, value);
111
xfsm_splash_rc_write_bool_entry (XfsmSplashRc *splash_rc,
115
xfce_rc_set_group (splash_rc->rc, splash_rc->group);
116
xfce_rc_write_bool_entry (splash_rc->rc, key, value);
121
xfsm_splash_rc_write_list_entry (XfsmSplashRc *splash_rc,
124
const gchar *delimiter)
126
xfce_rc_set_group (splash_rc->rc, splash_rc->group);
127
xfce_rc_write_list_entry (splash_rc->rc, key, value, delimiter);
132
xfsm_splash_rc_free (XfsmSplashRc *splash_rc)
134
g_free (splash_rc->group);