testlist2: quit on window close

This commit is contained in:
Timm Bäder 2019-09-08 10:21:50 +02:00
parent 32cec6c1cb
commit 7d93e9963a

View File

@ -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 ();