[gimp/gimp-2-10] app: make sure to update the display-shell title/statusbar when closing image
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: make sure to update the display-shell title/statusbar when closing image
- Date: Sun, 19 Apr 2020 15:03:11 +0000 (UTC)
commit a6c095b02dfcd15e0be695ea7b878661fd0894e8
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.
(cherry picked from commit 37065ccf6fddd8a3c62ac5a96ab08d7069c53518)
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 e3dc7b4bf7..b0fcfed413 100644
--- a/app/display/gimpdisplay.c
+++ b/app/display/gimpdisplay.c
@@ -46,6 +46,7 @@
#include "gimpdisplayshell-icon.h"
#include "gimpdisplayshell-scroll.h"
#include "gimpdisplayshell-scrollbars.h"
+#include "gimpdisplayshell-title.h"
#include "gimpdisplayshell-transform.h"
#include "gimpimagewindow.h"
@@ -696,9 +697,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]