[gtk/wip/baedert/for-master: 143/146] testlist2: quit on window close



commit 77fb27c35c57ee1f2728b0270f7c06c4b3703293
Author: Timm Bäder <mail baedert org>
Date:   Sun Sep 8 10:21:50 2019 +0200

    testlist2: quit on window close

 tests/testlist2.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/tests/testlist2.c b/tests/testlist2.c
index 770bcda113..c329f06fe5 100644
--- a/tests/testlist2.c
+++ b/tests/testlist2.c
@@ -120,6 +120,7 @@ int main (int argc, char *argv[])
       gtk_list_box_insert (GTK_LIST_BOX (list), row, -1);
     }
 
+  g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
   gtk_widget_show (window);
 
   gtk_main ();


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