[evolution/gnome-2-28] Bug #602827 - Disable broken plugins automatically
- From: Milan Crha <mcrha src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution/gnome-2-28] Bug #602827 - Disable broken plugins automatically
- Date: Tue, 19 Jan 2010 15:21:17 +0000 (UTC)
commit 2a2132e7726b6c251869a49351d912e40cb1cdbe
Author: Milan Crha <mcrha redhat com>
Date: Tue Jan 19 16:20:47 2010 +0100
Bug #602827 - Disable broken plugins automatically
e-util/e-plugin.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-plugin.c b/e-util/e-plugin.c
index 3b3d5d2..984bd41 100644
--- a/e-util/e-plugin.c
+++ b/e-util/e-plugin.c
@@ -998,9 +998,10 @@ epl_loadmodule(EPlugin *ep, gboolean fatal)
return 0;
if ((epl->module = g_module_open(epl->location, 0)) == NULL) {
- if (fatal)
+ if (fatal) {
g_warning("can't load plugin '%s': %s", epl->location, g_module_error());
- else
+ ep->enabled = FALSE;
+ } else
missing_symbols = g_list_prepend (missing_symbols, g_object_ref (ep));
return -1;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]