mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
0a8852340f
commit
69f432d423
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user