[gimp] Make sure the shell is really destroyed when removing it from the window
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Make sure the shell is really destroyed when removing it from the window
- Date: Thu, 1 Oct 2009 17:46:43 +0000 (UTC)
commit 625885eb9da9c469983a9866256dab2f5054d50b
Author: Michael Natterer <mitch gimp org>
Date: Thu Oct 1 19:38:52 2009 +0200
Make sure the shell is really destroyed when removing it from the window
Explicitely call gtk_widget_destroy() to break whatever reference
cycles so the shell really goes away.
app/display/gimpdisplay.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpdisplay.c b/app/display/gimpdisplay.c
index 2e09cb6..5be2baa 100644
--- a/app/display/gimpdisplay.c
+++ b/app/display/gimpdisplay.c
@@ -463,7 +463,12 @@ gimp_display_delete (GimpDisplay *display)
{
if (gimp_image_window_get_n_shells (window) > 1)
{
+ g_object_ref (shell);
+
gimp_image_window_remove_shell (window, shell);
+ gtk_widget_destroy (GTK_WIDGET (shell));
+
+ g_object_unref (shell);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]