Fix calling set_command_line_wait()

We were passing the wrong arguments

Based on 2e3b5aea0e

Fixes: https://github.com/linuxmint/xed/issues/90
This commit is contained in:
JosephMcc 2017-02-20 03:40:07 -08:00
parent ce936c567e
commit 9b704374c7
1 changed files with 10 additions and 1 deletions

View File

@ -388,6 +388,15 @@ set_command_line_wait (XedApp *app,
(GDestroyNotify)g_object_unref);
}
static void
set_command_line_wait_doc (XedDocument *doc,
XedApp *app)
{
XedTab *tab = xed_tab_get_from_document (doc);
set_command_line_wait (app, tab);
}
static void
open_files (GApplication *application,
gboolean new_window,
@ -451,7 +460,7 @@ open_files (GApplication *application,
if (command_line)
{
g_slist_foreach (loaded, (GFunc)set_command_line_wait, NULL);
g_slist_foreach (loaded, (GFunc)set_command_line_wait_doc, XED_APP (application));
}
g_slist_free (loaded);
}