From 39374c720953fe1343463c9cd69ae6cf25d0b8c9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 2 Oct 2024 19:13:48 -0400 Subject: [PATCH] gtk4-demo: Make demos standalone Making the demo windows transient and modal makes gnome-shell treat them like dialogs, which is not right. --- demos/gtk-demo/main.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/demos/gtk-demo/main.c b/demos/gtk-demo/main.c index 990bd984e4..cca50fa929 100644 --- a/demos/gtk-demo/main.c +++ b/demos/gtk-demo/main.c @@ -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; }