summaryrefslogtreecommitdiff
path: root/gi/object.c
diff options
context:
space:
mode:
authorMarc-Antoine Perennou <Marc-Antoine@Perennou.com>2010-11-30 18:29:02 +0100
committerColin Walters <walters@verbum.org>2010-12-01 13:46:08 -0500
commit60ae0e25d58feb93f76c39aa84ffb49046a4f91e (patch)
treeef73cca282a274d9a736e45efedeebc613397beb /gi/object.c
parent1deced809e3f09f9b787dd07dfd7558dc46f7461 (diff)
downloadgjs-60ae0e25d58feb93f76c39aa84ffb49046a4f91e.tar.gz
xulrunner2: Get rid of gjs_string_get_ascii
In xulrunner2, JS_GetStringBytes has been removed, we will now always need a context. We won't be able to use gjs_string_get_ascii anymore, port each call to it to gjs_string_get_ascii_checked Btw, rename gjs_string_get_ascii_checked to gjs_string_get_ascii https://bugzilla.gnome.org/show_bug.cgi?id=635707
Diffstat (limited to 'gi/object.c')
-rw-r--r--gi/object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gi/object.c b/gi/object.c
index ffa4fa6c..04c3073f 100644
--- a/gi/object.c
+++ b/gi/object.c
@@ -889,7 +889,7 @@ real_connect_func(JSContext *context,
return JS_FALSE;
}
- signal_name = gjs_string_get_ascii_checked(context, argv[0]);
+ signal_name = gjs_string_get_ascii(context, argv[0]);
if (signal_name == NULL) {
return JS_FALSE;
}
@@ -1017,7 +1017,7 @@ emit_func(JSContext *context,
return JS_FALSE;
}
- signal_name = gjs_string_get_ascii_checked(context,
+ signal_name = gjs_string_get_ascii(context,
argv[0]);
if (signal_name == NULL)
return JS_FALSE;