File: panel-keyfile.h

package info (click to toggle)
gnome-panel 3.58.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 29,616 kB
  • sloc: ansic: 74,929; sh: 5,496; xml: 2,760; makefile: 1,368; sed: 39; python: 3
file content (55 lines) | stat: -rw-r--r-- 1,956 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
 * panel-keyfile.h: GKeyFile extensions
 *
 * Copyright (C) 2008 Novell, Inc.
 *
 * Based on code from panel-util.h (there was no copyright header at the time)
 *
 * 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, see <http://www.gnu.org/licenses/>.
 *
 * Authors:
 *	Vincent Untz <vuntz@gnome.org>
 */

#ifndef PANEL_KEYFILE_H
#define PANEL_KEYFILE_H

#include "glib.h"

G_BEGIN_DECLS

GKeyFile *panel_key_file_new_desktop  (void);
gboolean  panel_key_file_to_file      (GKeyFile       *keyfile,
				       const gchar    *file,
				       GError        **error);

gboolean panel_key_file_get_boolean   (GKeyFile       *keyfile,
				       const gchar    *key,
				       gboolean        default_value);
#define panel_key_file_get_string(key_file, key) \
	 g_key_file_get_string (key_file, G_KEY_FILE_DESKTOP_GROUP, key, NULL)
#define panel_key_file_get_locale_string(key_file, key) \
	 g_key_file_get_locale_string(key_file, G_KEY_FILE_DESKTOP_GROUP, key, NULL, NULL)

#define panel_key_file_set_boolean(key_file, key, value) \
	 g_key_file_set_boolean (key_file, G_KEY_FILE_DESKTOP_GROUP, key, value)
#define panel_key_file_set_string(key_file, key, value) \
	 g_key_file_set_string (key_file, G_KEY_FILE_DESKTOP_GROUP, key, value)
void    panel_key_file_set_locale_string (GKeyFile    *keyfile,
					  const gchar *key,
					  const gchar *value);

G_END_DECLS

#endif /* PANEL_KEYFILE_H */