+2007-02-23 [colin] 2.7.2cvs70
+
+ * src/main.c
+ * src/main.h
+ * src/plugins/trayicon/trayicon.c
+ Fix blinking mainwin when starting in tray
+ (show mainwindow later in the startup process,
+ apart if restarting post-crash)
+
2007-02-23 [colin] 2.7.2cvs69
* src/folderview.c
( cvs diff -u -r 1.27.2.29 -r 1.27.2.30 src/addr_compl.c; ) > 2.7.2cvs67.patchset
( cvs diff -u -r 1.382.2.360 -r 1.382.2.361 src/compose.c; ) > 2.7.2cvs68.patchset
( cvs diff -u -r 1.207.2.149 -r 1.207.2.150 src/folderview.c; cvs diff -u -r 1.1.2.43 -r 1.1.2.44 src/imap_gtk.c; ) > 2.7.2cvs69.patchset
+( cvs diff -u -r 1.115.2.138 -r 1.115.2.139 src/main.c; cvs diff -u -r 1.7.2.9 -r 1.7.2.10 src/main.h; cvs diff -u -r 1.14.2.51 -r 1.14.2.52 src/plugins/trayicon/trayicon.c; ) > 2.7.2cvs70.patchset
static gboolean sc_exiting = FALSE;
static gboolean sc_starting = FALSE;
+static gboolean show_at_startup = TRUE;
+
+void main_set_show_at_startup(gboolean show)
+{
+ show_at_startup = show;
+}
int main(int argc, char *argv[])
{
toolbar_main_set_sensitive(mainwin);
main_window_set_menu_sensitive(mainwin);
- main_window_popup(mainwin);
+ /* if crashed, show window early so that the user
+ * sees what's happening */
+ if (!cmd.crash && crash_file_present)
+ main_window_popup(mainwin);
#ifdef HAVE_LIBETPAN
imap_main_init(prefs_common.skip_ssl_cert_check);
plugin_load_standard_plugins ();
+ /* if not crashed, show window now */
+ if (!(!cmd.crash && crash_file_present)) {
+ /* apart if something told not to show */
+ if (show_at_startup)
+ main_window_popup(mainwin);
+ }
+
if (!folder_have_mailbox()) {
prefs_destroy_cache();
main_window_cursor_normal(mainwin);
gboolean claws_is_exiting(void);
gboolean claws_is_starting(void);
gchar *claws_get_socket_name(void);
+void main_set_show_at_startup(gboolean show);
+
#endif /* __MAIN_H__ */