mirror of https://github.com/GNOME/gimp.git
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:
parent
29d95f4c39
commit
4fb7fc918a
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue