X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/812b526d127c6657e571db8b33a58137af6709cd..d64e1d92acaf5a00908f630848f1f308574847ea:/disobedience/properties.c diff --git a/disobedience/properties.c b/disobedience/properties.c index 62ea22f..092e8db 100644 --- a/disobedience/properties.c +++ b/disobedience/properties.c @@ -186,7 +186,8 @@ static gboolean properties_keypress(GtkWidget attribute((unused)) *widget, } } -void properties(int ntracks, const char **tracks) { +void properties(int ntracks, const char **tracks, + GtkWidget *parent) { int n, m; struct prefdata *f; GtkWidget *buttonbox, *vbox, *label, *entry, *propagate; @@ -299,7 +300,9 @@ void properties(int ntracks, const char **tracks) { if(pw) progress_window_progress(pw, 0, 0); /* Pop up a progress bar while we're waiting */ - pw = progress_window_new("Fetching Track Properties"); + while(parent->parent) + parent = parent->parent; + pw = progress_window_new("Fetching Track Properties", parent); } /* Everything is filled in now */