[gimp/gimp-2-8] Bug 704896 - pop ups are annoying when opening multiple files...



commit 5121a5f6aa229ba3f3da778f34665690acaa4374
Author: Michael Natterer <mitch gimp org>
Date:   Wed Nov 20 23:17:40 2013 +0100

    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.
    
    (cherry picked from commit 4fb7fc918ab6f42c31894ffca5f5f80b756d5609)

 app/file/file-open.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/file/file-open.c b/app/file/file-open.c
index be6a3fe..e8a29d4 100644
--- a/app/file/file-open.c
+++ b/app/file/file-open.c
@@ -562,6 +562,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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]