Updating branch refs/heads/master to 071acfe9893612c7a498029993e311fa358b61c5 (commit) from 01bf90e358e4580553d6a0d6cd03cc825c291e60 (commit)
commit 071acfe9893612c7a498029993e311fa358b61c5 Author: Simon Steinbeiss <simon.steinbe...@elfenbeinturm.at> Date: Sat Sep 21 01:54:54 2013 +0200 Add a dummy-test to see whether plugin-loading fails src/parole-plugins-manager.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/parole-plugins-manager.c b/src/parole-plugins-manager.c index ee4a6c0..bef4b80 100644 --- a/src/parole-plugins-manager.c +++ b/src/parole-plugins-manager.c @@ -269,8 +269,14 @@ parole_plugins_manager_cell_toggled_cb (GtkCellRendererToggle *cell_renderer, { if ( active ) { - g_type_module_use (G_TYPE_MODULE (module)); - parole_provider_module_new_plugin (module); + if (g_type_module_use (G_TYPE_MODULE (module))) + parole_provider_module_new_plugin (module); + else + { + g_warning("Failed to load plugin."); + parole_provider_module_free_plugin (module); + g_type_module_unuse (G_TYPE_MODULE (module)); + } } else { _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits