X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Ftext-data-import-dialog.c;h=215a444c4861ba2d5d2faa0117b0608158af982a;hb=380110cc2fc8ee8511c2c4a1b3ee1da8a70cdb18;hp=6cc4bee3ca5e88bdd75105577ef7317e32e35e47;hpb=fd01afaa6575389277892cc45a1895571743184d;p=pspp diff --git a/src/ui/gui/text-data-import-dialog.c b/src/ui/gui/text-data-import-dialog.c index 6cc4bee3ca..215a444c48 100644 --- a/src/ui/gui/text-data-import-dialog.c +++ b/src/ui/gui/text-data-import-dialog.c @@ -232,8 +232,9 @@ static void pop_watch_cursor (struct import_assistant *); /* Pops up the Text Data Import assistant. */ void -text_data_import_assistant (GtkWindow *parent_window) +text_data_import_assistant (PsppireDataWindow *dw) { + GtkWindow *parent_window = GTK_WINDOW (dw); struct import_assistant *ia; ia = xzalloc (sizeof *ia); @@ -258,7 +259,7 @@ text_data_import_assistant (GtkWindow *parent_window) switch (ia->asst.response) { case GTK_RESPONSE_APPLY: - free (execute_syntax_string (generate_syntax (ia))); + free (execute_syntax_string (dw, generate_syntax (ia))); break; case PSPPIRE_RESPONSE_PASTE: free (paste_syntax_to_window (generate_syntax (ia))); @@ -1881,7 +1882,7 @@ get_tooltip_location (GtkWidget *widget, gint wx, gint wy, to make the data related to the tool tips part of a GObject that only gets destroyed when all references are released, but this solution appears to be effective too. */ - if (!GTK_WIDGET_MAPPED (widget)) + if (!gtk_widget_get_mapped (widget)) return FALSE; gtk_tree_view_convert_widget_to_bin_window_coords (tree_view,