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

Josh Sled jsled at cvs.gnucash.org
Sun Apr 22 12:30:56 EDT 2007


Author: jsled
Date: 2007-04-22 12:30:55 -0400 (Sun, 22 Apr 2007)
New Revision: 15986
Trac: http://svn.gnucash.org/trac/changeset/15986

Modified:
   gnucash/trunk/src/bin/gnucash-bin.c
   gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c
   gnucash/trunk/src/gnome-utils/gnc-main-window.c
   gnucash/trunk/src/gnome-utils/gnc-main-window.h
Log:
Bug#350993: hide the main window until it's ready to be interacted with (like most every other app).


Modified: gnucash/trunk/src/bin/gnucash-bin.c
===================================================================
--- gnucash/trunk/src/bin/gnucash-bin.c	2007-04-22 16:10:21 UTC (rev 15985)
+++ gnucash/trunk/src/bin/gnucash-bin.c	2007-04-22 16:30:55 UTC (rev 15986)
@@ -474,6 +474,8 @@
 
     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);

Modified: gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c	2007-04-22 16:10:21 UTC (rev 15985)
+++ gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c	2007-04-22 16:30:55 UTC (rev 15986)
@@ -486,7 +486,8 @@
     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);

Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c	2007-04-22 16:10:21 UTC (rev 15985)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c	2007-04-22 16:30:55 UTC (rev 15986)
@@ -3500,6 +3500,16 @@
  *                                                          *
  ************************************************************/
 
+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.
  *

Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.h
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.h	2007-04-22 16:10:21 UTC (rev 15985)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.h	2007-04-22 16:30:55 UTC (rev 15986)
@@ -364,6 +364,11 @@
  *  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 */
 
 /** @} */



More information about the gnucash-changes mailing list