[gimp] app: various fixes in gimp_display_shell_set_show_all()
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: various fixes in gimp_display_shell_set_show_all()
- Date: Thu, 5 Sep 2019 10:27:01 +0000 (UTC)
commit 19817877a55bf31bc8c1e6f873a0e6900ad55adc
Author: Ell <ell_se yahoo com>
Date: Thu Sep 5 13:17:55 2019 +0300
app: various fixes in gimp_display_shell_set_show_all()
app/display/gimpdisplayshell.c | 28 ++++++++++++++++++----------
1 file changed, 18 insertions(+), 10 deletions(-)
---
diff --git a/app/display/gimpdisplayshell.c b/app/display/gimpdisplayshell.c
index a24722672a..65d51902ab 100644
--- a/app/display/gimpdisplayshell.c
+++ b/app/display/gimpdisplayshell.c
@@ -1775,30 +1775,38 @@ gimp_display_shell_set_show_all (GimpDisplayShell *shell,
if (show_all != shell->show_all)
{
- GimpImage *image = gimp_display_get_image (shell->display);
-
shell->show_all = show_all;
- if (image)
+ if (shell->display && gimp_display_get_image (shell->display))
{
+ GimpImage *image = gimp_display_get_image (shell->display);
+ GimpContext *user_context;
+
if (show_all)
gimp_image_inc_show_all_count (image);
else
gimp_image_dec_show_all_count (image);
gimp_image_flush (image);
- }
- gimp_display_update_bounding_box (shell->display);
+ gimp_display_update_bounding_box (shell->display);
- gimp_display_shell_update_show_canvas (shell);
+ gimp_display_shell_update_show_canvas (shell);
- gimp_display_shell_scroll_clamp_and_update (shell);
- gimp_display_shell_scrollbars_update (shell);
+ gimp_display_shell_scroll_clamp_and_update (shell);
+ gimp_display_shell_scrollbars_update (shell);
- gimp_display_shell_set_priority_viewport (shell);
+ gimp_display_shell_expose_full (shell);
- gimp_display_shell_expose_full (shell);
+ user_context = gimp_get_user_context (shell->display->gimp);
+
+ if (shell->display == gimp_context_get_display (user_context))
+ {
+ gimp_display_shell_set_priority_viewport (shell);
+
+ gimp_ui_manager_update (shell->popup_manager, shell->display);
+ }
+ }
g_object_notify (G_OBJECT (shell), "show-all");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]