chiark / gitweb /
progress popup is a transient of the main window
authorRichard Kettlewell <rjk@greenend.org.uk>
Mon, 12 Nov 2007 21:46:24 +0000 (21:46 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Mon, 12 Nov 2007 21:46:24 +0000 (21:46 +0000)
disobedience/progress.c

index 8efeb8f..4eb5b55 100644 (file)
@@ -36,6 +36,8 @@ struct progress_window *progress_window_new(const char *title) {
   struct progress_window *pw = xmalloc(sizeof *pw);
 
   pw->window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
+  gtk_window_set_transient_for(GTK_WINDOW(pw->window),
+                               GTK_WINDOW(toplevel));
   g_signal_connect(pw->window, "destroy",
                   G_CALLBACK(gtk_widget_destroyed), &pw->window);
   gtk_window_set_default_size(GTK_WINDOW(pw->window), 360, -1);