[gtk+] Make sure the paper dialog is destroyed with the parent



commit 582b281761149680af42be66cbe3e1ec58ac81d3
Author: Paolo Borelli <pborelli gnome org>
Date:   Mon Aug 31 21:56:14 2009 +0200

    Make sure the paper dialog is destroyed with the parent

 gtk/gtkcustompaperunixdialog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcustompaperunixdialog.c b/gtk/gtkcustompaperunixdialog.c
index 972ab16..7813b58 100644
--- a/gtk/gtkcustompaperunixdialog.c
+++ b/gtk/gtkcustompaperunixdialog.c
@@ -381,6 +381,7 @@ _gtk_custom_paper_unix_dialog_new (GtkWindow   *parent,
     {
       gtk_window_set_modal (GTK_WINDOW (result), TRUE);
       gtk_window_set_transient_for (GTK_WINDOW (result), parent);
+      gtk_window_set_destroy_with_parent (GTK_WINDOW (result), TRUE);
     }
 
   return result;



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