[gtk+/wip/clipboard] testclipboard2: better cleanup



commit ecac4f015850e1c34350e9734717e8abb483b6e0
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jun 16 08:28:01 2014 -0400

    testclipboard2: better cleanup
    
    Quit when the window is closed, to test owner-change notification
    in the case where the owner goes away.

 tests/testclipboard2.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/testclipboard2.c b/tests/testclipboard2.c
index bc206db..2806254 100644
--- a/tests/testclipboard2.c
+++ b/tests/testclipboard2.c
@@ -169,6 +169,8 @@ main (int argc, char *argv[])
   clipboard = gdk_display_get_clipboard (gdk_display_get_default ());
 
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+  g_signal_connect (window, "delete-event", G_CALLBACK (gtk_main_quit), NULL);
+
   grid = gtk_grid_new ();
   gtk_grid_set_row_spacing (GTK_GRID (grid), 10);
   gtk_grid_set_column_spacing (GTK_GRID (grid), 10);


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