mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
csd: Fix up close buttons
Must pass the window as first argument to the signal handler.
This commit is contained in:
parent
c0c752fab1
commit
e5b51050c6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user