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

Only accept editing keybindings when the current Scintilla widget

has focus.
Group editing keybindings together in cb_func_edit.
Change keybinding callbacks to pass keybinding index as an argument.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@935 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 6146cc93
2006-10-26 Nick Treleaven <nick.treleaven@btinternet.com>
* src/keybindings.c, src/keybindings.h:
Only accept editing keybindings when the current Scintilla widget
has focus.
Group editing keybindings together in cb_func_edit.
Change keybinding callbacks to pass keybinding index as an argument.
2006-10-25 Nick Treleaven <nick.treleaven@btinternet.com>
* src/document.c:
......
This diff is collapsed.
......@@ -24,6 +24,8 @@
#ifndef GEANY_KEYBINDINGS_H
#define GEANY_KEYBINDINGS_H 1
typedef void (*KBCallback) (guint key_id);
// holds all user-definable key bindings
typedef struct binding
{
......@@ -35,7 +37,7 @@ typedef struct binding
const gchar *label;
// function pointer to a callback function, just to keep the code in keypress event
// callback function clear
void (*cb_func) (void);
KBCallback cb_func;
} binding;
......
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