[lightsoff/arnaudb/wip/gtk4: 23/28] Quit application at the end.




commit ab5a766790187cf9bb5b861bd6821a4642d2a634
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sat Nov 28 15:13:10 2020 +0100

    Quit application at the end.

 src/managed-window.vala | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/managed-window.vala b/src/managed-window.vala
index a504fd9..d91339a 100644
--- a/src/managed-window.vala
+++ b/src/managed-window.vala
@@ -81,7 +81,8 @@ private class ManagedWindow : ApplicationWindow
     private inline void on_unmap ()
     {
         save_window_state ();
-        base.unmap ();
+
+        application.quit ();
     }
 
     /*\
@@ -138,7 +139,7 @@ private class ManagedWindow : ApplicationWindow
         set_default_size (settings.get_int ("window-width"), settings.get_int ("window-height"));
     }
 
-    private inline void save_window_state ()   // called on destroy
+    private inline void save_window_state ()   // called on unmap
     {
         settings.delay ();
         settings.set_int ("window-width", window_width);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]