[libnma] run-vpn: do not let the window destroy itself upon close



commit 350982125627198b2464b88a3dd8736bef497016
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Wed Jan 12 12:10:33 2022 +0100

    run-vpn: do not let the window destroy itself upon close
    
    It would also destroy our editor widget and its children and it wouldn't
    be possible to suck data out of it afterwards.
    
    https://gitlab.gnome.org/GNOME/libnma/-/merge_requests/18

 src/tests/run-vpn.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/tests/run-vpn.c b/src/tests/run-vpn.c
index 12d295c2..00dc9dd7 100644
--- a/src/tests/run-vpn.c
+++ b/src/tests/run-vpn.c
@@ -17,7 +17,7 @@ static gboolean
 window_deleted (GMainLoop *main_loop)
 {
        g_main_loop_quit (main_loop);
-       return FALSE;
+       return TRUE;
 }
 
 int
@@ -80,8 +80,9 @@ main (int argc, char *argv[])
                g_printerr ("Error: %s\n", error->message);
                return EXIT_FAILURE;
        }
-
        nm_connection_dump (connection);
 
+       gtk_window_destroy (GTK_WINDOW (window));
+
        return EXIT_SUCCESS;
 }


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