[gnome-maps/wip/mlundblad/es6-modules: 26/28] 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: 26/28] printOperation: Stop using imports.mainloop
- Date: Wed, 8 Jun 2022 20:09:13 +0000 (UTC)
commit c6a64af2112e9f4115ddb0fd58e3e0ec2bd04860
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]