[gimp] Use the local shell variable and don't call get_shell() again
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Use the local shell variable and don't call get_shell() again
- Date: Wed, 7 Oct 2009 18:00:19 +0000 (UTC)
commit 1ae5d6ad8d050e6a3022c7104326f009817c2a4e
Author: Michael Natterer <mitch gimp org>
Date: Wed Oct 7 19:59:54 2009 +0200
Use the local shell variable and don't call get_shell() again
app/display/gimpdisplay.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/display/gimpdisplay.c b/app/display/gimpdisplay.c
index cf45778..e121114 100644
--- a/app/display/gimpdisplay.c
+++ b/app/display/gimpdisplay.c
@@ -617,13 +617,15 @@ gimp_display_set_image (GimpDisplay *display,
private = GIMP_DISPLAY_GET_PRIVATE (display);
+ shell = gimp_display_get_shell (display);
+
if (display->image)
{
/* stop any active tool */
tool_manager_control_active (display->gimp, GIMP_TOOL_ACTION_HALT,
display);
- gimp_display_shell_disconnect (gimp_display_get_shell (display));
+ gimp_display_shell_disconnect (shell);
old_image = g_object_ref (display->image);
@@ -640,8 +642,6 @@ gimp_display_set_image (GimpDisplay *display,
if (old_image)
g_object_unref (old_image);
- shell = gimp_display_get_shell (display);
-
if (shell)
{
if (image)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]