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