From 241a7ffb06a1bfa48e0200f7c066956f3a03ecb4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Forysiuk?= Date: Wed, 16 Mar 2011 20:41:22 +0100 Subject: [PATCH] Display scripts using unsupported GM_ API as broken in panel --- extensions/addons.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.39.5