2
* gsm-keyfile.h: extensions to GKeyFile
3
* Based on code I wrote for gnome-panel
5
* Copyright (C) 2007 Vincent Untz <vuntz@gnome.org>
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License as
9
* published by the Free Software Foundation; either version 2 of the
10
* License, or (at your option) any later version.
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
23
* Vincent Untz <vuntz@gnome.org>
29
#include <glib/gkeyfile.h>
33
GKeyFile *gsm_key_file_new_desktop (void);
34
gboolean gsm_key_file_to_file (GKeyFile *keyfile,
37
gboolean gsm_key_file_get_boolean (GKeyFile *keyfile,
39
gboolean default_value);
40
#define gsm_key_file_get_string(key_file, key) \
41
g_key_file_get_string (key_file, "Desktop Entry", key, NULL)
42
#define gsm_key_file_get_locale_string(key_file, key) \
43
g_key_file_get_locale_string(key_file, "Desktop Entry", key, NULL, NULL)
44
#define gsm_key_file_get_string_list(key_file, key) \
45
g_key_file_get_string_list (key_file, "Desktop Entry", key, NULL, NULL)
46
#define gsm_key_file_set_boolean(key_file, key, value) \
47
g_key_file_set_boolean (key_file, "Desktop Entry", key, value)
48
#define gsm_key_file_set_string(key_file, key, value) \
49
g_key_file_set_string (key_file, "Desktop Entry", key, value)
50
void gsm_key_file_set_locale_string (GKeyFile *keyfile,
53
#define gsm_key_file_remove_key(key_file, key) \
54
g_key_file_remove_key (key_file, "Desktop Entry", key, NULL)
55
void gsm_key_file_remove_locale_key (GKeyFile *keyfile,
57
void gsm_key_file_remove_all_locale_key (GKeyFile *keyfile,
60
char *gsm_key_file_make_exec_uri (const char *exec);
64
#endif /* GSM_KEYFILE_H */