6f87aac118
* Always define GEANY_FOO_H to 1 in the header guards * Always put a G_BEGIN_DECLS/G_END_DECLS guard in every header for consistency, even private ones where it doesn't matter. * Always include either <glib.h>, <gtk/gtk.h> or some other header that will provide G_BEGIN_DECLS before using it. In a lot of headers that use glib.h and gtk/gtk.h stuff anyway, this resolves an implicit dependency they had on them being included before that header. * Always put a comment at the #endif part of the guard so it's easier to see what it applies to. * Always use an underscore between the header guard identifier's words even though the filename doesn't have one.
64 lines
1.9 KiB
C
64 lines
1.9 KiB
C
/*
|
|
* keyfile.h - this file is part of Geany, a fast and lightweight IDE
|
|
*
|
|
* Copyright 2005-2012 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
|
* Copyright 2006-2012 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
|
*
|
|
* 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, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
|
|
|
|
#ifndef GEANY_KEYFILE_H
|
|
#define GEANY_KEYFILE_H 1
|
|
|
|
#include <glib.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
extern GPtrArray *pref_groups;
|
|
|
|
|
|
void configuration_init(void);
|
|
|
|
void configuration_finalize(void);
|
|
|
|
struct StashGroup;
|
|
|
|
void configuration_add_pref_group(struct StashGroup *group, gboolean for_prefs_dialog);
|
|
|
|
void configuration_add_various_pref_group(struct StashGroup *group);
|
|
|
|
void configuration_save(void);
|
|
|
|
gboolean configuration_load(void);
|
|
|
|
void configuration_open_files(void);
|
|
|
|
void configuration_reload_default_session(void);
|
|
|
|
void configuration_save_default_session(void);
|
|
|
|
void configuration_load_session_files(GKeyFile *config, gboolean read_recent_files);
|
|
|
|
void configuration_save_session_files(GKeyFile *config);
|
|
|
|
/* set some settings which are already read from the config file, but need other things, like the
|
|
* realisation of the main window */
|
|
void configuration_apply_settings(void);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* GEANY_KEYFILE_H */
|