summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorportix <none@none>2012-08-29 02:36:33 +0200
committerportix <none@none>2012-08-29 02:36:33 +0200
commit4b8e682f72c4fa4d777f3ac931388b918d06ab4a (patch)
treec5a8f60880c38f65759ea4d2775789e2ce13a4a3 /src
parent500b5f3bb6324ca532079aea74197d427d8e21f9 (diff)
downloaddwb-4b8e682f72c4fa4d777f3ac931388b918d06ab4a.zip
Moving grab_adblocker to tools; initial commit of extension-manager
--HG-- rename : examples/grab_adblocker => tools/grab_adblocker
Diffstat (limited to 'src')
-rw-r--r--src/dwb.c1
-rw-r--r--src/scripts.c16
2 files changed, 10 insertions, 7 deletions
diff --git a/src/dwb.c b/src/dwb.c
index bc19f642..4d20b9d2 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -4094,7 +4094,6 @@ main(int argc, char *argv[]) {
dwb.misc.profile = "default";
dwb.misc.prog_path = argv[0];
dwb.gui.wid = 0;
-
gint ret = application_run(argc, argv);
return ret;
}/*}}}*/
diff --git a/src/scripts.c b/src/scripts.c
index b7a50e43..71c1d4ce 100644
--- a/src/scripts.c
+++ b/src/scripts.c
@@ -471,7 +471,8 @@ wv_set_title(JSContextRef ctx, JSObjectRef function, JSObjectRef this, size_t ar
/*}}}*/
-
+/* SOUP_MESSAGE {{{*/
+/* soup_uri_to_js_object {{{*/
JSObjectRef
soup_uri_to_js_object(JSContextRef ctx, SoupURI *uri, JSValueRef *exception) {
JSObjectRef o = JSObjectMake(ctx, NULL, NULL);
@@ -484,7 +485,9 @@ soup_uri_to_js_object(JSContextRef ctx, SoupURI *uri, JSValueRef *exception) {
js_set_object_property(ctx, o, "query", uri->query, exception);
js_set_object_property(ctx, o, "fragment", uri->fragment, exception);
return o;
-}
+}/*}}}*/
+
+/* message_get_uri {{{*/
static JSValueRef
message_get_uri(JSContextRef ctx, JSObjectRef object, JSStringRef js_name, JSValueRef* exception) {
SoupMessage *msg = JSObjectGetPrivate(object);
@@ -494,7 +497,9 @@ message_get_uri(JSContextRef ctx, JSObjectRef object, JSStringRef js_name, JSVal
if (uri == NULL)
return JSValueMakeNull(ctx);
return soup_uri_to_js_object(ctx, uri, exception);
-}
+}/*}}}*/
+
+/* message_get_first_party {{{*/
static JSValueRef
message_get_first_party(JSContextRef ctx, JSObjectRef object, JSStringRef js_name, JSValueRef* exception) {
SoupMessage *msg = JSObjectGetPrivate(object);
@@ -504,8 +509,8 @@ message_get_first_party(JSContextRef ctx, JSObjectRef object, JSStringRef js_nam
if (uri == NULL)
return JSValueMakeNull(ctx);
return soup_uri_to_js_object(ctx, uri, exception);
-}
-
+}/*}}}*/
+/*}}}*/
/* FRAMES {{{*/
/* frame_get_domain {{{*/
@@ -1949,7 +1954,6 @@ scripts_unbind(JSObjectRef obj) {
if (obj != NULL) {
JSValueUnprotect(m_global_context, obj);
}
-
}
/* scripts_end {{{*/