Re-enable SIGTERM handling
[geany-mirror.git] / src / keyfile.h
blob717ba9dbd001e22d225562b73a351165fc67cf9e
1 /*
2 * keyfile.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2005-2012 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5 * Copyright 2006-2012 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef GEANY_KEYFILE_H
24 #define GEANY_KEYFILE_H 1
26 #include <glib.h>
28 G_BEGIN_DECLS
30 extern GPtrArray *pref_groups;
33 void configuration_init(void);
35 void configuration_finalize(void);
37 struct StashGroup;
39 void configuration_add_pref_group(struct StashGroup *group, gboolean for_prefs_dialog);
41 void configuration_add_various_pref_group(struct StashGroup *group);
43 void configuration_save(void);
45 gboolean configuration_load(void);
47 void configuration_open_files(void);
49 void configuration_reload_default_session(void);
51 void configuration_save_default_session(void);
53 void configuration_clear_default_session(void);
55 void configuration_load_session_files(GKeyFile *config, gboolean read_recent_files);
57 void configuration_save_session_files(GKeyFile *config);
59 /* set some settings which are already read from the config file, but need other things, like the
60 * realisation of the main window */
61 void configuration_apply_settings(void);
63 G_END_DECLS
65 #endif /* GEANY_KEYFILE_H */