diff options
author | Marc-Antoine Perennou <Marc-Antoine@Perennou.com> | 2010-11-30 18:29:02 +0100 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-12-01 13:46:08 -0500 |
commit | 60ae0e25d58feb93f76c39aa84ffb49046a4f91e (patch) | |
tree | ef73cca282a274d9a736e45efedeebc613397beb /gi/object.c | |
parent | 1deced809e3f09f9b787dd07dfd7558dc46f7461 (diff) | |
download | gjs-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.c | 4 |
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; |