Close stylesheet edit dialog when the stylesheet picker dialog is

closed.  Prevents a crash.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11998 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2005-11-21 00:44:42 +00:00
parent 0a8852340f
commit 69f432d423
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2005-11-20 David Hampton <hampton@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

View File

@ -126,6 +126,9 @@ gnc_style_sheet_dialog_create(StyleSheetDialog * ss,
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);