[Gnucash-changes] r11998 - gnucash/trunk - Close stylesheet edit dialog when the stylesheet picker dialog is

David Hampton hampton at cvs.gnucash.org
Sun Nov 20 19:44:43 EST 2005


Author: hampton
Date: 2005-11-20 19:44:42 -0500 (Sun, 20 Nov 2005)
New Revision: 11998
Trac: http://svn.gnucash.org/trac/changeset/11998

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/report/report-gnome/dialog-style-sheet.c
Log:
Close stylesheet edit dialog when the stylesheet picker dialog is
closed.  Prevents a crash.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2005-11-21 00:41:43 UTC (rev 11997)
+++ gnucash/trunk/ChangeLog	2005-11-21 00:44:42 UTC (rev 11998)
@@ -1,5 +1,9 @@
 2005-11-20  David Hampton  <hampton at employees.org>
 
+	* src/report/report-gnome/dialog-style-sheet.c: Close stylesheet
+	edit dialog when the stylesheet picker dialog is closed.  Prevents
+	a crash.
+
 	* src/gnome-utils/gnc-file.c:
 	* src/gnome-utils/dialog-utils.[ch]: Convert the "file locked"
 	message to a GtkMessageDialog.  Add a utility function for

Modified: gnucash/trunk/src/report/report-gnome/dialog-style-sheet.c
===================================================================
--- gnucash/trunk/src/report/report-gnome/dialog-style-sheet.c	2005-11-21 00:41:43 UTC (rev 11997)
+++ gnucash/trunk/src/report/report-gnome/dialog-style-sheet.c	2005-11-21 00:44:42 UTC (rev 11998)
@@ -126,6 +126,9 @@
                                     gnc_style_sheet_options_close_cb,
                                     ssinfo);
     window = gnc_options_dialog_widget(ssinfo->odialog);
+    gtk_window_set_transient_for(GTK_WINDOW(window),
+				 GTK_WINDOW(gnc_style_sheet_dialog->toplevel));
+    gtk_window_set_destroy_with_parent(GTK_WINDOW(window), TRUE);
     gtk_window_present(GTK_WINDOW(window));
 
     return(ssinfo);



More information about the gnucash-changes mailing list