Bug#350993: hide the main window until it's ready to be interacted with (like most every other app).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15986 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Joshua Sled 2007-04-22 16:30:55 +00:00
parent 47f4b30df6
commit 4c34eadeda
4 changed files with 19 additions and 1 deletions

View File

@ -474,6 +474,8 @@ inner_main (void *closure, int argc, char **argv)
gnc_destroy_splash_screen();
gnc_main_window_show_all_windows();
gnc_hook_run(HOOK_UI_POST_STARTUP, NULL);
gnc_ui_start_event_loop();
gnc_hook_remove_dangler(HOOK_UI_SHUTDOWN, (GFunc)gnc_file_quit);

View File

@ -486,7 +486,8 @@ gnc_gui_init(void)
gnc_options_dialog_set_global_help_cb (gnc_global_options_help_cb, NULL);
main_window = gnc_main_window_new ();
gtk_widget_show (GTK_WIDGET (main_window));
// Bug#350993:
// gtk_widget_show (GTK_WIDGET (main_window));
gnc_window_set_progressbar_window (GNC_WINDOW(main_window));
map = gnc_build_dotgnucash_path(ACCEL_MAP_NAME);

View File

@ -3500,6 +3500,16 @@ gnc_main_window_cmd_help_about (GtkAction *action, GncMainWindow *window)
* *
************************************************************/
void
gnc_main_window_show_all_windows(void)
{
GList *window_iter;
for (window_iter = active_windows; window_iter != NULL; window_iter = window_iter->next)
{
gtk_widget_show_all(GTK_WIDGET(window_iter->data));
}
}
/** Get a pointer to the first active top level window or NULL
* if there is none.
*

View File

@ -364,6 +364,11 @@ gboolean gnc_main_window_all_finish_pending (void);
* this action. */
void gnc_main_window_all_action_set_sensitive (const gchar *action_name, gboolean sensitive);
/**
* Shows all main windows.
**/
void gnc_main_window_show_all_windows(void);
#endif /* __GNC_MAIN_WINDOW_H */
/** @} */