The unload-plugin signal is emitted when a plugin is being unloaded.
The plugin is being unloaded in the default handler. Hence, if you want
to perform some action before the plugin is unloaded (the most common
case), you should use g_signal_connect(), but if you want to perform some
action after the plugin is unloaded (the most common case), you should
use g_signal_connect_after().
The unload-plugin signal is emitted when a plugin is being unloaded.
The plugin is being unloaded in the default handler. Hence, if you want to perform some action before the plugin is unloaded (the most common case), you should use g_signal_connect(), but if you want to perform some action after the plugin is unloaded (the most common case), you should use g_signal_connect_after().