Bug 704896 - pop ups are annoying when opening multiple files...

...from the command line on some platforms/window managers

file_open_from_command_line(): display the progress in the active
display if there is no empty display. This way the progress appears in
the display that was opened from the previous command line argument.
This commit is contained in:
Michael Natterer 2013-11-20 23:17:40 +01:00
parent 29d95f4c39
commit 4fb7fc918a
1 changed files with 4 additions and 0 deletions

View File

@ -615,6 +615,10 @@ file_open_from_command_line (Gimp *gimp,
GimpObject *display = gimp_get_empty_display (gimp);
GimpPDBStatusType status;
/* show the progress in the last opened display, see bug #704896 */
if (! display)
display = gimp_context_get_display (gimp_get_user_context (gimp));
if (display)
g_object_add_weak_pointer (G_OBJECT (display), (gpointer) &display);