gboolean pluma_plugins_engine_deactivate_plugin (PlumaPluginsEngine *engine, PlumaPluginInfo *info) { pluma_debug (DEBUG_PLUGINS); g_return_val_if_fail (info != NULL, FALSE); if (!pluma_plugin_info_is_active (info)) return TRUE; g_signal_emit (engine, signals[DEACTIVATE_PLUGIN], 0, info); if (!pluma_plugin_info_is_active (info)) save_active_plugin_list (engine); return !pluma_plugin_info_is_active (info); }
gboolean xed_plugins_engine_activate_plugin (XedPluginsEngine *engine, XedPluginInfo *info) { xed_debug (DEBUG_PLUGINS); g_return_val_if_fail (info != NULL, FALSE); if (!xed_plugin_info_is_available (info)) return FALSE; if (xed_plugin_info_is_active (info)) return TRUE; g_signal_emit (engine, signals[ACTIVATE_PLUGIN], 0, info); if (xed_plugin_info_is_active (info)) save_active_plugin_list (engine); return xed_plugin_info_is_active (info); }