[gimp] app: call gimp_display_shell_update_focus() in more cases



commit 5a76519c883ddc30d7089310d916fe5e6299e2e3
Author: Michael Natterer <mitch gimp org>
Date:   Sun Apr 3 18:52:24 2011 +0200

    app: call gimp_display_shell_update_focus() in more cases
    
    instead of duplicating its functionality.

 app/display/gimpdisplayshell-tool-events.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-tool-events.c b/app/display/gimpdisplayshell-tool-events.c
index 893f980..e4e0360 100644
--- a/app/display/gimpdisplayshell-tool-events.c
+++ b/app/display/gimpdisplayshell-tool-events.c
@@ -1450,8 +1450,7 @@ gimp_display_shell_space_pressed (GimpDisplayShell *shell,
 
         gdk_event_get_state (event, &state);
 
-        tool_manager_focus_display_active (gimp, shell->display);
-        tool_manager_modifier_state_active (gimp, state, shell->display);
+        gimp_display_shell_update_focus (shell, NULL, state);
       }
       break;
     }
@@ -1489,8 +1488,7 @@ gimp_display_shell_space_released (GimpDisplayShell *shell,
 
         gdk_event_get_state (event, &state);
 
-        tool_manager_focus_display_active (gimp, shell->display);
-        tool_manager_modifier_state_active (gimp, state, shell->display);
+        gimp_display_shell_update_focus (shell, NULL, state);
       }
       break;
     }



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