From: Christian Dywan Date: Fri, 19 Dec 2008 23:25:31 +0000 (+0100) Subject: Show even broken (not linking) extensions in the panel X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f059882742042da64093edeb8e4fa1ee813e7457;p=midori Show even broken (not linking) extensions in the panel --- diff --git a/midori/main.c b/midori/main.c index e4d29ac4..19c07047 100644 --- a/midori/main.c +++ b/midori/main.c @@ -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); }