diff options
author | Marcus Lundblad <ml@dfupdate.se> | 2022-05-25 23:12:14 +0200 |
---|---|---|
committer | Marcus Lundblad <ml@dfupdate.se> | 2022-06-08 22:08:34 +0200 |
commit | 613a63a3c912383b37523ccc55964295d4774032 (patch) | |
tree | 8f9becc5dcc8226d20c346e464f409343725007e | |
parent | 96b03bdf5ac8a7a9e46519e041f3485a20382950 (diff) | |
download | gnome-maps-613a63a3c912383b37523ccc55964295d4774032.tar.gz |
geoJSONSource: Stop using imports.mainloop
Replace Mainlopp.idle_add() with GLib.idle_add().
-rw-r--r-- | src/geoJSONSource.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/geoJSONSource.js b/src/geoJSONSource.js index 9be53e92..f0b6e5ef 100644 --- a/src/geoJSONSource.js +++ b/src/geoJSONSource.js @@ -21,8 +21,8 @@ import Cairo from 'cairo'; import Champlain from 'gi://Champlain'; import Clutter from 'gi://Clutter'; +import GLib from 'gi://GLib'; import GObject from 'gi://GObject'; -const Mainloop = imports.mainloop; import {BoundingBox} from './boundingBox.js'; import * as Geojsonvt from './geojsonvt/geojsonvt.js'; @@ -85,7 +85,7 @@ export class GeoJSONSource extends Champlain.TileSource { this.next_source.fill_tile(tile); }); - Mainloop.idle_add(() => this._renderTile(tile), tile); + GLib.idle_add(tile, () => this._renderTile(tile)); } _validate([lon, lat]) { |