Hi,
Currently, plugin_signal_connect() does not check if a signal is successfully connected before adding it to the list of signals to be disconnected when the plugin is unloaded. How about making such a check? Attempting to disconnect signal id 0 only produces an assertion message, and we already have a more informative warning displayed from g_signal_connect().