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:
parent
ce936c567e
commit
9b704374c7
|
@ -388,6 +388,15 @@ set_command_line_wait (XedApp *app,
|
||||||
(GDestroyNotify)g_object_unref);
|
(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
|
static void
|
||||||
open_files (GApplication *application,
|
open_files (GApplication *application,
|
||||||
gboolean new_window,
|
gboolean new_window,
|
||||||
|
@ -451,7 +460,7 @@ open_files (GApplication *application,
|
||||||
|
|
||||||
if (command_line)
|
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);
|
g_slist_free (loaded);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue