[gtk+] fix close button in testtitlebar as well



commit 8137b282e9f1982aec9a36a7ff160b2de9021874
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jul 6 21:53:15 2013 -0400

    fix close button in testtitlebar as well
    
    Same disease as with the previous fix.

 tests/testtitlebar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/testtitlebar.c b/tests/testtitlebar.c
index b828a51..e20c394 100644
--- a/tests/testtitlebar.c
+++ b/tests/testtitlebar.c
@@ -40,7 +40,7 @@ main (int argc, char *argv[])
   g_object_unref (icon);
   gtk_container_add (GTK_CONTAINER (button), image);
   gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
-  g_signal_connect (button, "clicked", G_CALLBACK (gtk_window_close), NULL);
+  g_signal_connect_swapped (button, "clicked", G_CALLBACK (gtk_window_close), window);
 
   gtk_header_bar_pack_end (GTK_HEADER_BAR (header), button);
 



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