[gimp] app: make sure to update the display-shell title/statusbar when closing image



commit 37065ccf6fddd8a3c62ac5a96ab08d7069c53518
Author: Ell <ell_se yahoo com>
Date:   Sun Apr 19 18:00:04 2020 +0300

    app: make sure to update the display-shell title/statusbar when closing image
    
    ... instead of relying on UI events to cause this indirectly.

 app/display/gimpdisplay.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/app/display/gimpdisplay.c b/app/display/gimpdisplay.c
index 7f35bb4018..ada1b8e31d 100644
--- a/app/display/gimpdisplay.c
+++ b/app/display/gimpdisplay.c
@@ -48,6 +48,7 @@
 #include "gimpdisplayshell-render.h"
 #include "gimpdisplayshell-scroll.h"
 #include "gimpdisplayshell-scrollbars.h"
+#include "gimpdisplayshell-title.h"
 #include "gimpdisplayshell-transform.h"
 #include "gimpimagewindow.h"
 
@@ -590,9 +591,14 @@ gimp_display_set_image (GimpDisplay *display,
   if (shell)
     {
       if (image)
-        gimp_display_shell_reconnect (shell);
+        {
+          gimp_display_shell_reconnect (shell);
+        }
       else
-        gimp_display_shell_icon_update (shell);
+        {
+          gimp_display_shell_title_update (shell);
+          gimp_display_shell_icon_update (shell);
+        }
     }
 
   if (old_image != image)


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