From: John Darrington Date: Wed, 19 Apr 2017 10:12:33 +0000 (+0200) Subject: Pass the top level window to dialog creation functions X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a19c9fcbfa15499cde86d11ac7984328a6097a90;p=pspp Pass the top level window to dialog creation functions --- diff --git a/src/ui/gui/psppire-data-editor.c b/src/ui/gui/psppire-data-editor.c index c480fd223b..56d362e778 100644 --- a/src/ui/gui/psppire-data-editor.c +++ b/src/ui/gui/psppire-data-editor.c @@ -142,8 +142,9 @@ set_missing_values (GtkCellRenderer *renderer, psppire_dict_get_variable (PSPPIRE_DICT (de->dict), row); struct missing_values mv; - if (GTK_RESPONSE_OK == psppire_missing_val_dialog_run (NULL, - var, &mv)) + if (GTK_RESPONSE_OK == + psppire_missing_val_dialog_run (gtk_widget_get_toplevel (GTK_WIDGET (de)), + var, &mv)) { var_set_missing_values (var, &mv); } @@ -164,7 +165,8 @@ set_value_labels (GtkCellRenderer *renderer, struct variable *var = psppire_dict_get_variable (PSPPIRE_DICT (de->dict), row); - struct val_labs *vls = psppire_val_labs_dialog_run (NULL, var); + struct val_labs *vls = + psppire_val_labs_dialog_run (gtk_widget_get_toplevel (GTK_WIDGET (de)), var); if (vls) {