Remove plugin window on /close

This commit is contained in:
James Booth
2016-07-12 02:16:12 +01:00
parent 1a7eb00763
commit 5f393a6d9f
11 changed files with 28 additions and 7 deletions

View File

@@ -220,6 +220,16 @@ callbacks_win_exists(const char *const plugin_name, const char *tag)
return FALSE;
}
void
callbacks_remove_win(const char *const plugin_name, const char *const tag)
{
GHashTable *window_callbacks = g_hash_table_lookup(p_window_callbacks, plugin_name);
if (window_callbacks) {
g_hash_table_remove(window_callbacks, tag);
}
}
void
callbacks_add_window_handler(const char *const plugin_name, const char *tag, PluginWindowCallback *window_callback)
{