Avoid including keybindings.h.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2320 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2008-03-10 13:35:30 +00:00
parent 824a05083f
commit a51962e6a5
2 changed files with 9 additions and 7 deletions

View File

@ -9,6 +9,8 @@
does nothing).
* src/keybindings.c, src/keybindings.h, src/plugindata.h:
Make keybindings_send_command() take guint parameters, not gint.
* src/plugindata.h:
Avoid including keybindings.h.
2008-03-07 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>

View File

@ -22,12 +22,6 @@
* $Id$
*/
#ifndef PLUGIN_H
#define PLUGIN_H
#include "keybindings.h" /* needed for KeyCallback typedef */
/**
* @file plugindata.h
* This file defines the plugin API, the interface between Geany and its plugins.
@ -36,6 +30,9 @@
**/
#ifndef PLUGIN_H
#define PLUGIN_H
/* The API version should be incremented whenever any plugin data types below are
* modified or appended to. */
static const gint api_version = 48;
@ -332,11 +329,14 @@ typedef struct EncodingFuncs
EncodingFuncs;
struct KeyBindingGroup;
typedef void (*_KeyCallback) (guint key_id);
typedef struct KeybindingFuncs
{
void (*send_command) (guint group_id, guint key_id);
void (*set_item) (struct KeyBindingGroup *group, gsize key_id,
KeyCallback callback, guint key, GdkModifierType mod,
_KeyCallback callback, guint key, GdkModifierType mod,
const gchar *name, const gchar *label, GtkWidget *menu_item);
}
KeybindingFuncs;