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




commit f0277b593336316d01e463e0250bcf7af35892dc
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.

 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]