diff options
-rw-r--r-- | test/previewer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/previewer.c b/test/previewer.c index 3690357..a18c83c 100644 --- a/test/previewer.c +++ b/test/previewer.c @@ -152,7 +152,8 @@ main(int argc, char *argv[]) gtk_container_add(GTK_CONTAINER(window), box); button = gtk_button_new_with_label("Quit"); gtk_box_pack_end(GTK_BOX(box), button, FALSE, FALSE, 0); - g_signal_connect(button, "clicked", G_CALLBACK(gtk_main_quit), NULL); + g_signal_connect_swapped(button, "clicked", + G_CALLBACK(gtk_widget_destroy), window); /* create a socket to embed the viewer in */ socket = gtk_socket_new(); |