[libpeas] [PeasEngine] Kill the "base module dir" property.
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] [PeasEngine] Kill the "base module dir" property.
- Date: Tue, 17 Aug 2010 00:15:47 +0000 (UTC)
commit e7609429f7b983c438bf6c5355d5b880240c5c2e
Author: Steve Frécinaux <code istique net>
Date: Tue Aug 17 02:12:46 2010 +0200
[PeasEngine] Kill the "base module dir" property.
This property was useful to tell libpeas where to find legacy bindings
for the application (like pygtk-style bindings), but it's totally
useless and unused as of today: custom binding modules should be made
available through the overrides capabilities of bindings.
This commit changes the API of peas_engine_new()
libpeas/peas-engine.c | 38 --------------------------------------
libpeas/peas-engine.h | 1 -
peas-demo/peas-demo.c | 1 -
3 files changed, 0 insertions(+), 40 deletions(-)
---
diff --git a/libpeas/peas-engine.c b/libpeas/peas-engine.c
index e33c158..57c6b84 100644
--- a/libpeas/peas-engine.c
+++ b/libpeas/peas-engine.c
@@ -70,7 +70,6 @@ static guint signals[LAST_SIGNAL];
enum {
PROP_0,
PROP_APP_NAME,
- PROP_BASE_MODULE_DIR,
PROP_SEARCH_PATHS,
PROP_PLUGIN_LIST,
PROP_LOADED_PLUGINS
@@ -85,7 +84,6 @@ struct _LoaderInfo {
struct _PeasEnginePrivate {
gchar *app_name;
- gchar *base_module_dir;
gchar **search_paths;
GList *plugin_list;
@@ -313,9 +311,6 @@ peas_engine_set_property (GObject *object,
case PROP_APP_NAME:
engine->priv->app_name = g_value_dup_string (value);
break;
- case PROP_BASE_MODULE_DIR:
- engine->priv->base_module_dir = g_value_dup_string (value);
- break;
case PROP_SEARCH_PATHS:
engine->priv->search_paths = g_value_dup_boxed (value);
break;
@@ -342,9 +337,6 @@ peas_engine_get_property (GObject *object,
case PROP_APP_NAME:
g_value_set_string (value, engine->priv->app_name);
break;
- case PROP_BASE_MODULE_DIR:
- g_value_set_string (value, engine->priv->base_module_dir);
- break;
case PROP_SEARCH_PATHS:
g_value_set_boxed (value, engine->priv->search_paths);
break;
@@ -387,7 +379,6 @@ peas_engine_finalize (GObject *object)
g_list_free (engine->priv->plugin_list);
g_strfreev (engine->priv->search_paths);
g_free (engine->priv->app_name);
- g_free (engine->priv->base_module_dir);
G_OBJECT_CLASS (peas_engine_parent_class)->finalize (object);
}
@@ -427,25 +418,6 @@ peas_engine_class_init (PeasEngineClass *klass)
G_PARAM_STATIC_STRINGS));
/**
- * PeasEngine:base-module-dir:
- *
- * The base application directory for binding modules lookup.
- *
- * Each loader module will load its modules from a subdirectory of
- * the base module directory. For instance, the python loader will
- * look for python modules in "${base-module-dir}/python/".
- */
- g_object_class_install_property (object_class,
- PROP_BASE_MODULE_DIR,
- g_param_spec_string ("base-module-dir",
- "Base module dir",
- "The base application dir for binding modules lookup",
- NULL,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
-
- /**
* PeasEngine:search-paths:
*
* The list of path where to look for plugins.
@@ -663,12 +635,6 @@ load_plugin_loader (PeasEngine *engine,
module = NULL;
loader = NULL;
}
- else
- {
- gchar *module_dir = g_build_filename (engine->priv->base_module_dir, loader_id, NULL);
- peas_plugin_loader_add_module_directory (loader, module_dir);
- g_free (module_dir);
- }
g_type_module_unuse (G_TYPE_MODULE (module));
@@ -1152,7 +1118,6 @@ peas_engine_set_loaded_plugins (PeasEngine *engine,
/**
* peas_engine_new:
* @app_name: (allow-none): The name of the application
- * @base_module_dir: The base directory for language modules
* @search_paths: The paths where to look for plugins
*
* Returns a new #PeasEngine object.
@@ -1162,15 +1127,12 @@ peas_engine_set_loaded_plugins (PeasEngine *engine,
*/
PeasEngine *
peas_engine_new (const gchar *app_name,
- const gchar *base_module_dir,
const gchar **search_paths)
{
- g_return_val_if_fail (base_module_dir != NULL, NULL);
g_return_val_if_fail (search_paths != NULL, NULL);
return PEAS_ENGINE (g_object_new (PEAS_TYPE_ENGINE,
"app-name", app_name,
- "base-module-dir", base_module_dir,
"search-paths", search_paths,
NULL));
}
diff --git a/libpeas/peas-engine.h b/libpeas/peas-engine.h
index 5e32d98..2288ba7 100644
--- a/libpeas/peas-engine.h
+++ b/libpeas/peas-engine.h
@@ -69,7 +69,6 @@ struct _PeasEngineClass {
GType peas_engine_get_type (void) G_GNUC_CONST;
PeasEngine *peas_engine_new (const gchar *app_name,
- const gchar *base_module_dir,
const gchar **search_paths);
/* plugin management */
diff --git a/peas-demo/peas-demo.c b/peas-demo/peas-demo.c
index ee90c1c..d8fa48c 100644
--- a/peas-demo/peas-demo.c
+++ b/peas-demo/peas-demo.c
@@ -167,7 +167,6 @@ main (int argc,
g_irepository_require (g_irepository_get_default (), "PeasGtk", "1.0", 0, NULL);
engine = peas_engine_new ("PeasDemo",
- PEAS_LIBDIR "/peas-demo/",
(const gchar **) search_paths);
n_windows = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]