Fix popup position on a wrapping corner case
[geany-mirror.git] / src / keyfile.h
blobddffb34022ac1ee225f7e309e648a7731ae6719f
1 /*
2 * keyfile.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2005 The Geany contributors
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 of the License, or
9 * (at your option) any later version.
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 along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef GEANY_KEYFILE_H
23 #define GEANY_KEYFILE_H 1
25 #include <glib.h>
27 G_BEGIN_DECLS
29 extern GPtrArray *pref_groups;
32 void configuration_init(void);
34 void configuration_finalize(void);
36 struct StashGroup;
38 void configuration_add_pref_group(struct StashGroup *group, gboolean for_prefs_dialog);
40 void configuration_add_various_pref_group(struct StashGroup *group,
41 const gchar *prefix);
43 void configuration_add_session_group(struct StashGroup *group, gboolean for_prefs_dialog);
45 void configuration_save(void);
47 gboolean configuration_load(void);
49 void configuration_open_files(GPtrArray *session_files);
51 void configuration_load_default_session(void);
53 void configuration_open_default_session(void);
55 void configuration_save_default_session(void);
57 void configuration_clear_default_session(void);
59 GPtrArray *configuration_load_session_files(GKeyFile *config);
61 void configuration_save_session_files(GKeyFile *config);
63 /* set some settings which are already read from the config file, but need other things, like the
64 * realisation of the main window */
65 void configuration_apply_settings(void);
67 G_END_DECLS
69 #endif /* GEANY_KEYFILE_H */