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); fullname = g_build_filename (extension_path, filename, NULL);
module = g_module_open (fullname, G_MODULE_BIND_LOCAL); module = g_module_open (fullname, G_MODULE_BIND_LOCAL);
g_free (fullname); g_free (fullname);
if (!module)
{ if (module && g_module_symbol (module, "extension_init",
g_warning ("%s", g_module_error ()); (gpointer) &extension_init))
continue; extension = extension_init ();
} else
; extension = g_object_new (MIDORI_TYPE_EXTENSION,
if (!g_module_symbol (module, "extension_init", "name", filename,
(gpointer) &extension_init)) "description", g_module_error (),
{ NULL);
g_warning ("%s", g_module_error ());
continue;
}
extension = extension_init ();
katze_array_add_item (extensions, extension); katze_array_add_item (extensions, extension);
g_object_unref (extension);
} }
g_dir_close (extension_dir); g_dir_close (extension_dir);
} }