2001-05-02 Dave Peticolas <dave@krondo.com>

* src/gnome/window-main.c: set the app's mdi mode from user prefs


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4106 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2001-05-03 06:14:17 +00:00
parent ced95f5d1e
commit 73a50b806c
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,7 @@
2001-05-02 Dave Peticolas <dave@krondo.com>
* src/gnome/window-main.c: set the app's mdi mode from user prefs
* README.cvs: add README about cvs write access
* src/scm/report/net-barchart.scm: same as below

View File

@ -565,7 +565,7 @@ gnc_main_window_close_children(GNCMainInfo * wind) {
GNCMainInfo *
gnc_main_window_new(void) {
GNCMainInfo * retval = g_new0(GNCMainInfo, 1);
retval->mdi = GNOME_MDI(gnome_mdi_new("GnuCash", "GnuCash"));
retval->component_id =
gnc_register_gui_component (WINDOW_MAIN_CM_CLASS, NULL, NULL,
@ -591,7 +591,9 @@ gnc_main_window_new(void) {
gnc_register_option_change_callback(gnc_main_window_configure_mdi_cb,
retval,
"General", "Application MDI mode");
gnome_mdi_set_mode(retval->mdi, gnc_get_mdi_mode ());
/* handle top-level signals */
gtk_signal_connect(GTK_OBJECT(retval->mdi), "destroy",
GTK_SIGNAL_FUNC(gnc_main_window_destroy_cb),