[Xfce4-commits] <midori:master> Don't consider scripts using GM_ functions as broken
Christian Dywan
noreply at xfce.org
Mon Apr 4 01:52:04 CEST 2011
Updating branch refs/heads/master
to b299608352e0a1c20416bed1e1d39dc71fc5742b (commit)
from 728ed8570f833917923751db3b5907dc63e3e3cb (commit)
commit b299608352e0a1c20416bed1e1d39dc71fc5742b
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Apr 4 01:50:53 2011 +0200
Don't consider scripts using GM_ functions as broken
There are cases where scripts check for the existence of such
functions and fall back to standard functions.
extensions/addons.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/extensions/addons.c b/extensions/addons.c
index 91d7829..9ebdec4 100644
--- a/extensions/addons.c
+++ b/extensions/addons.c
@@ -1245,12 +1245,6 @@ 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;
More information about the Xfce4-commits
mailing list