[gnome-maps] osmEditDialog: Use the correct static namespace for response constants
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] osmEditDialog: Use the correct static namespace for response constants
- Date: Tue, 2 Aug 2022 21:58:14 +0000 (UTC)
commit 717c8dee34fc47cfcc4bd633481f6a9c45230005
Author: Marcus Lundblad <ml dfupdate se>
Date: Tue Aug 2 23:56:23 2022 +0200
osmEditDialog: Use the correct static namespace for response constants
Some error cases had been missed to add the OSMEditDialog namespace
when referring the static response constants.
src/osmEditDialog.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/osmEditDialog.js b/src/osmEditDialog.js
index d1601943..2a7e05b8 100644
--- a/src/osmEditDialog.js
+++ b/src/osmEditDialog.js
@@ -333,7 +333,7 @@ export class OSMEditDialog extends Gtk.Dialog {
});
this._cancellable = new Gio.Cancellable();
- this._cancellable.connect(() => this.response(Response.CANCELLED));
+ this._cancellable.connect(() => this.response(OSMEditDialog.Response.CANCELLED));
this.connect('delete-event', () => this._cancellable.cancel());
@@ -553,7 +553,7 @@ export class OSMEditDialog extends Gtk.Dialog {
this.response(OSMEditDialog.Response.UPLOADED);
} else {
this._showError(status);
- this.response(Response.ERROR);
+ this.response(OSMEditDialog.Response.ERROR);
}
}
@@ -573,7 +573,7 @@ export class OSMEditDialog extends Gtk.Dialog {
messageDialog.run();
messageDialog.destroy();
- this.response(Response.ERROR);
+ this.response(OSMEditDialog.Response.ERROR);
}
/* GtkContainer.child_get_property doesn't seem to be usable from GJS */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]