mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 10:26:21 +00:00
Remove plugin window on /close
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user