[gimp] gimp_display_set_image(): emit notify::image only if the image changed
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] gimp_display_set_image(): emit notify::image only if the image changed
- Date: Tue, 29 Sep 2009 18:38:09 +0000 (UTC)
commit c7fdac48940f2f1cc24df4341fffe3393367a394
Author: Michael Natterer <mitch gimp org>
Date: Fri Sep 25 01:55:39 2009 +0200
gimp_display_set_image(): emit notify::image only if the image changed
app/display/gimpdisplay.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimpdisplay.c b/app/display/gimpdisplay.c
index b8a6da6..47a2aac 100644
--- a/app/display/gimpdisplay.c
+++ b/app/display/gimpdisplay.c
@@ -529,7 +529,8 @@ gimp_display_set_image (GimpDisplay *display,
else
gimp_display_shell_icon_update (GIMP_DISPLAY_SHELL (display->shell));
- g_object_notify (G_OBJECT (display), "image");
+ if (old_image != image)
+ g_object_notify (G_OBJECT (display), "image");
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]