From e5b51050c6fbd3f9038bf5c18d3760cf89f5dfd5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 6 Jul 2013 21:49:25 -0400 Subject: [PATCH] csd: Fix up close buttons Must pass the window as first argument to the signal handler. --- gtk/gtkwindow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index ccf8349183..15772dfc41 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -5198,8 +5198,8 @@ update_window_buttons (GtkWindow *window) gtk_container_add (GTK_CONTAINER (button), image); gtk_widget_set_can_focus (button, FALSE); gtk_widget_show_all (button); - g_signal_connect (button, "clicked", - G_CALLBACK (gtk_window_close), window); + g_signal_connect_swapped (button, "clicked", + G_CALLBACK (gtk_window_close), window); priv->title_close_button = button; }