diff options
author | portix <none@none> | 2012-12-06 13:10:57 +0100 |
---|---|---|
committer | portix <none@none> | 2012-12-06 13:10:57 +0100 |
commit | 1d5ad47f8ce290a45a24019719c83af847a4beca (patch) | |
tree | 0625319702fd0641225763f1ad1516e42e942523 /src | |
parent | 3e8b1e7fb0b83816946278411bee8896074e085e (diff) | |
download | dwb-1d5ad47f8ce290a45a24019719c83af847a4beca.zip |
Rename ref_quark -> s_ref_quark
Diffstat (limited to 'src')
-rw-r--r-- | src/scripts.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/scripts.c b/src/scripts.c index 7d90b05c..ec1a6ede 100644 --- a/src/scripts.c +++ b/src/scripts.c @@ -209,7 +209,7 @@ static JSObjectRef s_array_contructor; static JSObjectRef s_completion_callback; static JSObjectRef s_sp_scripts_cb; static JSObjectRef s_sp_scratchpad_cb; -static GQuark ref_quark; +static GQuark s_ref_quark; static JSObjectRef s_init_before, s_init_after; static JSObjectRef s_constructors[CONSTRUCTOR_LAST]; @@ -2090,18 +2090,18 @@ object_destroy_cb(JSObjectRef o) static JSObjectRef make_object_for_class(JSContextRef ctx, JSClassRef class, GObject *o, gboolean protect) { - JSObjectRef retobj = g_object_get_qdata(o, ref_quark); + JSObjectRef retobj = g_object_get_qdata(o, s_ref_quark); if (retobj != NULL) return retobj; retobj = JSObjectMake(ctx, class, o); if (protect) { - g_object_set_qdata_full(o, ref_quark, retobj, (GDestroyNotify)object_destroy_cb); + g_object_set_qdata_full(o, s_ref_quark, retobj, (GDestroyNotify)object_destroy_cb); JSValueProtect(s_global_context, retobj); } else - g_object_set_qdata_full(o, ref_quark, retobj, NULL); + g_object_set_qdata_full(o, s_ref_quark, retobj, NULL); return retobj; } @@ -2471,7 +2471,7 @@ create_constructor(JSContextRef ctx, char *name, JSClassRef class, JSObjectCallA static void create_global_object() { - ref_quark = g_quark_from_static_string("dwb_js_ref"); + s_ref_quark = g_quark_from_static_string("dwb_js_ref"); JSStaticFunction global_functions[] = { { "execute", global_execute, kJSDefaultAttributes }, |