Missed adding new parent window parameter

Added a GtkWindow parameter to csv_import_read_file to pass to the
error dialogue but missed actually adding it.
This commit is contained in:
Robert Fewell
2018-12-01 10:58:15 +00:00
parent a671e34134
commit d9d24a9055

View File

@@ -78,7 +78,7 @@ fill_model_with_match(GMatchInfo *match_info,
* Parse the file for a correctly formatted file * Parse the file for a correctly formatted file
*******************************************************/ *******************************************************/
csv_import_result csv_import_result
csv_import_read_file (GtkWindow *win, const gchar *filename, csv_import_read_file (GtkWindow *window, const gchar *filename,
const gchar *parser_regexp, const gchar *parser_regexp,
GtkListStore *store, guint max_rows) GtkListStore *store, guint max_rows)
{ {
@@ -114,7 +114,7 @@ csv_import_read_file (GtkWindow *win, const gchar *filename,
parser_regexp, err->message); parser_regexp, err->message);
g_error_free (err); g_error_free (err);
dialog = gtk_message_dialog_new (NULL, dialog = gtk_message_dialog_new (window,
GTK_DIALOG_MODAL, GTK_DIALOG_MODAL,
GTK_MESSAGE_ERROR, GTK_MESSAGE_ERROR,
GTK_BUTTONS_OK, "%s", errmsg); GTK_BUTTONS_OK, "%s", errmsg);