Fix a leftover window

We were still using container api on a window here.
This commit is contained in:
Matthias Clasen 2020-05-08 12:27:25 -04:00
parent a7abb394e8
commit d62ad4e6df

View File

@ -44,7 +44,7 @@ create_dark_popup (GtkWidget *parent)
gtk_window_set_resizable (GTK_WINDOW (popup), FALSE);
gtk_window_set_hide_on_close (GTK_WINDOW (popup), TRUE);
gtk_container_add (GTK_CONTAINER (popup), button);
gtk_window_set_child (GTK_WINDOW (popup), button);
g_signal_connect (button, "toggled",
G_CALLBACK (dark_button_toggled_cb), NULL);