From 329a1e808317a391718d2401ada6b750caf67f92 Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Sat, 9 Jan 2016 01:46:36 -0600 Subject: [PATCH] sync with local --- src/lightdm-webkit2-greeter-ext.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/lightdm-webkit2-greeter-ext.c b/src/lightdm-webkit2-greeter-ext.c index 6d0a6cf..4be0705 100644 --- a/src/lightdm-webkit2-greeter-ext.c +++ b/src/lightdm-webkit2-greeter-ext.c @@ -749,9 +749,10 @@ login_cb(JSContextRef context, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception) { - LightDMGreeter *greeter = JSObjectGetPrivate(thisObject); - JSStringRef arg; - char username[1024], *session = NULL; + + LightDMGreeter *greeter = JSObjectGetPrivate(thisObject); + JSStringRef arg; + char username[1024], *session = NULL; // FIXME: Throw exception @@ -760,7 +761,7 @@ login_cb(JSContextRef context, JSStringRelease(arg); if (argumentCount > 1) { - arg = JSValueToStringCopy(context, arguments[1], NULL); + arg = JSValueToStringCopy(context, arguments[1], NULL); session = g_malloc(sizeof(char) * 1024); JSStringGetUTF8CString(arg, session, 1024); JSStringRelease(arg); @@ -972,15 +973,15 @@ static const JSClassDefinition gettext_definition = { }; -/*static void +static void web_page_created_callback(WebKitWebExtension *extension, WebKitWebPage *web_page, gpointer user_data) { - + #define G_GUINT64_FORMAT "lu" g_print("Page %" G_GUINT64_FORMAT "created for %s\n", webkit_web_page_get_id(web_page), webkit_web_page_get_uri(web_page) ); -}*/ +} static void