gtk4-demo: Make demos standalone

Making the demo windows transient and modal makes gnome-shell
treat them like dialogs, which is not right.
This commit is contained in:
Matthias Clasen 2024-10-02 19:13:48 -04:00
parent 170a1cd941
commit 39374c7209

View File

@ -156,11 +156,6 @@ gtk_demo_run (GtkDemo *self,
if (result == NULL)
return FALSE;
if (GTK_IS_WINDOW (result))
{
gtk_window_set_transient_for (GTK_WINDOW (result), GTK_WINDOW (window));
gtk_window_set_modal (GTK_WINDOW (result), TRUE);
}
return TRUE;
}