Show even broken (not linking) extensions in the panel

This commit is contained in:
Christian Dywan 2008-12-20 00:25:31 +01:00
parent 993fb52644
commit f059882742

View file

@ -2020,20 +2020,17 @@ main (int argc,
fullname = g_build_filename (extension_path, filename, NULL);
module = g_module_open (fullname, G_MODULE_BIND_LOCAL);
g_free (fullname);
if (!module)
{
g_warning ("%s", g_module_error ());
continue;
}
;
if (!g_module_symbol (module, "extension_init",
(gpointer) &extension_init))
{
g_warning ("%s", g_module_error ());
continue;
}
extension = extension_init ();
if (module && g_module_symbol (module, "extension_init",
(gpointer) &extension_init))
extension = extension_init ();
else
extension = g_object_new (MIDORI_TYPE_EXTENSION,
"name", filename,
"description", g_module_error (),
NULL);
katze_array_add_item (extensions, extension);
g_object_unref (extension);
}
g_dir_close (extension_dir);
}