Kaydet (Commit) a51962e6 authored tarafından Nick Treleaven's avatar Nick Treleaven

Avoid including keybindings.h.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2320 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 824a0508
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
does nothing). does nothing).
* src/keybindings.c, src/keybindings.h, src/plugindata.h: * src/keybindings.c, src/keybindings.h, src/plugindata.h:
Make keybindings_send_command() take guint parameters, not gint. 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> 2008-03-07 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
......
...@@ -22,12 +22,6 @@ ...@@ -22,12 +22,6 @@
* $Id$ * $Id$
*/ */
#ifndef PLUGIN_H
#define PLUGIN_H
#include "keybindings.h" /* needed for KeyCallback typedef */
/** /**
* @file plugindata.h * @file plugindata.h
* This file defines the plugin API, the interface between Geany and its plugins. * This file defines the plugin API, the interface between Geany and its plugins.
...@@ -36,6 +30,9 @@ ...@@ -36,6 +30,9 @@
**/ **/
#ifndef PLUGIN_H
#define PLUGIN_H
/* The API version should be incremented whenever any plugin data types below are /* The API version should be incremented whenever any plugin data types below are
* modified or appended to. */ * modified or appended to. */
static const gint api_version = 48; static const gint api_version = 48;
...@@ -332,11 +329,14 @@ typedef struct EncodingFuncs ...@@ -332,11 +329,14 @@ typedef struct EncodingFuncs
EncodingFuncs; EncodingFuncs;
struct KeyBindingGroup;
typedef void (*_KeyCallback) (guint key_id);
typedef struct KeybindingFuncs typedef struct KeybindingFuncs
{ {
void (*send_command) (guint group_id, guint key_id); void (*send_command) (guint group_id, guint key_id);
void (*set_item) (struct KeyBindingGroup *group, gsize 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); const gchar *name, const gchar *label, GtkWidget *menu_item);
} }
KeybindingFuncs; KeybindingFuncs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment