Add debug message if plugin has not set a name for its keybinding

group.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3891 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2009-06-23 12:51:16 +00:00
parent 0a65df77d1
commit e3edfba0cd
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2009-06-23 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/plugins.c:
Add debug message if plugin has not set a name for its keybinding
group.
2009-06-22 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/highlighting.c, doc/geany.txt, doc/geany.html,

View File

@ -484,7 +484,13 @@ add_kb_group(Plugin *plugin)
{
guint i;
g_return_if_fail(NZV(plugin->key_group->name));
if (!NZV(plugin->key_group->name))
{
geany_debug("Plugin \"%s\" has not set a name for its keybinding group"
" - ignoring all keybindings!",
plugin->info.name);
return;
}
g_return_if_fail(! g_str_equal(plugin->key_group->name, keybindings_keyfile_group_name));
for (i = 0; i < plugin->key_group->count; i++)