[gnome-maps/wip/mlundblad/es6-modules: 22/24] printOperation: Stop using imports.mainloop
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/es6-modules: 22/24] printOperation: Stop using imports.mainloop
- Date: Mon, 30 May 2022 20:49:17 +0000 (UTC)
commit c66f2e83a56b985b4ea8a704acb3285c17e17eaf
Author: Marcus Lundblad <ml dfupdate se>
Date: Thu May 26 18:11:17 2022 +0200
printOperation: Stop using imports.mainloop
Replace Mainloop.timeout_add() with GLib.timeout_add().
src/printOperation.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/printOperation.js b/src/printOperation.js
index 33dcc9c3..78c02c3f 100644
--- a/src/printOperation.js
+++ b/src/printOperation.js
@@ -17,8 +17,8 @@
* Author: Amisha Singla <amishas157 gmail com>
*/
+import GLib from 'gi://GLib';
import Gtk from 'gi://Gtk';
-const Mainloop = imports.mainloop;
import {Application} from './application.js';
import {LongPrintLayout} from './longPrintLayout.js';
@@ -65,7 +65,7 @@ export class PrintOperation {
let width = context.get_width();
let height = context.get_height();
- Mainloop.timeout_add(_MIN_TIME_TO_ABORT, () => {
+ GLib.timeout_add(null, _MIN_TIME_TO_ABORT, () => {
if (!this._layout.renderFinished) {
this._abortDialog.show();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]