aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-python-loader.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-10-21 23:31:19 +0800
committerChristian Persch <chpe@src.gnome.org>2005-10-21 23:31:19 +0800
commit8e4b79936d79e1fb33947fbfbea1f69141488790 (patch)
tree3ea3a4c212b43be8b3526d5098800a61f63b1d41 /src/ephy-python-loader.c
parent944263b78b78513f86b48dd74a1ba9900f05ed10 (diff)
downloadgsoc2013-epiphany-8e4b79936d79e1fb33947fbfbea1f69141488790.tar
gsoc2013-epiphany-8e4b79936d79e1fb33947fbfbea1f69141488790.tar.gz
gsoc2013-epiphany-8e4b79936d79e1fb33947fbfbea1f69141488790.tar.bz2
gsoc2013-epiphany-8e4b79936d79e1fb33947fbfbea1f69141488790.tar.lz
gsoc2013-epiphany-8e4b79936d79e1fb33947fbfbea1f69141488790.tar.xz
gsoc2013-epiphany-8e4b79936d79e1fb33947fbfbea1f69141488790.tar.zst
gsoc2013-epiphany-8e4b79936d79e1fb33947fbfbea1f69141488790.zip
Expose the extension description keyfile directly to the loaders.
2005-10-21 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-loader.c: (ephy_loader_get_object): * lib/ephy-loader.h: * lib/ephy-module.c: (ephy_module_load), (ephy_module_new): * lib/ephy-module.h: * lib/ephy-shlib-loader.c: (impl_get_object), (ephy_shlib_loader_class_init): * src/ephy-extensions-manager.c: (free_extension_info), (ephy_extensions_manager_load_ini_string), (get_loader_for_type), (load_extension): * src/ephy-python-loader.c: (impl_get_object): Expose the extension description keyfile directly to the loaders.
Diffstat (limited to 'src/ephy-python-loader.c')
-rw-r--r--src/ephy-python-loader.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ephy-python-loader.c b/src/ephy-python-loader.c
index ff23bd7ce..1e0e697c8 100644
--- a/src/ephy-python-loader.c
+++ b/src/ephy-python-loader.c
@@ -39,16 +39,14 @@ static GObjectClass *parent_class = NULL;
static GObject *
impl_get_object (EphyLoader *eloader,
- GData **attributes)
+ GKeyFile *keyfile)
{
char *filename;
GObject *object;
- filename = g_datalist_get_data (attributes, "Module");
- if (filename == NULL)
- {
- filename = g_datalist_get_data (attributes, "module");
- }
+ g_return_val_if_fail (keyfile != NULL, NULL);
+
+ filename = g_key_file_get_string (keyfile, "Loader", "Module", NULL);
if (filename == NULL)
{
g_warning ("NULL module name!\n");
@@ -59,6 +57,8 @@ impl_get_object (EphyLoader *eloader,
"filename", filename,
NULL);
+ g_free (filename);
+
/* we own one ref */
return g_object_ref (object);
}