[gnome-maps/wip/osm-edit: 15/16] osmEdit: Use JS parseInt() instead of GLib.ascii_strtoull()
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/osm-edit: 15/16] osmEdit: Use JS parseInt() instead of GLib.ascii_strtoull()
- Date: Mon, 7 Dec 2015 21:47:34 +0000 (UTC)
commit 74ffc5af1dba45e7007f83a3f8098b5bf9d77e76
Author: Marcus Lundblad <ml update uu se>
Date: Mon Dec 7 21:14:10 2015 +0100
osmEdit: Use JS parseInt() instead of GLib.ascii_strtoull()
It seems some versions of GJS fails to pass along variables parsed
with GLib.ascii_strtoull() to GObjects properties of type guint64.
https://bugzilla.gnome.org/show_bug.cgi?id=726628
src/osmConnection.js | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/osmConnection.js b/src/osmConnection.js
index 77955d0..7d92337 100644
--- a/src/osmConnection.js
+++ b/src/osmConnection.js
@@ -25,7 +25,6 @@ const _ = imports.gettext.gettext;
const Utils = imports.utils;
const Lang = imports.lang;
-const GLib = imports.gi.GLib;
const Maps = imports.gi.GnomeMaps;
const Rest = imports.gi.Rest;
const Secret = imports.gi.Secret;
@@ -148,7 +147,7 @@ const OSMConnection = new Lang.Class({
return;
}
- let changesetId = GLib.ascii_strtoull(call.get_payload(), '', 10);
+ let changesetId = parseInt(call.get_payload());
Utils.debug('opened changeset: ' + changesetId);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]