Merge pull request #1133 from techee/readme_rst
[geany-mirror.git] / src / keybindingsprivate.h
blobbcbb0d6672783c5226853de72489a9caca184889
1 /*
2 * keybindingsprivate.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2006-2014 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5 * Copyright 2006-2014 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
6 * Copyright 2014 Matthew Brush <matt@geany.org>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef GEANY_KEYBINDINGS_PRIVATE_H
24 #define GEANY_KEYBINDINGS_PRIVATE_H 1
26 #include "keybindings.h"
28 #include <glib.h>
30 G_BEGIN_DECLS
32 struct GeanyKeyGroup
34 const gchar *name; /* Group name used in the configuration file, such as @c "html_chars" */
35 const gchar *label; /* Group label used in the preferences dialog keybindings tab */
36 GeanyKeyGroupCallback callback; /* use this or individual keybinding callbacks */
37 gboolean plugin; /* used by plugin */
38 GPtrArray *key_items; /* pointers to GeanyKeyBinding structs */
39 gsize plugin_key_count; /* number of keybindings the group holds */
40 GeanyKeyBinding *plugin_keys; /* array of GeanyKeyBinding structs */
41 GeanyKeyGroupFunc cb_func; /* use this or individual keybinding callbacks (new style) */
42 gpointer cb_data;
43 GDestroyNotify cb_data_destroy; /* used to destroy handler_data */
46 G_END_DECLS
48 #endif /* GEANY_KEYBINDINGS_PRIVATE_H */