[Xfce4-commits] <midori:master> Fix installing of addons once again
Christian Dywan
noreply at xfce.org
Sun Oct 30 15:22:01 CET 2011
Updating branch refs/heads/master
to e4601778c22c83ef00564d6eb390476530b3de01 (commit)
from 7dee11c0b77d64ad1ee8ff0f658073e1e7bbf67a (commit)
commit e4601778c22c83ef00564d6eb390476530b3de01
Author: Paweł Forysiuk <tuxator at o2.pl>
Date: Sun Oct 30 03:20:49 2011 +0100
Fix installing of addons once again
extensions/addons.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/extensions/addons.c b/extensions/addons.c
index 07e997e..2f82099 100644
--- a/extensions/addons.c
+++ b/extensions/addons.c
@@ -129,7 +129,6 @@ addons_install_response (GtkWidget* infobar,
const gchar* js_script;
WebKitWebView* web_view;
WebKitWebFrame* web_frame;
- gchar** script_id;
js_script = "document.getElementById('heading').childNodes[3].childNodes[1].textContent";
web_view = WEBKIT_WEB_VIEW (midori_view_get_web_view (view));
@@ -145,10 +144,8 @@ addons_install_response (GtkWidget* infobar,
}
/* rewrite uri to get source js */
- script_id = g_strsplit (subpage + 1, "/", 2);
temp_uri = g_strdup_printf ("http://%s/scripts/source/%s.user.js",
- hostname, script_id[0]);
- g_strfreev (script_id);
+ hostname, subpage + 1);
uri = temp_uri;
folder = "scripts";
}
@@ -162,6 +159,7 @@ addons_install_response (GtkWidget* infobar,
const gchar* js_script;
WebKitWebView* web_view;
WebKitWebFrame* web_frame;
+ gchar** style_id;
js_script = "document.getElementById('stylish-description').innerHTML;";
web_view = WEBKIT_WEB_VIEW (midori_view_get_web_view (view));
@@ -176,7 +174,9 @@ addons_install_response (GtkWidget* infobar,
g_free (value);
}
/* rewrite uri to get css */
- temp_uri = g_strdup_printf ("http://%s/styles/%s.css", hostname, subpage + 1);
+ style_id = g_strsplit (subpage + 1, "/", 2);
+ temp_uri = g_strdup_printf ("http://%s/styles/%s.css", hostname, style_id[0]);
+ g_strfreev (style_id);
uri = temp_uri;
folder = "styles";
}
More information about the Xfce4-commits
mailing list