[gnome-sound-recorder/ebassi/experiments: 7/7] Fix the close_request vfunc implementation
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder/ebassi/experiments: 7/7] Fix the close_request vfunc implementation
- Date: Wed, 7 Sep 2022 16:14:56 +0000 (UTC)
commit e71911412c20da5bacdb331d7c4957e809d50742
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Aug 15 18:16:37 2022 +0100
Fix the close_request vfunc implementation
GtkWindowClass.close_request() returns a boolean value:
- true, for stopping the signal emission
- false, for continuing the signal emission
The default behaviour when closing a window is to destroy it, which will
terminate the application instance.
The lack of a return value was masked by the explicit call to
GApplication.quit(), which forcibly terminates the application in the
following main loop iteration.
src/window.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/window.js b/src/window.js
index f09e4d1..e703ef4 100644
--- a/src/window.js
+++ b/src/window.js
@@ -101,7 +101,7 @@ var Window = GObject.registerClass({
}
this.recorder.stop();
- this.application.quit();
+ return false;
}
onRecorderStarted() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]