gnucash maint: Bug 796755 - buggy window handling at startup

John Ralls jralls at code.gnucash.org
Mon Jul 16 13:10:40 EDT 2018


Updated	 via  https://github.com/Gnucash/gnucash/commit/c444729d (commit)
	from  https://github.com/Gnucash/gnucash/commit/ff91056a (commit)



commit c444729db5dd966e5bf29581a52c2403ee8bdab3
Author: John Ralls <jralls at ceridwen.us>
Date:   Mon Jul 16 10:09:34 2018 -0700

    Bug 796755 - buggy window handling at startup
    
    Defer showing the main window until after its size and location are
    restored from the state file.

diff --git a/gnucash/gnome-utils/gnc-main-window.c b/gnucash/gnome-utils/gnc-main-window.c
index 11e8095..8089191 100644
--- a/gnucash/gnome-utils/gnc-main-window.c
+++ b/gnucash/gnome-utils/gnc-main-window.c
@@ -721,7 +721,6 @@ gnc_main_window_restore_window (GncMainWindow *window, GncMainWindowSaveData *da
             DEBUG("first window %p.", active_windows->data);
         window = gnc_main_window_new();
     }
-    gtk_widget_show(GTK_WIDGET(window));
 
     priv = GNC_MAIN_WINDOW_GET_PRIVATE(window);
 
@@ -906,6 +905,7 @@ cleanup:
     if (error)
         g_error_free(error);
     g_free(window_group);
+    gtk_widget_show(GTK_WIDGET(window));
 }
 
 void



Summary of changes:
 gnucash/gnome-utils/gnc-main-window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list