[libpeas/proxys: 15/24] [PeasEngine] make provides_extension() handle inactive plugins.
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas/proxys: 15/24] [PeasEngine] make provides_extension() handle inactive plugins.
- Date: Sun, 23 May 2010 14:01:41 +0000 (UTC)
commit 8f60246f756bac099fc49a836916002f94b1f1db
Author: Steve Frécinaux <code istique net>
Date: Wed May 19 20:17:10 2010 +0200
[PeasEngine] make provides_extension() handle inactive plugins.
We used to just try and see if the plugin module provides an
extension... even if the module was not active.
libpeas/peas-engine.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libpeas/peas-engine.c b/libpeas/peas-engine.c
index 4b3279a..d88b2ab 100644
--- a/libpeas/peas-engine.c
+++ b/libpeas/peas-engine.c
@@ -738,6 +738,9 @@ peas_engine_provides_extension (PeasEngine *engine,
g_return_val_if_fail (PEAS_IS_ENGINE (engine), FALSE);
g_return_val_if_fail (info != NULL, FALSE);
+ if (!peas_plugin_info_is_active (info))
+ return FALSE;
+
loader = get_plugin_loader (engine, info);
return peas_plugin_loader_provides_extension (loader, info, extension_type);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]