Browse Source

sync with local

sisyphus
Dustin Falgout 9 years ago
parent
commit
329a1e8083
  1. 15
      src/lightdm-webkit2-greeter-ext.c

15
src/lightdm-webkit2-greeter-ext.c

@ -749,9 +749,10 @@ login_cb(JSContextRef context,
size_t argumentCount, size_t argumentCount,
const JSValueRef arguments[], const JSValueRef arguments[],
JSValueRef *exception) { JSValueRef *exception) {
LightDMGreeter *greeter = JSObjectGetPrivate(thisObject);
JSStringRef arg; LightDMGreeter *greeter = JSObjectGetPrivate(thisObject);
char username[1024], *session = NULL; JSStringRef arg;
char username[1024], *session = NULL;
// FIXME: Throw exception // FIXME: Throw exception
@ -760,7 +761,7 @@ login_cb(JSContextRef context,
JSStringRelease(arg); JSStringRelease(arg);
if (argumentCount > 1) { if (argumentCount > 1) {
arg = JSValueToStringCopy(context, arguments[1], NULL); arg = JSValueToStringCopy(context, arguments[1], NULL);
session = g_malloc(sizeof(char) * 1024); session = g_malloc(sizeof(char) * 1024);
JSStringGetUTF8CString(arg, session, 1024); JSStringGetUTF8CString(arg, session, 1024);
JSStringRelease(arg); 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) { 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", g_print("Page %" G_GUINT64_FORMAT "created for %s\n",
webkit_web_page_get_id(web_page), webkit_web_page_get_id(web_page),
webkit_web_page_get_uri(web_page) webkit_web_page_get_uri(web_page)
); );
}*/ }
static void static void

Loading…
Cancel
Save