From: Paweł Forysiuk Date: Wed, 16 Mar 2011 19:41:22 +0000 (+0100) Subject: Display scripts using unsupported GM_ API as broken in panel X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=241a7ffb06a1bfa48e0200f7c066956f3a03ecb4;p=midori Display scripts using unsupported GM_ API as broken in panel --- diff --git a/extensions/addons.c b/extensions/addons.c index d0bba27b..d0998121 100644 --- a/extensions/addons.c +++ b/extensions/addons.c @@ -1258,6 +1258,12 @@ addons_update_elements (MidoriExtension* extension, if (!addons_get_element_content (fullpath, kind, &(element->script_content))) element->broken = TRUE; + if (element->script_content) + { + gchar* use_gm = g_strrstr_len (element->script_content , -1, "GM_"); + if (use_gm && *use_gm) + element->broken = TRUE; + } if (g_key_file_get_integer (keyfile, "scripts", fullpath, NULL) & 1) element->enabled = FALSE;