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

Make keybindings_send_command() take guint parameters, not gint.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2319 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 5f43e01f
......@@ -7,6 +7,8 @@
Rename KBCallback, cmd_id, cb_func with clearer names.
Add KeyBinding::menu_item field for setting accelerators (currently
does nothing).
* src/keybindings.c, src/keybindings.h, src/plugindata.h:
Make keybindings_send_command() take guint parameters, not gint.
2008-03-07 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
......
......@@ -928,7 +928,7 @@ KeyBinding *keybindings_lookup_item(guint group_id, guint key_id)
* Example: @code keybindings_send_command(GEANY_KEYGROUP_FILE, GEANY_KEYS_MENU_OPEN); @endcode
* @param group_id The index for the key group that contains the @a key_id keybinding.
* @param key_id The keybinding command index. */
void keybindings_send_command(gint group_id, gint key_id)
void keybindings_send_command(guint group_id, guint key_id)
{
KeyBinding *kb;
......
......@@ -258,7 +258,7 @@ void keybindings_set_item(KeyBindingGroup *group, gsize key_id,
KeyCallback callback, guint key, GdkModifierType mod,
const gchar *name, const gchar *label, GtkWidget *menu_item);
void keybindings_send_command(gint group_id, gint key_id);
void keybindings_send_command(guint group_id, guint key_id);
KeyBinding *keybindings_lookup_item(guint group_id, guint key_id);
......
......@@ -38,7 +38,7 @@
/* The API version should be incremented whenever any plugin data types below are
* modified or appended to. */
static const gint api_version = 47;
static const gint api_version = 48;
/* The ABI version should be incremented whenever existing fields in the plugin
* data types below have to be changed or reordered. It should stay the same if fields
......@@ -334,7 +334,7 @@ EncodingFuncs;
typedef struct KeybindingFuncs
{
void (*send_command) (gint group_id, gint key_id);
void (*send_command) (guint group_id, guint key_id);
void (*set_item) (struct KeyBindingGroup *group, gsize key_id,
KeyCallback callback, guint key, GdkModifierType mod,
const gchar *name, const gchar *label, GtkWidget *menu_item);
......
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