aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-python-loader.c
diff options
context:
space:
mode:
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);
}