|
|
@ -1228,7 +1228,7 @@ static const JSStaticFunction gettext_functions[] = { |
|
|
|
{NULL, NULL, 0}}; |
|
|
|
{NULL, NULL, 0}}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const JSStaticFunction conffile_functions[] = { |
|
|
|
static const JSStaticFunction config_file_functions[] = { |
|
|
|
{"get_str", get_conf_str_cb, kJSPropertyAttributeReadOnly}, |
|
|
|
{"get_str", get_conf_str_cb, kJSPropertyAttributeReadOnly}, |
|
|
|
{"get_num", get_conf_num_cb, kJSPropertyAttributeReadOnly}, |
|
|
|
{"get_num", get_conf_num_cb, kJSPropertyAttributeReadOnly}, |
|
|
|
{"get_bool", get_conf_bool_cb, kJSPropertyAttributeReadOnly}, |
|
|
|
{"get_bool", get_conf_bool_cb, kJSPropertyAttributeReadOnly}, |
|
|
@ -1310,7 +1310,7 @@ window_object_cleared_callback(WebKitScriptWorld *world, |
|
|
|
WebKitFrame *frame, |
|
|
|
WebKitFrame *frame, |
|
|
|
LightDMGreeter *greeter) { |
|
|
|
LightDMGreeter *greeter) { |
|
|
|
|
|
|
|
|
|
|
|
JSObjectRef gettext_object, lightdm_greeter_object, conffile_object; |
|
|
|
JSObjectRef gettext_object, lightdm_greeter_object, config_file_object; |
|
|
|
JSGlobalContextRef jsContext; |
|
|
|
JSGlobalContextRef jsContext; |
|
|
|
JSObjectRef globalObject; |
|
|
|
JSObjectRef globalObject; |
|
|
|
WebKitDOMDocument *dom_document; |
|
|
|
WebKitDOMDocument *dom_document; |
|
|
@ -1348,7 +1348,7 @@ window_object_cleared_callback(WebKitScriptWorld *world, |
|
|
|
kJSPropertyAttributeNone, |
|
|
|
kJSPropertyAttributeNone, |
|
|
|
NULL); |
|
|
|
NULL); |
|
|
|
|
|
|
|
|
|
|
|
conffile_object = JSObjectMake(jsContext, conffile_class, greeter); |
|
|
|
config_file_object = JSObjectMake(jsContext, config_file_class, greeter); |
|
|
|
|
|
|
|
|
|
|
|
JSObjectSetProperty(jsContext, |
|
|
|
JSObjectSetProperty(jsContext, |
|
|
|
globalObject, |
|
|
|
globalObject, |
|
|
|