Revision: 2198 http://geany.svn.sourceforge.net/geany/?rev=2198&view=rev Author: ntrel Date: 2008-01-29 08:11:18 -0800 (Tue, 29 Jan 2008)
Log Message: ----------- Rename binding type KeyBinding.
Modified Paths: -------------- trunk/ChangeLog trunk/src/keybindings.c trunk/src/keybindings.h
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-01-29 13:17:01 UTC (rev 2197) +++ trunk/ChangeLog 2008-01-29 16:11:18 UTC (rev 2198) @@ -3,6 +3,8 @@ * src/search.c: Allow case sensitive replace when the replace string varies only in case. + * src/keybindings.c, src/keybindings.h: + Rename binding type KeyBinding.
2008-01-28 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/keybindings.c =================================================================== --- trunk/src/keybindings.c 2008-01-29 13:17:01 UTC (rev 2197) +++ trunk/src/keybindings.c 2008-01-29 16:11:18 UTC (rev 2198) @@ -50,7 +50,7 @@
/* simple convenience function to allocate and fill the struct */ -static binding *fill(KBCallback func, guint key, GdkModifierType mod, const gchar *name, +static KeyBinding *fill(KBCallback func, guint key, GdkModifierType mod, const gchar *name, const gchar *label);
static void cb_func_file_action(guint key_id); @@ -775,12 +775,12 @@
/* simple convenience function to allocate and fill the struct */ -static binding *fill(KBCallback func, guint key, GdkModifierType mod, const gchar *name, +static KeyBinding *fill(KBCallback func, guint key, GdkModifierType mod, const gchar *name, const gchar *label) { - binding *result; + KeyBinding *result;
- result = g_new0(binding, 1); + result = g_new0(KeyBinding, 1); result->name = name; result->label = label; result->key = key;
Modified: trunk/src/keybindings.h =================================================================== --- trunk/src/keybindings.h 2008-01-29 13:17:01 UTC (rev 2197) +++ trunk/src/keybindings.h 2008-01-29 16:11:18 UTC (rev 2198) @@ -28,7 +28,7 @@ typedef void (*KBCallback) (guint key_id);
// holds all user-definable key bindings -typedef struct binding +typedef struct KeyBinding { guint key; GdkModifierType mods; @@ -42,7 +42,7 @@ // string to use as a section name in the preferences dialog in keybinding treeview as well as // in the keybinding help dialog, set only for the first binding in the section gchar *section; -} binding; +} KeyBinding;
// Plugin API @@ -177,7 +177,7 @@ } GeanyKeyCommand;
-binding *keys[GEANY_MAX_KEYS]; +KeyBinding *keys[GEANY_MAX_KEYS];
void keybindings_init(void);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.