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:
parent
0a65df77d1
commit
e3edfba0cd
@ -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,
|
||||
|
@ -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++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user