summaryrefslogtreecommitdiff
path: root/src/scripts.c
diff options
context:
space:
mode:
authorportix <none@none>2013-02-14 11:00:14 +0100
committerportix <none@none>2013-02-14 11:00:14 +0100
commit02d1b0549a11697832b5b15ea66caeb67f04d57f (patch)
tree715d337e7ea01972151c9aad27c814808ed5eb9e /src/scripts.c
parent0c84a444069aa11bbc3be4dcb552d1c42a44c43e (diff)
downloaddwb-02d1b0549a11697832b5b15ea66caeb67f04d57f.zip
Own constructor for hidden webview
Diffstat (limited to 'src/scripts.c')
-rw-r--r--src/scripts.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/scripts.c b/src/scripts.c
index b8e6af8a..dc649d27 100644
--- a/src/scripts.c
+++ b/src/scripts.c
@@ -110,6 +110,7 @@ enum {
CONSTRUCTOR_FRAME,
CONSTRUCTOR_SOUP_MESSAGE,
CONSTRUCTOR_DEFERRED,
+ CONSTRUCTOR_HIDDEN_WEB_VIEW,
CONSTRUCTOR_LAST,
};
@@ -1907,7 +1908,7 @@ static JSObjectRef
hwv_constructor_cb(JSContextRef ctx, JSObjectRef constructor, size_t argc, const JSValueRef argv[], JSValueRef* exception)
{
GObject *wv = G_OBJECT(webkit_web_view_new());
- return make_object_for_class(ctx, s_webview_class, G_OBJECT(wv), false);
+ return make_object_for_class(ctx, s_webview_class, wv, false);
}
static void
hwv_finalize(JSObjectRef o)
@@ -2708,7 +2709,7 @@ create_global_object()
cd.finalize = hwv_finalize;
cd.parentClass = s_gobject_class;
- s_constructors[CONSTRUCTOR_WEBVIEW] = create_constructor(s_global_context, "HiddenWebView", s_webview_class, hwv_constructor_cb, NULL);
+ s_constructors[CONSTRUCTOR_HIDDEN_WEB_VIEW] = create_constructor(s_global_context, "HiddenWebView", s_webview_class, hwv_constructor_cb, NULL);
/* Frame */