[gimp] app: move some more stuff out of the "now" part of gimp_display_shell_flush()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: move some more stuff out of the "now" part of gimp_display_shell_flush()
- Date: Mon, 21 Apr 2014 22:00:19 +0000 (UTC)
commit 2088c3efdf8d6b4e328d4da05a59bdc84ec49039
Author: Michael Natterer <mitch gimp org>
Date: Mon Apr 21 23:57:57 2014 +0200
app: move some more stuff out of the "now" part of gimp_display_shell_flush()
so it's not needlessly called during painting.
app/display/gimpdisplayshell.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/app/display/gimpdisplayshell.c b/app/display/gimpdisplayshell.c
index 108339a..c4790a3 100644
--- a/app/display/gimpdisplayshell.c
+++ b/app/display/gimpdisplayshell.c
@@ -1718,14 +1718,6 @@ gimp_display_shell_flush (GimpDisplayShell *shell,
{
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
- gimp_display_shell_title_update (shell);
-
- /* make sure the information is up-to-date */
- gimp_display_shell_scale_changed (shell);
-
- gimp_canvas_layer_boundary_set_layer (GIMP_CANVAS_LAYER_BOUNDARY (shell->layer_boundary),
- gimp_image_get_active_layer (gimp_display_get_image
(shell->display)));
-
if (now)
{
gdk_window_process_updates (gtk_widget_get_window (shell->canvas),
@@ -1736,6 +1728,14 @@ gimp_display_shell_flush (GimpDisplayShell *shell,
GimpImageWindow *window = gimp_display_shell_get_window (shell);
GimpContext *context;
+ gimp_display_shell_title_update (shell);
+
+ /* make sure the information is up-to-date */
+ gimp_display_shell_scale_changed (shell);
+
+ gimp_canvas_layer_boundary_set_layer (GIMP_CANVAS_LAYER_BOUNDARY (shell->layer_boundary),
+ gimp_image_get_active_layer (gimp_display_get_image
(shell->display)));
+
if (window && gimp_image_window_get_active_shell (window) == shell)
{
GimpUIManager *manager = gimp_image_window_get_ui_manager (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]